aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-11-28 22:09:24 +0000
committerGerrit Code Review <gerrit@onap.org>2020-11-28 22:09:24 +0000
commitfe28feccab5e8c0cd1f2b72b940a0f27a279e5da (patch)
tree80b67a2c1028d2d04e9396ffbf280d4905bcb06b
parentd88f6c95185a55b9c5e2608df18df6ec7baa0cf7 (diff)
parentbf66cd5f6b6e87586f433c358370cfd5d1447933 (diff)
Merge "[PLATFORM] Small fix of name of the user"
-rw-r--r--kubernetes/platform/components/oom-cert-service/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/kubernetes/platform/components/oom-cert-service/Makefile b/kubernetes/platform/components/oom-cert-service/Makefile
index c15fdc7a51..736a19fbd4 100644
--- a/kubernetes/platform/components/oom-cert-service/Makefile
+++ b/kubernetes/platform/components/oom-cert-service/Makefile
@@ -30,9 +30,9 @@ start_docker:
$(eval REPOSITORY := $(shell cat ./values.yaml | grep -i "^[ \t]*repository" -m1 | xargs | cut -d ' ' -f2))
$(eval JAVA_IMAGE := $(shell cat ./values.yaml | grep -i "^[ \t]*certificateGenerationImage" -m1 | xargs | cut -d ' ' -f2))
$(eval FULL_JAVA_IMAGE := $(REPOSITORY)/$(JAVA_IMAGE))
- $(eval USER :=$(shell id -u))
+ $(eval USERNAME :=$(shell id -u))
$(eval GROUP :=$(shell id -g))
- docker run --rm --name ${DOCKER_CONTAINER} --user "$(USER):$(GROUP)" --mount type=bind,source=${CURRENT_DIR}/${CERTS_DIR},target=/app -w /app --entrypoint "sh" -td $(FULL_JAVA_IMAGE)
+ docker run --rm --name ${DOCKER_CONTAINER} --user "$(USERNAME):$(GROUP)" --mount type=bind,source=${CURRENT_DIR}/${CERTS_DIR},target=/app -w /app --entrypoint "sh" -td $(FULL_JAVA_IMAGE)
# Stops docker container for generating certificates. 'true' is used to return 0 status code, if container is already deleted
stop_docker: