Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 3912d44

Browse files
committed
Use Go 1.13
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 0631b74 commit 3912d44

File tree

7 files changed

+21
-15
lines changed

7 files changed

+21
-15
lines changed

Dockerfile

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM dockercore/golang-cross:1.12.9@sha256:3ea9dcef4dd2c46d80445c0b22d6177817f4cfce22c523cc12a5a1091cb37705 AS build
1+
FROM dockercore/golang-cross:1.12.9@sha256:3ea9dcef4dd2c46d80445c0b22d6177817f4cfce22c523cc12a5a1091cb37705 AS cli-build
22
ENV DISABLE_WARN_OUTSIDE_CONTAINER=1
33

44
RUN apt-get install -y -q --no-install-recommends \
@@ -11,13 +11,19 @@ WORKDIR /go/src/github.com/docker/cli
1111
RUN git clone https://github.com/docker/cli . && git checkout a1b83ffd2cbeefc0752e5aa7a543d49c1ddfd2cb
1212

1313
ARG GOPROXY
14-
RUN make binary-osx binary-windows binary && \
15-
cp build/docker-linux-amd64 /usr/bin/docker
14+
RUN make binary-osx binary-windows binary
15+
16+
# main dev image
17+
FROM golang:1.13.3 AS dev
18+
19+
RUN apt-get update && apt-get install -y -q --no-install-recommends \
20+
coreutils \
21+
util-linux \
22+
uuid-runtime
1623

1724
WORKDIR /go/src/github.com/docker/app/
25+
COPY --from=cli-build /go/src/github.com/docker/cli/build/docker-linux-amd64 /usr/bin/docker
1826

19-
# main dev image
20-
FROM build AS dev
2127
ENV PATH=${PATH}:/go/src/github.com/docker/app/bin/
2228
ARG DEP_VERSION=v0.5.4
2329
RUN curl -o /usr/bin/dep -L https://github.com/golang/dep/releases/download/${DEP_VERSION}/dep-linux-amd64 && \
@@ -44,9 +50,9 @@ RUN go get -d gopkg.in/mjibson/esc.v0 && \
4450
COPY . .
4551

4652
FROM scratch AS cli
47-
COPY --from=build /go/src/github.com/docker/cli/build/docker-linux-amd64 docker-linux
48-
COPY --from=build /go/src/github.com/docker/cli/build/docker-darwin-amd64 docker-darwin
49-
COPY --from=build /go/src/github.com/docker/cli/build/docker-windows-amd64 docker-windows.exe
53+
COPY --from=cli-build /go/src/github.com/docker/cli/build/docker-linux-amd64 docker-linux
54+
COPY --from=cli-build /go/src/github.com/docker/cli/build/docker-darwin-amd64 docker-darwin
55+
COPY --from=cli-build /go/src/github.com/docker/cli/build/docker-windows-amd64 docker-windows.exe
5056

5157
FROM dev AS cross-build
5258
ARG TAG="unknown"

Dockerfile.invocation-image

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
ARG ALPINE_VERSION=3.10.1
1+
ARG ALPINE_VERSION=3.10.3
22

3-
FROM golang:1.13.0 AS build
3+
FROM golang:1.13.2 AS build
44

55
RUN apt-get update -qq && apt-get install -y -q --no-install-recommends \
66
coreutils \

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pipeline {
1+
pipeline {
22
agent none
33

44
options {

e2e/testdata/cnab-parameters/cnab/build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG ALPINE_VERSION=3.10.1
1+
ARG ALPINE_VERSION=3.10.3
22

33
FROM alpine:${ALPINE_VERSION}
44

e2e/testdata/cnab-with-docker-status/cnab/build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG ALPINE_VERSION=3.10.1
1+
ARG ALPINE_VERSION=3.10.3
22

33
FROM alpine:${ALPINE_VERSION}
44

e2e/testdata/cnab-with-standard-status/cnab/build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG ALPINE_VERSION=3.10.1
1+
ARG ALPINE_VERSION=3.10.3
22

33
FROM alpine:${ALPINE_VERSION}
44

vars.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ E2E_NAME := $(BIN_NAME)-e2e
66
BUILD_ANALYZER?=dockereng/fossa-analyzer:1.0.10
77
FOSSA_OPTS?=--option all-tags:true --option allow-unresolved:true
88

9-
ALPINE_VERSION=3.10.1
9+
ALPINE_VERSION=3.10.3
1010

1111
# Failing to resolve sh.exe to a full path denotes a windows vanilla shell.
1212
# Although 'simple' commands are still exec'ed, 'complex' ones are batch'ed instead of sh'ed.

0 commit comments

Comments
 (0)