diff --git a/kubernetes/docker-distribution/debian/deb_patches/0003-Override-docker-registry-service.patch b/kubernetes/docker-distribution/debian/deb_patches/0003-Override-docker-registry-service.patch new file mode 100644 index 000000000..997c16738 --- /dev/null +++ b/kubernetes/docker-distribution/debian/deb_patches/0003-Override-docker-registry-service.patch @@ -0,0 +1,29 @@ +From ec4d2b9704df16e3ffe4256b3eae6b7bd8d25807 Mon Sep 17 00:00:00 2001 +From: Charles Short +Date: Sun, 5 Dec 2021 13:33:26 +0000 +Subject: [PATCH] Override docker-registry service + +Prevent the docker-registry from starting when package is installed. + +Signed-off-by: Charles Short +--- + debian/rules | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/debian/rules b/debian/rules +index 8383ccd..f02c9ef 100755 +--- a/debian/rules ++++ b/debian/rules +@@ -17,5 +17,9 @@ override_dh_auto_test: + # health/checks hit the internet, and thus fail + #DH_GOLANG_EXCLUDES='distribution/registry/handlers health/checks' dh_auto_test -- -test.short + ++override_dh_installsystemd: ++ dh_installsystemd -p docker-registry --no-start docker-registry.service ++ + %: + dh $@ --buildsystem=golang --with=golang ++ +-- +2.30.2 + diff --git a/kubernetes/docker-distribution/debian/deb_patches/series b/kubernetes/docker-distribution/debian/deb_patches/series index c3f7c55b9..4906314e1 100644 --- a/kubernetes/docker-distribution/debian/deb_patches/series +++ b/kubernetes/docker-distribution/debian/deb_patches/series @@ -1,2 +1,3 @@ 0001-update-paths-and-service.patch 0002-no-gecos.patch +0003-Override-docker-registry-service.patch