Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
Dockerfiles
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
shore
Dockerfiles
Commits
a866f7ab
Commit
a866f7ab
authored
2 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Fix a typo.
I kept seeing the project name as Supersonic when it's Supercronic.
parent
09789d63
No related branches found
No related tags found
No related merge requests found
Pipeline
#2988
passed
2 years ago
Stage: build-base
Stage: deploy-base
Stage: build
Stage: deploy
Stage: .post
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
crond/Dockerfile
+6
-6
6 additions, 6 deletions
crond/Dockerfile
crond/README.md
+4
-4
4 additions, 4 deletions
crond/README.md
with
10 additions
and
10 deletions
crond/Dockerfile
+
6
−
6
View file @
a866f7ab
...
...
@@ -5,16 +5,16 @@ WORKDIR /tmp
RUN
wget
-q
$URL
&&
\
echo
"
$SHA1SUM
supercronic-linux-amd64"
>
sha1.sum
&&
\
sha1sum
-c
sha1.sum
&&
\
install
-m
755 supercronic-linux-amd64 /usr/local/bin/super
s
onic
&&
\
install
-m
755 supercronic-linux-amd64 /usr/local/bin/super
cr
onic
&&
\
touch
/crontab
FROM
alpine:3.16
COPY
--from=downloader /usr/local/bin/super
s
onic /usr/local/bin/super
s
onic
COPY
--from=downloader /usr/local/bin/super
cr
onic /usr/local/bin/super
cr
onic
COPY
--from=downloader /crontab /crontab
WORKDIR
/tmp
USER
nobody
CMD
[ "super
s
onic", "/crontab" ]
HEALTHCHECK
CMD pgrep super
s
onic
RUN
super
s
onic
-test
/crontab
CMD
[ "super
cr
onic", "/crontab" ]
HEALTHCHECK
CMD pgrep super
cr
onic
RUN
super
cr
onic
-test
/crontab
ONBUILD
COPY
crontab /crontab
ONBUILD RUN
super
s
onic
-test
/crontab
ONBUILD RUN
super
cr
onic
-test
/crontab
This diff is collapsed.
Click to expand it.
crond/README.md
+
4
−
4
View file @
a866f7ab
# Cron docker
A Docker image for running a Cron daemon, actually running
[
Super
s
onic
](
https://github.com/aptible/supercronic
)
.
[
Super
cr
onic
](
https://github.com/aptible/supercronic
)
.
## Usage
There are possible usage patterns for this image. The first is using it in a
multi-stage image build as the source of the
`super
s
onic`
binary to incorporate
multi-stage image build as the source of the
`super
cr
onic`
binary to incorporate
in your own image like so:
```
FROM registry.shore.co.il/cron as super
s
onic
FROM registry.shore.co.il/cron as super
cr
onic
FROM alpine:latest
COPY --from=super
s
onic /usr/local/bin/super
s
onic /usr/local/bin/
COPY --from=super
cr
onic /usr/local/bin/super
cr
onic /usr/local/bin/
```
The other pattern is building on top of this image to run some periodic tasks.
...
...
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