summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-10-28 14:45:53 +0100
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-10-30 08:27:51 +0000
commit32f35f98c63e74bd975ee5099196aab8f6f9572c (patch)
tree389e9a5084cf7a226d045224ed2df98aaa669835
parentcddc5542feaeb6885c726e232dc1339211f14748 (diff)
Run docker container in foreground
This equals current behaviour of running in background and then attaching running container to print logs but will allow wrapper script to inherit exit code from entrypoint script. Change-Id: Ida447ef8024995de6cad81aa2dc857aec36e0d04 Issue-ID: OOM-2615 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
-rwxr-xr-xbuild/create_repo.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/build/create_repo.sh b/build/create_repo.sh
index ec9b239b..e70d69b2 100755
--- a/build/create_repo.sh
+++ b/build/create_repo.sh
@@ -155,14 +155,12 @@ then
mounted_lists+=(-v ${array_list}:${container_list_volume}${array_list##*/})
done
- docker run -d \
- --name $container_name \
+ docker run --name $container_name \
-v ${volume_offline_directory}:${container_offline_volume} \
-v ${volume_repo_directory}:${container_repo_volume} \
"${mounted_lists[@]}" \
--rm \
--entrypoint="${container_offline_volume}docker-entrypoint.sh" \
- -it ${docker_image} \
+ ${docker_image} \
"${param_array[@]}"
- docker logs $(docker ps --filter name="^${container_name}$" --format '{{.ID}}' -a) -f
fi