You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@madlib.apache.org by ok...@apache.org on 2022/06/16 17:31:15 UTC

[madlib] 02/04: Add users for docker commands

This is an automated email from the ASF dual-hosted git repository.

okislal pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/madlib.git

commit 9f1c50291846a6710261873d1475204c95a5ccd3
Author: Orhan Kislal <ok...@apache.org>
AuthorDate: Tue May 17 16:03:26 2022 +0300

    Add users for docker commands
---
 tool/docker_start.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tool/docker_start.sh b/tool/docker_start.sh
index bd193e43..bb7bd7f6 100755
--- a/tool/docker_start.sh
+++ b/tool/docker_start.sh
@@ -83,13 +83,13 @@ docker exec "${CONTAINER_NAME}" bash -c "rm -rf /madlib/build_docker; \
 
 echo "---------- Installing and running install-check --------------------"
 # Install MADlib and run install check
-docker exec "${CONTAINER_NAME}" bash -c "PATH=$PATH:/usr/lib/postgresql/10/bin \
+docker exec --user=postgres "${CONTAINER_NAME}" bash -c "PATH=$PATH:/usr/lib/postgresql/10/bin \
 							/madlib/build_docker/src/bin/madpack -p postgres \
 							-c postgres/postgres@localhost:5432/postgres \
 							install" \
 			| tee "${workdir}/build_docker_logs/madlib_install.log"
 
-docker exec "${CONTAINER_NAME}" bash -c "/madlib/build_docker/src/bin/madpack -p postgres \
+docker exec --user=postgres "${CONTAINER_NAME}" bash -c "/madlib/build_docker/src/bin/madpack -p postgres \
 							-c postgres/postgres@localhost:5432/postgres \
 							install-check" \
 			| tee "${workdir}/build_docker_logs/madlib_install_check.log"