Skip to content

Commit

Permalink
build: Add debug option to docker script
Browse files Browse the repository at this point in the history
  • Loading branch information
reobin committed Jun 21, 2024
1 parent 15abec3 commit 9e92c3b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/docker/start
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ build_container=0
job=import
force=
repo=
debug=


display_help() {
Expand All @@ -48,14 +49,16 @@ display_help() {
exit 0
}

while getopts "j: r: b f h" opt; do
while getopts "j: r: b f d h" opt; do
case $opt in
j)
job=$OPTARG ;;
b)
build_container=1 ;;
f)
force="--force" ;;
d)
debug="--debug" ;;
r)
repo="--repo $OPTARG" ;;
h)
Expand Down Expand Up @@ -88,4 +91,4 @@ if [[ $build_container = 1 ]]; then
fi;

echo "${BREAK_LINE}Starting the vimcolorschemes_worker_go container$BREAK_LINE"
docker-compose run vimcolorschemes_worker_go $job $force $repo
docker-compose run vimcolorschemes_worker_go $job $force $repo $debug

0 comments on commit 9e92c3b

Please sign in to comment.