mirror of
https://github.com/willfarrell/docker-crontab.git
synced 2025-04-08 16:05:14 +02:00
Compare commits
3 Commits
5aeeb19efb
...
a87292bd6c
Author | SHA1 | Date | |
---|---|---|---|
|
a87292bd6c | ||
|
5172ed0b21 | ||
|
a72e84783e |
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v4.4.0
|
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # frozen: v5.0.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
- id: check-executables-have-shebangs
|
- id: check-executables-have-shebangs
|
||||||
@ -15,18 +15,18 @@ repos:
|
|||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
|
|
||||||
- repo: https://github.com/python-jsonschema/check-jsonschema
|
- repo: https://github.com/python-jsonschema/check-jsonschema
|
||||||
rev: 0.23.2
|
rev: cb3c2be894b151dff143b1baf6acbd55f2b7faed # frozen: 0.30.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-github-workflows
|
- id: check-github-workflows
|
||||||
|
|
||||||
- repo: https://github.com/executablebooks/mdformat
|
- repo: https://github.com/executablebooks/mdformat
|
||||||
rev: 0.7.16
|
rev: e20b1ac5acb8aba0b49d3a9109c6e6b58684ee83 # frozen: 0.7.21
|
||||||
hooks:
|
hooks:
|
||||||
- id: mdformat
|
- id: mdformat
|
||||||
additional_dependencies:
|
additional_dependencies:
|
||||||
- mdformat-gfm
|
- mdformat-gfm
|
||||||
|
|
||||||
- repo: https://github.com/hadolint/hadolint
|
- repo: https://github.com/hadolint/hadolint
|
||||||
rev: v2.12.1-beta
|
rev: c3dc18df7a501f02a560a2cc7ba3c69a85ca01d3 # frozen: v2.13.1-beta
|
||||||
hooks:
|
hooks:
|
||||||
- id: hadolint
|
- id: hadolint
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#hadolint ignore=DL3007
|
#hadolint ignore=DL3007
|
||||||
FROM alpine:latest as builder
|
FROM alpine:latest AS builder
|
||||||
|
|
||||||
LABEL org.opencontainers.image.title="crontab builder" \
|
LABEL org.opencontainers.image.title="crontab builder" \
|
||||||
org.opencontainers.image.description="crontab builder" \
|
org.opencontainers.image.description="crontab builder" \
|
||||||
@ -23,7 +23,7 @@ RUN apk update --quiet && \
|
|||||||
upx --brute rq
|
upx --brute rq
|
||||||
|
|
||||||
#hadolint ignore=DL3007
|
#hadolint ignore=DL3007
|
||||||
FROM docker:latest as release
|
FROM docker:latest AS release
|
||||||
|
|
||||||
LABEL org.opencontainers.image.title="crontab" \
|
LABEL org.opencontainers.image.title="crontab" \
|
||||||
org.opencontainers.image.description="A docker job scheduler (aka crontab for docker)." \
|
org.opencontainers.image.description="A docker job scheduler (aka crontab for docker)." \
|
||||||
@ -51,6 +51,8 @@ RUN apk update --quiet && \
|
|||||||
rm -rf /etc/periodic /etc/crontabs/root && \
|
rm -rf /etc/periodic /etc/crontabs/root && \
|
||||||
adduser -S docker -D
|
adduser -S docker -D
|
||||||
|
|
||||||
|
USER docker
|
||||||
|
|
||||||
COPY --from=builder /usr/bin/rq/rq /usr/local/bin
|
COPY --from=builder /usr/bin/rq/rq /usr/local/bin
|
||||||
COPY entrypoint.sh /
|
COPY entrypoint.sh /
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user