first commit of rotate-backups container
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
commit
9f142c15e4
17
.drone.yml
Normal file
17
.drone.yml
Normal file
@ -0,0 +1,17 @@
|
||||
---
|
||||
kind: template
|
||||
load: multiarch-container.yaml
|
||||
data:
|
||||
repo: images/rotate-backups
|
||||
build_args:
|
||||
- PYTHON_VERSION=3
|
||||
- ALPINE_VERSION=3.18
|
||||
- ROTATE_BACKUPS_VERSION=8.1
|
||||
tags:
|
||||
- "8.1"
|
||||
- "8"
|
||||
platforms:
|
||||
- os: linux
|
||||
arch: arm64
|
||||
- os: linux
|
||||
arch: amd64
|
18
Dockerfile
Normal file
18
Dockerfile
Normal file
@ -0,0 +1,18 @@
|
||||
|
||||
ARG PYTHON_VERSION=3
|
||||
ARG ALPINE_VERSION=3.18
|
||||
ARG ROTATE_BACKUPS_VERSION=latest
|
||||
|
||||
FROM python:${PYTHON_VERSION}-alpine${ALPINE_VERSION}
|
||||
|
||||
RUN apk update && apk add less
|
||||
|
||||
RUN pip install rotate-backups==${ROTATE_BACKUPS_VERSION}
|
||||
|
||||
RUN mkdir /data
|
||||
|
||||
COPY rotate.sh /opt/rotate.sh
|
||||
RUN chmod +x /opt/rotate.sh
|
||||
|
||||
ENTRYPOINT ["/opt/rotate.sh"]
|
||||
CMD ["--help"]
|
Loading…
x
Reference in New Issue
Block a user