Comments (7)
Thanks, in the end I solved this by adding another task that prepends the registry to all the FROM commands using something like this:
sed -ri "s/FROM\s+/FROM $REGISTRY\//g"
from docker-image-resource.
Hi there!
We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created.
The current status is as follows:
- #121222371 Not able to use custom build base image with private registry
This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.
from docker-image-resource.
The loaded image has to match the repository referenced in FROM
- in this case it doesn't (192.168.1.128:5000/baszalmstra/cross-compiler-base
vs. baszalmstra/cross-compiler-base
).
from docker-image-resource.
Gonna close this as I think the resource is technically doing the right thing, or at least something consistent with Docker's behavior.
I could see a few things to improve though: either we should warn if the image loaded as the base image will not be used as the Dockerfile, or add the ability to load the base image under a different tag so that it will end up being used. I'm a little skeptical of the latter though as it could result in confusion (Dockerfile says debian
but the image loaded is actually ubuntu
, etc.)
from docker-image-resource.
or add the ability to load the base image under a different tag so that it will end up being used
This is functionality I would like to see if there were any plans to improve things in this area.
from docker-image-resource.
@vito
@baszalmstra
how to use AWS ECR image as base image for Dockerfile ??
config:
platform: linux
inputs:
- name: demo
outputs: - name: workspace
run:
path: /bin/bash
args:- -c
- |
output_dir=workspace
cat << EOF > "${output_dir}/Dockerfile"
FROM 4574563542367.dkr.ecr.us-east-1.amazonaws.com/my/image
ADD demo /tmp/demo
RUN bundle install --gemfile=/tmp/demo/Gemfile
RUN rm -rf /tmp/demo
EOF
cp -R ./demo "${output_dir}/demo"
put: release-docker-image
i got access denied error for AWS ECR images
how can i fix that ?
i just want to use ECR images as base image for any jobs
from docker-image-resource.
@thaniyarasu Were you able to fix it for ECR Images?
from docker-image-resource.
Related Issues (20)
- Is load_repository always needed? HOT 1
- support public.ecr.aws HOT 3
- Release docker image for ARM64 HOT 5
- Regarding connecting to private nexus repository using SAML token HOT 1
- Docker build/test instructions in README are out of date for Ubuntu images HOT 1
- Clarity on aws_role_arn
- Should the ping also use HEAD instead of GET, to avoid rate limiting? HOT 2
- Tag globs for checks
- increase docker container file opens with --ulimit option command line
- Is IMDS v2 or IRSA supported? HOT 2
- [HELP] custom path for dockerfile HOT 1
- Unhelpful prints of variables HOT 1
- Unable to push/pull images from ECR on AWS GovCloud HOT 2
- additional_private_registries is not working..? HOT 2
- failed to get ECR credentials: credentials not found in native keychain
- Docker image tag `get` stage override
- After adding http_proxy and https_proxy in concourse worker job is failing for resource with error -failed to get ECR credentials: credentials not found in native keychain
- Alpine Does Not Support B64 Decode Long Flag HOT 2
- Please Add Support for Muilding Multi-Arch Images HOT 2
- docker_buildkit doesn't work? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-image-resource.