Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Heyheylibrary
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TheJoeCoder
Heyheylibrary
Commits
94e391d7
Verified
Commit
94e391d7
authored
Jul 5, 2024
by
TheJoeCoder
Browse files
Options
Downloads
Patches
Plain Diff
Demo db and cron reset
parent
5a868908
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
Dockerfile.cron.demo
+11
-0
11 additions, 0 deletions
Dockerfile.cron.demo
db.demo.sqlite3
+0
-0
0 additions, 0 deletions
db.demo.sqlite3
demo_cronjob
+1
-0
1 addition, 0 deletions
demo_cronjob
docker-compose.demo.yml
+9
-1
9 additions, 1 deletion
docker-compose.demo.yml
with
21 additions
and
1 deletion
Dockerfile.cron.demo
0 → 100644
+
11
−
0
View file @
94e391d7
FROM
debian:bookworm-slim
RUN
apt-get update
&&
apt-get
install
-y
cron
COPY
demo_cronjob /etc/cron.d/cronjob
RUN
chmod
0644 /etc/cron.d/cronjob
RUN
touch
/var/log/cron.log
CMD
cron && tail -f /var/log/cron.log
\ No newline at end of file
This diff is collapsed.
Click to expand it.
db.demo.sqlite3
0 → 100644
+
0
−
0
View file @
94e391d7
File added
This diff is collapsed.
Click to expand it.
demo_cronjob
0 → 100644
+
1
−
0
View file @
94e391d7
0 */3 * * * /usr/bin/cp /home/app/web/db.demo.sqlite3 /home/app/web/db.sqlite3 >> /var/log/cron.log 2>&1
This diff is collapsed.
Click to expand it.
docker-compose.demo.yml
+
9
−
1
View file @
94e391d7
...
...
@@ -27,7 +27,7 @@ services:
soft
:
65536
# Maximum number of open files for the opensearch user - set to at least 65536
hard
:
65536
volumes
:
-
demo_opensearch:/usr/share/opensearch/data
# Creates volume called opensearch-data1 and mounts it to the container
-
demo_opensearch:/usr/share/opensearch/data
expose
:
-
9200
-
9600
...
...
@@ -47,6 +47,14 @@ services:
networks
:
-
librarydemo
cron
:
build
:
context
:
.
dockerfile
:
Dockerfile.cron.demo
volumes
:
-
./db.sqlite3:/home/app/web/db.sqlite3
-
./db.demo.sqlite3:/home/app/web/db.demo.sqlite3
volumes
:
demo_static
:
demo_media
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment