Skip to content

Commit

Permalink
Allow passing a custom command
Browse files Browse the repository at this point in the history
This to e.g. be able to open a bash shell for manual builds with 'make -j'
  • Loading branch information
rlenferink committed Sep 29, 2023
1 parent ccf2ed9 commit f204d7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion container/start-ubuntu-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
SCRIPT_LOCATION=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
CELIX_REPO_ROOT=$(realpath "${SCRIPT_LOCATION}/..")

CONTAINER_COMMAND=${1:-}

# Start a container with all the Celix dependencies pre-installed
# --privileged to allow the unit tests to change thread priorities
# --net=host is used to allow e.g. communication with etcd
Expand All @@ -33,5 +35,5 @@ podman run -it --rm --privileged \
--volume "${CELIX_REPO_ROOT}":"${CELIX_REPO_ROOT}" \
--workdir "${CELIX_REPO_ROOT}" \
--security-opt label=disable \
apache/celix-dev:2.4.0-ubuntu
apache/celix-dev:2.4.0-ubuntu ${CONTAINER_COMMAND}

0 comments on commit f204d7b

Please sign in to comment.