GithubHelp home page GithubHelp logo

Comments (7)

baszalmstra avatar baszalmstra commented on June 17, 2024 1

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.

concourse-bot avatar concourse-bot commented on June 17, 2024

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.

vito avatar vito commented on June 17, 2024

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.

vito avatar vito commented on June 17, 2024

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.

Binarytales avatar Binarytales commented on June 17, 2024

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.

thaniyarasu avatar thaniyarasu commented on June 17, 2024

@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.

manali14 avatar manali14 commented on June 17, 2024

@thaniyarasu Were you able to fix it for ECR Images?

from docker-image-resource.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.