debian: Prevent docker-registry from starting

Modify the debian/rules to Prevent the docker-registry from
starting when the package is installed. This causes a conflict
when keystone and docker-registry is trying to start at the same time.

Tested by building package, checked on image docker-registry
started or not.

Story: 2009221
Task: 43631

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I8c5016dfbb8f1508ac1c0a1864977a00d9d4072d
This commit is contained in:
Charles Short 2021-12-06 11:41:25 -05:00
parent 5495664b8c
commit 8b60c086e5
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,29 @@
From ec4d2b9704df16e3ffe4256b3eae6b7bd8d25807 Mon Sep 17 00:00:00 2001
From: Charles Short <charles.short@windriver.com>
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 <charles.short@windriver.com>
---
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

View File

@ -1,2 +1,3 @@
0001-update-paths-and-service.patch
0002-no-gecos.patch
0003-Override-docker-registry-service.patch