Skip to content

Commit

Permalink
fix(docker): invert startup workaround
Browse files Browse the repository at this point in the history
bin/start.sh calls bin/reset_db.sh instead of the other way around
so the devcontainer doesn't break when it starts and calls bin/reset_db.sh!
  • Loading branch information
thekaveman committed Jan 28, 2025
1 parent 3c9658e commit ea944da
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion appcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ RUN pip install $(find /build/dist -name ca_disaster_recovery*.whl)

# configure container executable
ENTRYPOINT ["/bin/bash"]
CMD ["bin/reset_db.sh"]
CMD ["bin/start.sh"]
2 changes: 0 additions & 2 deletions bin/reset_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,3 @@ if [[ -n "$valid_fixtures" ]]; then
else
echo "No JSON fixtures to load"
fi

bin/start.sh
2 changes: 1 addition & 1 deletion bin/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -eu

# initialize Django

bin/init.sh
bin/reset_db.sh

# start the web server

Expand Down

0 comments on commit ea944da

Please sign in to comment.