-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial scripts for Ubuntu Cosmic (18.10)
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
- Loading branch information
1 parent
6f9e0b8
commit c3fb8e1
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
ARG GO_IMAGE | ||
ARG ENGINE_IMAGE | ||
ARG BUILD_IMAGE=ubuntu:cosmic | ||
FROM ${GO_IMAGE} as golang | ||
FROM ${ENGINE_IMAGE} as engine | ||
|
||
FROM ${BUILD_IMAGE} | ||
|
||
RUN apt-get update && apt-get install -y curl devscripts equivs git | ||
|
||
ARG GO_VERSION | ||
ENV GOPATH /go | ||
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin | ||
ENV DOCKER_BUILDTAGS apparmor pkcs11 seccomp selinux | ||
ENV RUNC_BUILDTAGS apparmor seccomp selinux | ||
|
||
ARG COMMON_FILES | ||
COPY ${COMMON_FILES} /root/build-deb/debian | ||
RUN mk-build-deps -t "apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends -y" -i /root/build-deb/debian/control | ||
|
||
# Copy our sources and untar them | ||
COPY sources/ /sources | ||
RUN mkdir -p /go/src/github.com/docker/ && tar -xzf /sources/cli.tgz -C /go/src/github.com/docker/ | ||
|
||
RUN ln -snf /go/src/github.com/docker/cli /root/build-deb/cli | ||
|
||
ENV DISTRO ubuntu | ||
ENV SUITE bionic | ||
|
||
COPY --from=golang /usr/local/go /usr/local/go | ||
COPY --from=engine /bin/dockerd /source/ | ||
COPY --from=engine /bin/docker-proxy /source/ | ||
COPY --from=engine /bin/docker-init /source/ | ||
|
||
WORKDIR /root/build-deb | ||
COPY build-deb /root/build-deb/build-deb | ||
|
||
ENTRYPOINT ["/root/build-deb/build-deb"] |