GithubHelp home page GithubHelp logo

Build fails about docker-nginx-amplify HOT 4 CLOSED

nginxinc avatar nginxinc commented on July 17, 2024
Build fails

from docker-nginx-amplify.

Comments (4)

cdarwin avatar cdarwin commented on July 17, 2024

@arun-gupta, I am unable to reproduce your issue. Can you provide more information on your environment?

docker-nginx-amplify (master u=)> git remote show origin
* remote origin
  Fetch URL: [email protected]:nginxinc/docker-nginx-amplify.git
  Push  URL: [email protected]:nginxinc/docker-nginx-amplify.git
  HEAD branch: master
  Remote branch:
    master tracked
  Local branch configured for 'git pull':
    master merges with remote master
  Local ref configured for 'git push':
    master pushes to master (up to date)
docker-nginx-amplify (master u=)> docker images nginx-amplify
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
docker-nginx-amplify (master u=)> docker build -t nginx-amplify .
Sending build context to Docker daemon   193 kB
Step 1 : FROM nginx:latest
 ---> 0d409d33b27e
Step 2 : MAINTAINER NGINX Amplify Engineering
 ---> Running in 910029e98d71
 ---> 685ff52eea0b
Removing intermediate container 910029e98d71
Step 3 : RUN apt-get update     && apt-get install -qqy curl python apt-transport-https apt-utils     && echo 'deb https://packages.amplify.nginx.com/debian/ jessie amplify-agent' > /etc/apt/sources.list.d/nginx-amplify.list     && curl -fs https://nginx.org/keys/nginx_signing.key | apt-key add - > /dev/null 2>&1     && apt-get update     && apt-get install -qqy nginx-amplify-agent     && apt-get purge -qqy curl apt-transport-https apt-utils     && rm -rf /var/lib/apt/lists/*
 ---> Running in b1b7fce0f026
…
 ---> 65705e56e296
Removing intermediate container b1b7fce0f026
Step 4 : RUN unlink /var/log/nginx/access.log     && unlink /var/log/nginx/error.log     && touch /var/log/nginx/access.log     && touch /var/log/nginx/error.log     && chown nginx /var/log/nginx/*log     && chmod 644 /var/log/nginx/*log
 ---> Running in 374ac3408883
 ---> bfb2214aae82
Removing intermediate container 374ac3408883
Step 5 : COPY ./conf.d/stub_status.conf /etc/nginx/conf.d
 ---> a6c0bb9db6bc
Removing intermediate container f643729a1b3e
Step 6 : COPY ./entrypoint.sh /entrypoint.sh
 ---> 5007cddb73e2
Removing intermediate container 6d4b8acd1c8b
Step 7 : ENTRYPOINT /entrypoint.sh
 ---> Running in ba8be17b3e78
 ---> c30e387e0096
Removing intermediate container ba8be17b3e78
Successfully built c30e387e0096
docker-nginx-amplify (master u=)> docker images nginx-amplify
REPOSITORY          TAG                 IMAGE ID            CREATED              SIZE
nginx-amplify       latest              c30e387e0096        About a minute ago   241.6 MB

If you can provide information to reproduce the issue we will happily reopen the issue. Thanks!

from docker-nginx-amplify.

arun-gupta avatar arun-gupta commented on July 17, 2024

Using Docker for Mac 1.12.0-a (build 11213)

docker-nginx-amplify > git remote -v
origin  https://github.com/nginxinc/docker-nginx-amplify.git (fetch)
origin  https://github.com/nginxinc/docker-nginx-amplify.git (push)
docker-nginx-amplify > docker build -t nginx-amplify .
Sending build context to Docker daemon 124.9 kB
Step 1 : FROM nginx:latest
 ---> 0d409d33b27e
Step 2 : MAINTAINER NGINX Amplify Engineering
 ---> Using cache
 ---> d8e91099e601
Step 3 : RUN apt-get update     && apt-get install -qqy curl python apt-transport-https apt-utils     && echo 'deb https://packages.amplify.nginx.com/debian/ jessie amplify-agent' > /etc/apt/sources.list.d/nginx-amplify.list     && curl -fs https://nginx.org/keys/nginx_signing.key | apt-key add - > /dev/null 2>&1     && apt-get update     && apt-get install -qqy nginx-amplify-agent     && apt-get purge -qqy curl apt-transport-https apt-utils     && rm -rf /var/lib/apt/lists/*
 ---> Running in 4ff13e5dae38
Err http://security.debian.org jessie/updates InRelease

Err http://nginx.org jessie InRelease

Err http://httpredir.debian.org jessie InRelease

Err http://httpredir.debian.org jessie-updates InRelease

Err http://security.debian.org jessie/updates Release.gpg
  Could not resolve 'security.debian.org'
Err http://nginx.org jessie Release.gpg
  Could not resolve 'nginx.org'
Err http://httpredir.debian.org jessie Release.gpg
  Could not resolve 'httpredir.debian.org'
Err http://httpredir.debian.org jessie-updates Release.gpg
  Could not resolve 'httpredir.debian.org'
Reading package lists...
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/InRelease  

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/InRelease  

W: Failed to fetch http://security.debian.org/dists/jessie/updates/InRelease  

W: Failed to fetch http://nginx.org/packages/mainline/debian/dists/jessie/InRelease  

W: Failed to fetch http://security.debian.org/dists/jessie/updates/Release.gpg  Could not resolve 'security.debian.org'

W: Failed to fetch http://nginx.org/packages/mainline/debian/dists/jessie/Release.gpg  Could not resolve 'nginx.org'

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/Release.gpg  Could not resolve 'httpredir.debian.org'

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/Release.gpg  Could not resolve 'httpredir.debian.org'

W: Some index files failed to download. They have been ignored, or old ones used instead.
E: Unable to locate package curl
E: Unable to locate package python
E: Unable to locate package apt-transport-https
E: Package 'apt-utils' has no installation candidate
The command '/bin/sh -c apt-get update     && apt-get install -qqy curl python apt-transport-https apt-utils     && echo 'deb https://packages.amplify.nginx.com/debian/ jessie amplify-agent' > /etc/apt/sources.list.d/nginx-amplify.list     && curl -fs https://nginx.org/keys/nginx_signing.key | apt-key add - > /dev/null 2>&1     && apt-get update     && apt-get install -qqy nginx-amplify-agent     && apt-get purge -qqy curl apt-transport-https apt-utils     && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

No option to reopen the bug.

from docker-nginx-amplify.

cdarwin avatar cdarwin commented on July 17, 2024

@arun-gupta, the problem appears to be with networking on your docker host. Can you please run apt-get update from a container based on the nginx image? Something like the following should do the trick:

docker run --rm -ti nginx apt-get update

from docker-nginx-amplify.

arun-gupta avatar arun-gupta commented on July 17, 2024

Tried Docker 1.12.1 RC3 beta release and it works with that.

Filed a bug to follow up separately.

from docker-nginx-amplify.

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.