-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
make -f docker.Makefile binary : failed from 17.11 onwards #823
Comments
Update Does golang:1.8.4-alpine3.6 contain breaking changes from golang:1.8.3 ? |
Update rgade@hostname ~/go/src/github.com/docker/docker-ce/components/cli (18.01)
diff --git a/components/cli/cli/command/stack/kubernetes/loader.go b/components/cli/cli/command/stack/kubernetes/loader.go -type iMap = map[string]interface{} func processEnvFiles(input string, parsed map[string]interface{}, config *composetypes.Config) (string, error) { -FROM golang:1.9.2-alpine3.6 RUN apk add -U git make bash coreutils ca-certificates |
I have not seen this problem, and we use this same docker image on CI without any problems. |
@dnephin ok. any clue what might be the thing at my end? because I am still facing the same. |
There are other reports of this error using alpine: https://stackoverflow.com/questions/47610296/alpine-package-install-protocol-error It is most likely an issue with a proxy, or the apk repositories. |
Description
make binary on Linux for Linux failed for 17.11, 17.12 and 18.01 with
"ERROR: ncurses-terminfo-6.0_p20170930-r0: Protocol error".
Steps to reproduce the issue:
Observed :
Describe the results you received:
"--------------------------------------------"
rgade@hostname ~/go/src/github.com/docker/docker-ce/components/cli (17.10)
$ make -f docker.Makefile binary
docker build -t docker-cli-dev -f ./dockerfiles/Dockerfile.dev .
Sending build context to Docker daemon 20.73MB
Step 1/11 : FROM golang:1.8.3-alpine
---> 769df81e03d3
Step 2/11 : RUN apk add -U git make bash coreutils ca-certificates
---> Using cache
---> aeb310e7e3ef
Step 3/11 : ARG VNDR_SHA=a6e196d8b4b0cbbdc29aebdb20c59ac6926bb384
---> Using cache
---> fba985df8075
Step 4/11 : RUN go get -d github.com/LK4D4/vndr && cd /go/src/github.com/LK4D4/vndr && git checkout -q "$VNDR_SHA" && go build -v -o /usr/bin/vndr . && rm -rf /go/src/* /go/pkg/* /go/bin/*
---> Using cache
---> 350b5efd8f0d
Step 5/11 : ARG BINDATA_SHA=a0ff2567cfb70903282db057e799fd826784d41d
---> Using cache
---> 323532bf582a
Step 6/11 : RUN go get -d github.com/jteeuwen/go-bindata/go-bindata && cd /go/src/github.com/jteeuwen/go-bindata/go-bindata && git checkout -q "$BINDATA_SHA" && go build -v -o /usr/bin/go-bindata . && rm -rf /go/src/* /go/pkg/* /go/bin/*
---> Using cache
---> d3741d107374
Step 7/11 : ARG FILEWATCHER_SHA=2e12ea42f6c8c089b19e992145bb94e8adaecedb
---> Using cache
---> e8b8e4916932
Step 8/11 : RUN go get -d github.com/dnephin/filewatcher && cd /go/src/github.com/dnephin/filewatcher && git checkout -q "$FILEWATCHER_SHA" && go build -v -o /usr/bin/filewatcher . && rm -rf /go/src/* /go/pkg/* /go/bin/*
---> Using cache
---> 838c0b41972d
Step 9/11 : ENV CGO_ENABLED=0 PATH=$PATH:/go/src/github.com/docker/cli/build DISABLE_WARN_OUTSIDE_CONTAINER=1
---> Using cache
---> af6f39f0777b
Step 10/11 : WORKDIR /go/src/github.com/docker/cli
---> Using cache
---> bb40369b3533
Step 11/11 : CMD sh
---> Using cache
---> 3df12fde0004
Successfully built 3df12fde0004
Successfully tagged docker-cli-dev:latest
docker run --rm -e VERSION=17.10.0-ce -e GITCOMMIT -v "/home/rgade/go/src/github.com/docker/docker-ce/components/cli":/go/src/github.com/docker/cli docker-cli-dev make binary
WARNING: binary creates a Linux executable. Use cross for macOS or Windows.
./scripts/build/binary
Building statically linked build/docker-linux-amd64
rgade@hostname ~/go/src/github.com/docker/docker-ce/components/cli (17.10)
$ git checkout 17.11
Switched to branch '17.11'
Your branch is up to date with 'origin/17.11'.
rgade@hostname ~/go/src/github.com/docker/docker-ce/components/cli (17.11)
$ make -f docker.Makefile binary
docker build -t docker-cli-dev -f ./dockerfiles/Dockerfile.dev .
Sending build context to Docker daemon 20.94MB
Step 1/11 : FROM golang:1.8.4-alpine3.6
---> 4e0173715d6e
Step 2/11 : RUN apk add -U git make bash coreutils ca-certificates
---> Running in 823e2a6af03e
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
(1/14) Installing ncurses-terminfo-base (6.0_p20170930-r0)
(2/14) Installing ncurses-terminfo (6.0_p20170930-r0)
(3/14) Installing ncurses-libs (6.0_p20170930-r0)
ERROR: ncurses-terminfo-6.0_p20170930-r0: Protocol error
(4/14) Installing readline (6.3.008-r5)
(5/14) Installing bash (4.3.48-r1)
Executing bash-4.3.48-r1.post-install
(6/14) Installing libattr (2.4.47-r6)
(7/14) Installing libacl (2.2.52-r3)
(8/14) Installing coreutils (8.27-r0)
(9/14) Installing libssh2 (1.8.0-r1)
(10/14) Installing libcurl (7.57.0-r0)
(11/14) Installing expat (2.2.0-r1)
(12/14) Installing pcre (8.41-r0)
(13/14) Installing git (2.13.5-r0)
(14/14) Installing make (4.2.1-r0)
Executing busybox-1.26.2-r7.trigger
1 error; 32 MiB in 25 packages
The command '/bin/sh -c apk add -U git make bash coreutils ca-certificates' returned a non-zero code: 1
make: *** [docker.Makefile:18: build_docker_image] Error 1
rgade@hostname ~/go/src/github.com/docker/docker-ce/components/cli (17.11)
"--------------------------------------------"
Describe the results you expected:
"Building statically linked build/docker-linux-amd64"
for all other versions as well.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
$ uname -a
Linux 4.9.77-1-MANJARO #1 SMP PREEMPT Wed Jan 17 23:04:54 UTC 2018 x86_64 GNU/Linux
Update
Build passing upon changing alpine version in 17.11 from golang:1.8.4-alpine3.6 to golang:1.8.3 .
check output below.
Does golang:1.8.4-alpine3.6 contain breaking changes from golang:1.8.3 ?
$ make -f docker.Makefile binary
docker build -t docker-cli-dev -f ./dockerfiles/Dockerfile.dev .
Sending build context to Docker daemon 20.94MB
Step 1/11 : FROM golang:1.8.3-alpine
---> 769df81e03d3
Step 2/11 : RUN apk add -U git make bash coreutils ca-certificates
---> Using cache
---> aeb310e7e3ef
Step 3/11 : ARG VNDR_SHA=a6e196d8b4b0cbbdc29aebdb20c59ac6926bb384
---> Using cache
---> fba985df8075
Step 4/11 : RUN go get -d github.com/LK4D4/vndr && cd /go/src/github.com/LK4D4/vndr && git checkout -q "$VNDR_SHA" && go build -v -o /usr/bin/vndr . && rm -rf /go/src/* /go/pkg/* /go/bin/*
---> Using cache
---> 350b5efd8f0d
Step 5/11 : ARG BINDATA_SHA=a0ff2567cfb70903282db057e799fd826784d41d
---> Using cache
---> 323532bf582a
Step 6/11 : RUN go get -d github.com/jteeuwen/go-bindata/go-bindata && cd /go/src/github.com/jteeuwen/go-bindata/go-bindata && git checkout -q "$BINDATA_SHA" && go build -v -o /usr/bin/go-bindata . && rm -rf /go/src/* /go/pkg/* /go/bin/*
---> Using cache
---> d3741d107374
Step 7/11 : ARG FILEWATCHER_SHA=2e12ea42f6c8c089b19e992145bb94e8adaecedb
---> Using cache
---> e8b8e4916932
Step 8/11 : RUN go get -d github.com/dnephin/filewatcher && cd /go/src/github.com/dnephin/filewatcher && git checkout -q "$FILEWATCHER_SHA" && go build -v -o /usr/bin/filewatcher . && rm -rf /go/src/* /go/pkg/* /go/bin/*
---> Using cache
---> 838c0b41972d
Step 9/11 : ENV CGO_ENABLED=0 PATH=$PATH:/go/src/github.com/docker/cli/build DISABLE_WARN_OUTSIDE_CONTAINER=1
---> Using cache
---> af6f39f0777b
Step 10/11 : WORKDIR /go/src/github.com/docker/cli
---> Using cache
---> bb40369b3533
Step 11/11 : CMD sh
---> Using cache
---> 3df12fde0004
Successfully built 3df12fde0004
Successfully tagged docker-cli-dev:latest
docker run --rm -e VERSION=17.11.0-ce -e GITCOMMIT -v "/home/rgade/go/src/github.com/docker/docker-ce/components/cli":/go/src/github.com/docker/cli docker-cli-dev make binary
WARNING: binary creates a Linux executable. Use cross for macOS or Windows.
./scripts/build/binary
Building statically linked build/docker-linux-amd64
rgade@hostname ~/go/src/github.com/docker/docker-ce/components/cli (17.11)
$ ./build/docker version
Client:
Version: 17.11.0-ce
API version: 1.34
Go version: go1.8.3
Git commit:
Built: Sat Jan 20 19:26:17 2018
OS/Arch: linux/amd64
Server:
Version: 18.01.0-ce
API version: 1.35 (minimum version 1.12)
Go version: go1.9.2
Git commit: 03596f5
Built: Sun Jan 14 23:11:14 2018
OS/Arch: linux/amd64
Experimental: false
The text was updated successfully, but these errors were encountered: