Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mail-docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
shore
mail-docker
Commits
618a4ebd
Commit
618a4ebd
authored
6 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Cron image.
parent
139e87be
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
crond/.dockerignore
+2
-0
2 additions, 0 deletions
crond/.dockerignore
crond/Dockerfile
+6
-0
6 additions, 0 deletions
crond/Dockerfile
crond/README.md
+22
-0
22 additions, 0 deletions
crond/README.md
crond/crontab
+2
-0
2 additions, 0 deletions
crond/crontab
with
32 additions
and
0 deletions
crond/.dockerignore
0 → 100644
+
2
−
0
View file @
618a4ebd
*
!crontab
This diff is collapsed.
Click to expand it.
crond/Dockerfile
0 → 100644
+
6
−
0
View file @
618a4ebd
FROM
docker:18.09
as
docker
FROM
adarnimrod/cron
as
supersonic
COPY
--from=docker /usr/local/bin/docker /usr/local/bin/
COPY
--chown=root:root crontab /crontab
USER
root
This diff is collapsed.
Click to expand it.
crond/README.md
0 → 100644
+
22
−
0
View file @
618a4ebd
# crond
> Cron container image.
## Description
This container runs Cron jobs for training SpamAssassin's Bayesian classifier
and for updating ClamAV's virus database. The jobs run in the other containers,
so the
`dockerd`
socket is bind mounted to this container and the commands are
executed via
`docker exec`
in the other containers. Thus, outside of the context
of this setup this container doesn't make much sense.
## License
This software is licensed under the MIT license (see
`LICENSE.txt`
).
## Author Information
Nimrod Adar,
[
contact me
](
mailto:nimrod@shore.co.il
)
or visit my
[
website
](
https://www.shore.co.il/
)
. Patches are welcome via
[
`git send-email`
](
http://git-scm.com/book/en/v2/Git-Commands-Email
)
. The repository is located
at:
<https://www.shore.co.il/git/>
.
This diff is collapsed.
Click to expand it.
crond/crontab
0 → 100644
+
2
−
0
View file @
618a4ebd
@daily docker exec mail_clamd_1 clamd-update
@daily docker exec mail_spamd_1 spamd-learn
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