Skip to content

Commit

Permalink
Change sudo to volume
Browse files Browse the repository at this point in the history
  • Loading branch information
gmrukwa committed Nov 30, 2019
1 parent 90d108a commit 33329db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docker/deploy.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ RUN rm -rf test

COPY luigi.cfg luigi.cfg

RUN mkdir /luigi &&\
chmod o+w /luigi

# Luigi scheduler port
EXPOSE 8082

# Data mount point
VOLUME /data

# History preservation
VOLUME /luigi

COPY entrypoint.sh entrypoint.sh

ENTRYPOINT ["./entrypoint.sh"]
Expand Down
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# start the scheduler
sudo luigid &>/dev/null &
luigid &>/dev/null &

# check if we should keep scheduler alive after tasks finish
args=("$@")
Expand All @@ -20,4 +20,4 @@ if [ "$last" = "--keep-alive" ]; then
fi

# kill the scheduler
sudo pkill luigid
pkill luigid

0 comments on commit 33329db

Please sign in to comment.