Skip to content

Commit

Permalink
reduced dockerfile healthcheck start-period and also added permission…
Browse files Browse the repository at this point in the history
…s to the run.sh
  • Loading branch information
romer8 committed Oct 29, 2024
1 parent dacce4b commit 615ae11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,7 @@ EXPOSE 80
# RUN #
#######

CMD ["bash", "run.sh"]
CMD bash run.sh

HEALTHCHECK --start-period=1s \
CMD ./liveness-probe.sh
3 changes: 2 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ salt-call --local state.apply

echo_status "Changing permissions"
chown -R www: /usr/lib/tethys
chmod -R 777 /var/lib/tethys_persist
chmod -R www: /var/lib/tethys_persist
chmod -R www: /var/logs/tethys

echo_status "Starting supervisor"

Expand Down

0 comments on commit 615ae11

Please sign in to comment.