Removes the need for the offline installer to install the shim process and instead installs the shim process as part of the packaging. May be easier in the future to just package the shim process on it's own but that'll come after this 18.09 release Signed-off-by: Eli Uriegas <eli.uriegas@docker.com> (cherry picked from commit f8bd366d58f8bdf8a82b9a033353ca5bf4eda948) Signed-off-by: Eli Uriegas <eli.uriegas@docker.com> Upstream-commit: 31d0cb047b98ab43f661bd026bdd63deef62543d Component: packaging
42 lines
1.9 KiB
Makefile
42 lines
1.9 KiB
Makefile
#!/usr/bin/make -f
|
|
|
|
VERSION ?= $(shell cat engine/VERSION)
|
|
|
|
override_dh_gencontrol:
|
|
# if we're on Ubuntu, we need to Recommends: apparmor
|
|
echo 'apparmor:Recommends=$(shell dpkg-vendor --is Ubuntu && echo apparmor)' >> debian/docker-ce.substvars
|
|
dh_gencontrol
|
|
|
|
override_dh_auto_build:
|
|
cd /go/src/github.com/docker/cli && \
|
|
LDFLAGS='' DISABLE_WARN_OUTSIDE_CONTAINER=1 make VERSION=$(VERSION) GITCOMMIT=$(DOCKER_GITCOMMIT) dynbinary manpages
|
|
cd /go/src/github.com/crosbymichael/containerd-proxy && \
|
|
make SCOPE_LABEL="com.docker/containerd-proxy.scope" ANY_SCOPE="ee" bin/containerd-proxy
|
|
|
|
override_dh_strip:
|
|
# Go has lots of problems with stripping, so just don't
|
|
|
|
override_dh_auto_install:
|
|
# docker-ce-cli install
|
|
install -D -m 0644 /go/src/github.com/docker/cli/contrib/completion/fish/docker.fish debian/docker-ce-cli/usr/share/fish/vendor_completions.d/docker.fish
|
|
install -D -m 0644 /go/src/github.com/docker/cli/contrib/completion/zsh/_docker debian/docker-ce-cli/usr/share/zsh/vendor-completions/_docker
|
|
install -D -m 0755 /go/src/github.com/docker/cli/build/docker debian/docker-ce-cli/usr/bin/docker
|
|
# docker-ce install
|
|
install -D -m 0755 /go/src/github.com/crosbymichael/containerd-proxy/bin/containerd-proxy debian/docker-ce/usr/bin/dockerd
|
|
install -D -m 0644 /containerd-shim-process-v1 debian/docker-ce/usr/sbin/containerd-shim-process-v1
|
|
install -D -m 0644 /sources/engine.tar debian/docker-ce/var/lib/docker-engine/engine.tar
|
|
install -D -m 0644 /sources/docker.service debian/docker-ce/lib/systemd/system/docker.service
|
|
install -D -m 0644 /sources/dockerd.json debian/docker-ce/etc/containerd-proxy/dockerd.json
|
|
|
|
|
|
override_dh_install:
|
|
dh_install
|
|
# TODO Can we do this from within our container?
|
|
dh_apparmor --profile-name=docker-ce -pdocker-ce
|
|
|
|
override_dh_shlibdeps:
|
|
dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
|
|
|
|
%:
|
|
dh $@ --with=bash-completion $(shell command -v dh_systemd_enable > /dev/null 2>&1 && echo --with=systemd)
|