Skip to content
Snippets Groups Projects
Commit f084d663 authored by Stefano Di Frischia's avatar Stefano Di Frischia
Browse files

L2SS-409: fix shellcheck start-jive.sh

parent f4d3b78e
No related branches found
No related tags found
1 merge request!151Resolve L2SS-409 "Fix shellcheck ci"
#!/bin/bash
OS=$(uname) OS=$(uname)
case ${OS} in case ${OS} in
Linux) Linux)
display="" display=""
XTRA_OPTIONS="-u $(id -u ${USER}):$(id -g ${USER}) -v /etc/passwd:/etc/passwd:ro -v /etc/groups:/etc/groups:ro" XTRA_OPTIONS="-u $(id -u "${USER}"):$(id -g "${USER}") -v /etc/passwd:/etc/passwd:ro -v /etc/groups:/etc/groups:ro"
;; ;;
Darwin) Darwin)
...@@ -28,10 +29,10 @@ else ...@@ -28,10 +29,10 @@ else
fi fi
#docker run --rm -it --network host ${OPTIONS} nexus.engageska-portugal.pt/ska-docker/tango-java:latest ${command} ${@} #docker run --rm -it --network host ${OPTIONS} nexus.engageska-portugal.pt/ska-docker/tango-java:latest ${command} ${@}
container_name=artefact.skatelescope.org/ska-tango-images/tango-java:9.3.3.2 container_name=artefact.skao.int/ska-tango-images-tango-java:9.3.4
container=$(docker ps | egrep ${container_name} | cut -d' ' -f1) container=$(docker ps | grep -E ${container_name} | cut -d' ' -f1)
if [ ! -z ${container} ]; then if [ ! -z "${container}" ]; then
docker exec -it ${container} ${command} ${@} docker exec -it "${container}" ${command} "${@}"
else else
echo "Container \"${container_name}\" is not running." echo "Container \"${container_name}\" is not running."
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment