Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
elasticsearch
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
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ai3
docker
elasticsearch
Commits
e0f08076
Commit
e0f08076
authored
6 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Run daily curator cleanup jobs in the container
parent
e4a36d09
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+1
-0
1 addition, 0 deletions
Dockerfile
conf/chaperone.d/curator-cron.conf
+5
-0
5 additions, 0 deletions
conf/chaperone.d/curator-cron.conf
curator-cron
+12
-0
12 additions, 0 deletions
curator-cron
with
18 additions
and
0 deletions
Dockerfile
+
1
−
0
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
...
...
This diff is collapsed.
Click to expand it.
conf/chaperone.d/curator-cron.conf
0 → 100644
+
5
−
0
View file @
e0f08076
curator
-
cron
.
service
: {
type
:
cron
,
interval
:
"19 2 * * *"
,
command
:
"/usr/bin/curator-cron"
,
}
This diff is collapsed.
Click to expand it.
curator-cron
0 → 100755
+
12
−
0
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
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