Skip to content

Commit

Permalink
fix entrypoint for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
mitya52 committed Dec 28, 2023
1 parent 35bd56a commit 92f058a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y python3-packagi
# cassandra
RUN apt-get install -y \
default-jdk \
wget
wget \
sudo
RUN echo "deb https://debian.cassandra.apache.org 41x main" | tee -a /etc/apt/sources.list.d/cassandra.sources.list
RUN curl https://downloads.apache.org/cassandra/KEYS | apt-key add -
RUN apt-get update
Expand Down
3 changes: 2 additions & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh
if [[ ! -v REFACT_DATABASE_HOST ]]; then
if [ -z "$REFACT_DATABASE_HOST" ]; then
sudo service cassandra start
echo "cassandra database started on localhost"
fi
python -m self_hosting_machinery.watchdog.docker_watchdog

0 comments on commit 92f058a

Please sign in to comment.