Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai3
docker
elasticsearch
Commits
e0f08076
Commit
e0f08076
authored
Nov 03, 2018
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run daily curator cleanup jobs in the container
parent
e4a36d09
Pipeline
#1494
passed with stages
in 2 minutes and 35 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
Dockerfile
Dockerfile
+1
-0
conf/chaperone.d/curator-cron.conf
conf/chaperone.d/curator-cron.conf
+5
-0
curator-cron
curator-cron
+12
-0
No files found.
Dockerfile
View file @
e0f08076
...
...
@@ -2,6 +2,7 @@ FROM registry.git.autistici.org/ai3/docker-chaperone-base:master
COPY
conf /tmp/conf
COPY
build.sh /tmp/build.sh
COPY
curator-cron /usr/bin/curator-cron
RUN
/tmp/build.sh
&&
rm
/tmp/build.sh
...
...
conf/chaperone.d/curator-cron.conf
0 → 100644
View file @
e0f08076
curator
-
cron
.
service
: {
type
:
cron
,
interval
:
"19 2 * * *"
,
command
:
"/usr/bin/curator-cron"
,
}
curator-cron
0 → 100755
View file @
e0f08076
#!/bin/sh
test
-x
/usr/bin/curator
||
exit
0
# If you don't set a locale, curator doesn't run.
export
LC_ALL
=
en_US.UTF-8
find /etc/elasticsearch/actions
-type
f
-name
'maint_*.yml'
\
| xargs
-n
1 curator
--config
=
/etc/elasticsearch/curator.yml
>
/dev/null 2>&1
exit
0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment