Skip to content

Commit 33329db

Browse files
committed
Change sudo to volume
1 parent 90d108a commit 33329db

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docker/deploy.dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ RUN rm -rf test
3737

3838
COPY luigi.cfg luigi.cfg
3939

40-
RUN mkdir /luigi &&\
41-
chmod o+w /luigi
42-
4340
# Luigi scheduler port
4441
EXPOSE 8082
4542

4643
# Data mount point
4744
VOLUME /data
4845

46+
# History preservation
47+
VOLUME /luigi
48+
4949
COPY entrypoint.sh entrypoint.sh
5050

5151
ENTRYPOINT ["./entrypoint.sh"]

entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# start the scheduler
4-
sudo luigid &>/dev/null &
4+
luigid &>/dev/null &
55

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

2222
# kill the scheduler
23-
sudo pkill luigid
23+
pkill luigid

0 commit comments

Comments
 (0)