Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Setup-Manager
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dmytro Bogatov
Setup-Manager
Commits
3b049639
Commit
3b049639
authored
5 months ago
by
Dmytro Bogatov
Browse files
Options
Downloads
Patches
Plain Diff
Add cron and few more service.
parent
b3ff9df2
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#67091
failed
5 months ago
Stage: build
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
compose/README.md
+1
-0
1 addition, 0 deletions
compose/README.md
compose/services.yaml
+2
-0
2 additions, 0 deletions
compose/services.yaml
cron/cron.sh
+25
-0
25 additions, 0 deletions
cron/cron.sh
with
28 additions
and
0 deletions
compose/README.md
+
1
−
0
View file @
3b049639
...
...
@@ -2,6 +2,7 @@
```
!sh
# when changing config
sudo docker compose -f ./dist/compose.yaml --profile idle --profile all stop
./generate.py
sudo docker compose -f ./dist/compose.yaml --profile idle --profile all create --remove-orphans
# Run as daemon
...
...
This diff is collapsed.
Click to expand it.
compose/services.yaml
+
2
−
0
View file @
3b049639
...
...
@@ -11,3 +11,5 @@ services:
volume
:
from
:
schevastream.conf
to
:
appsettings.production.json
-
name
:
legacy
image
:
registry.hub.docker.com/dbogatov/legacy:latest
This diff is collapsed.
Click to expand it.
cron/cron.sh
0 → 100755
+
25
−
0
View file @
3b049639
#!/usr/bin/env bash
set
-e
# Ensure that the CWD is set to script's location
cd
"
${
0
%/*
}
"
CWD
=
$(
pwd
)
# TELEGRAM_TOKEN
# BUCKET
source
.secret.sh
../dockerhub-retention/touch-all-images.sh
>
/dev/null
CHAT_ID
=
"-1002222279957"
MESSAGE
=
"Cron on box ran successfully."
curl
\
-s
-X
POST https://api.telegram.org/bot
$TELEGRAM_TOKEN
/sendMessage
\
-d
chat_id
=
$CHAT_ID
\
-d
disable_notification
=
true
\
-d
text
=
"
$MESSAGE
"
\
>
/dev/null
echo
"Cron done"
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
register
or
sign in
to comment