[damned-lies] fix: remove manually set uid/gid when building image



commit c5b02a80b6b6d46e17fcead79c8db21e9c310411
Author: Guillaume Bernard <associations guillaume-bernard fr>
Date:   Mon May 9 15:06:23 2022 +0200

    fix: remove manually set uid/gid when building image
    
    This was causing error using podman as the uid/gid was too high. Do no
    specify numbers do not change the behavior of the system.

 containers/production/build_buildah_deployment.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/containers/production/build_buildah_deployment.sh 
b/containers/production/build_buildah_deployment.sh
index 68ed253c..1ed24bb7 100755
--- a/containers/production/build_buildah_deployment.sh
+++ b/containers/production/build_buildah_deployment.sh
@@ -45,8 +45,8 @@ buildah config --author "Guillaume Bernard" "${container}"
 buildah config --label 'maintainer="Guillaume Bernard <associations guillaume-bernard fr>"' "${container}"
 
 # Create PROCESS_USER
-buildah run "${container}" -- groupadd "${PROCESS_USER}" -g 1000660000
-buildah run "${container}" -- useradd "${PROCESS_USER}" -g 1000660000 -u 1000660000 -G apache -r -l -m
+buildah run "${container}" -- groupadd "${PROCESS_USER}"
+buildah run "${container}" -- useradd "${PROCESS_USER}" -g "${PROCESS_USER}" -G apache -r -l -m
 
 # Prepare HTTPD environment to accept our configuration: redirect output to console
 buildah run "${container}" -- sed -ri 's!^(\s*CustomLog)\s+\S+!\1 /proc/self/fd/1!g; 
s!^(\s*ErrorLog)\s+\S+!\1 /proc/self/fd/2!g;' /etc/httpd/conf/httpd.conf


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]