Skip to content

Commit

Permalink
Fixing restart always (#21)
Browse files Browse the repository at this point in the history
* Fixing restart always
  • Loading branch information
marcleblanc2 authored Feb 29, 2024
1 parent ed7aaa3 commit b70e320
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions config/docker-compose-common-services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ services:
volumes:
- ../src-serve-root/:/sourcegraph/src-serve-root:ro
command: "serve-git -addr :443 /sourcegraph/src-serve-root"
restart: always
networks:
- default

Expand Down
2 changes: 1 addition & 1 deletion host-wsl/wsl2-startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ then
fi

# Start docker compose services
if ! docker compose -f $repo_build_path/docker-compose.yaml up -d --build
if ! docker compose -f $repo_build_path/docker-compose.yaml up -d --build --remove-orphans
then
docker_compose_exit_status=$?
echo "docker compose up failed, exit code $docker_compose_exit_status" >> $log_file
Expand Down
2 changes: 1 addition & 1 deletion repo-converter/build/pull-build-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ repo_converter_build_path="/sourcegraph/implementation-bridges/repo-converter/bu

git -C $repo_converter_build_path pull

docker compose -f $repo_converter_build_path/docker-compose.yaml up -d --build
docker compose -f $repo_converter_build_path/docker-compose.yaml up -d --build --remove-orphans
2 changes: 1 addition & 1 deletion repo-converter/pull-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ repo_converter_dir="$sg_root_dir/implementation-bridges/repo-converter"
date_time=$(date +"%F %T")
echo "$date_time - Starting $0" >> "$log_file"

command="git -C $repo_converter_dir pull && docker compose -f $repo_converter_dir/docker-compose.yaml up -d"
command="git -C $repo_converter_dir pull && docker compose -f $repo_converter_dir/docker-compose.yaml up -d --remove-orphans"

bash -c "$command" >> "$log_file" 2>&1

0 comments on commit b70e320

Please sign in to comment.