-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean-up directories for use inside Docker
- Loading branch information
1 parent
a40df63
commit 46d6963
Showing
3 changed files
with
6 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
FROM alpine:3.19 | ||
|
||
COPY owlbot-repo /owlbot | ||
|
||
WORKDIR owlbot | ||
ADD . /owlbot | ||
WORKDIR /owlbot | ||
|
||
RUN apk add --no-cache python3 py3-pip | ||
RUN pip install --break-system-packages -r requirements.txt | ||
RUN crontab crontab.txt | ||
|
||
RUN crontab crontab.txt | ||
|
||
CMD ["sh"] | ||
CMD ["crond", "-f"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
35 19 * * 2,5 bash /discord-owlbot/op-reminder.sh >> /discord-owlbot/log 2>&1 | ||
35 19 * * 2,5 sh /owlbot/op-reminder.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
source ~/miniconda3/etc/profile.d/conda.sh | ||
conda activate discord-owlbot | ||
python /home/carpenoctem/discord-owlbot/op-start-reminder.py | ||
python /owlbot/op-start-reminder.py > /owlbot/cron.log 2>&1 |