File tree Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,13 @@ debian: debian-stretch debian-jessie ## build all debian deb packages
63
63
.PHONY : raspbian
64
64
raspbian : raspbian-stretch debian-jessie # # build all raspbian deb packages
65
65
66
+ .PHONY : ubuntu-cosmic
67
+ ubuntu-cosmic : # # build ubuntu cosmic deb packages
68
+ ubuntu-cosmic : $(SOURCES )
69
+ $(BUILD )
70
+ $(RUN )
71
+ $(CHOWN ) -R $(shell id -u) :$(shell id -g) debbuild/$@
72
+
66
73
.PHONY : ubuntu-bionic
67
74
ubuntu-bionic : # # build ubuntu bionic deb packages
68
75
ubuntu-bionic : $(SOURCES )
Original file line number Diff line number Diff line change
1
+ ARG GO_IMAGE
2
+ ARG ENGINE_IMAGE
3
+ ARG BUILD_IMAGE=ubuntu:cosmic
4
+ FROM ${GO_IMAGE} as golang
5
+ FROM ${ENGINE_IMAGE} as engine
6
+
7
+ FROM ${BUILD_IMAGE}
8
+
9
+ RUN apt-get update && apt-get install -y curl devscripts equivs git
10
+
11
+ ARG GO_VERSION
12
+ ENV GOPATH /go
13
+ ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
14
+ ENV DOCKER_BUILDTAGS apparmor pkcs11 seccomp selinux
15
+ ENV RUNC_BUILDTAGS apparmor seccomp selinux
16
+
17
+ ARG COMMON_FILES
18
+ COPY ${COMMON_FILES} /root/build-deb/debian
19
+ RUN mk-build-deps -t "apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends -y" -i /root/build-deb/debian/control
20
+
21
+ # Copy our sources and untar them
22
+ COPY sources/ /sources
23
+ RUN mkdir -p /go/src/github.com/docker/ && tar -xzf /sources/cli.tgz -C /go/src/github.com/docker/
24
+
25
+ RUN ln -snf /go/src/github.com/docker/cli /root/build-deb/cli
26
+
27
+ ENV DISTRO ubuntu
28
+ ENV SUITE cosmic
29
+
30
+ COPY --from=golang /usr/local/go /usr/local/go
31
+ COPY --from=engine /bin/dockerd /source/
32
+ COPY --from=engine /bin/docker-proxy /source/
33
+ COPY --from=engine /bin/docker-init /source/
34
+
35
+ WORKDIR /root/build-deb
36
+ COPY build-deb /root/build-deb/build-deb
37
+
38
+ ENTRYPOINT ["/root/build-deb/build-deb" ]
You can’t perform that action at this time.
0 commit comments