Skip to content

Commit 06bb2c7

Browse files
authored
Merge pull request #121 from seemethere/cosmic
Add initial scripts for Ubuntu Cosmic (18.10)
2 parents 6b575e4 + 3228c35 commit 06bb2c7

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

deb/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ debian: debian-stretch debian-jessie ## build all debian deb packages
6363
.PHONY: raspbian
6464
raspbian: raspbian-stretch debian-jessie ## build all raspbian deb packages
6565

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+
6673
.PHONY: ubuntu-bionic
6774
ubuntu-bionic: ## build ubuntu bionic deb packages
6875
ubuntu-bionic: $(SOURCES)

deb/ubuntu-cosmic/Dockerfile

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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"]

0 commit comments

Comments
 (0)