Skip to content

Build for alpine image fails #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
drakedevel opened this issue Apr 2, 2018 · 3 comments
Closed

Build for alpine image fails #11

drakedevel opened this issue Apr 2, 2018 · 3 comments

Comments

@drakedevel
Copy link

I ran this build command as described in alpine/README.md:

docker build --force-rm --build-arg VC_API_TOKEN=... -t vcimage https://raw.githubusercontent.com/VividCortex/docker/master/alpine/Dockerfile

And got the following output:

Downloading build context from remote url: https://raw.githubusercontent.com/VividCortex/docker/master/alpine/Dockerfile  1.629kB
Sending build context to Docker daemon  3.584kB
Step 1/7 : FROM alpine:3.4
 ---> c7fc7faf8c28
Step 2/7 : MAINTAINER VividCortex <[email protected]>
 ---> Using cache
 ---> edfa4b137b93
Step 3/7 : LABEL app=vividcortex
 ---> Using cache
 ---> eb68c49ff718
Step 4/7 : ARG VC_API_TOKEN
 ---> Using cache
 ---> f122332099e4
Step 5/7 : WORKDIR /
 ---> Using cache
 ---> 0bc0926e1461
Step 6/7 : ENTRYPOINT ["/usr/local/bin/vc-agent-007","-foreground","-forbid-restarts"]
 ---> Using cache
 ---> 51dbb759e094
Step 7/7 : RUN test -n "${VC_API_TOKEN}" &&     apk add --no-cache openssl &&     rm -f install &&     wget https://download.vividcortex.com/install &&     sh install --token=${VC_API_TOKEN} --batch --init=None --static --proxy=dyn --skip-certs &&     rm -f install &&     sed '1 a "log-max-size":"5",' /etc/vividcortex/global.conf > /etc/vividcortex/tempconf &&     sed '1 a "log-max-backups":"1",' /etc/vividcortex/tempconf > /etc/vividcortex/global.conf &&     rm -f /etc/vividcortex/tempconf && chmod 600 /etc/vividcortex/global.conf
 ---> Running in a31416056e05
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
(1/1) Installing openssl (1.0.2n-r0)
Executing busybox-1.24.2-r14.trigger
OK: 5 MiB in 12 packages
Connecting to download.vividcortex.com (52.84.237.56:443)
wget: error getting response: Connection reset by peer
Removing intermediate container a31416056e05
The command '/bin/sh -c test -n "${VC_API_TOKEN}" &&     apk add --no-cache openssl &&     rm -f install &&     wget https://download.vividcortex.com/install &&     sh install --token=${VC_API_TOKEN} --batch --init=None --static --proxy=dyn --skip-certs &&     rm -f install &&     sed '1 a "log-max-size":"5",' /etc/vividcortex/global.conf > /etc/vividcortex/tempconf &&     sed '1 a "log-max-backups":"1",' /etc/vividcortex/tempconf > /etc/vividcortex/global.conf &&     rm -f /etc/vividcortex/tempconf && chmod 600 /etc/vividcortex/global.conf' returned a non-zero code: 1

I can run wget https://download.vividcortex.com/install just fine outside of the container so I'm assuming there's some SSL configuration incompatibility now. It also fails with a base image of 3.5, but it seems to work OK in 3.6. I haven't yet verified that the resulting image is usable.

@efepapa
Copy link
Contributor

efepapa commented Apr 2, 2018

@vielmetti
Copy link

As @bmw pointed out in docker-library/python#265 Alpine 3.4 will reach its end of life on 2018-05-01. Are there plans to deal with this?

@incognick
Copy link

This was fixed by #14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants