Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
Alie | fdad62f0b2 | |
Alie | 02981fefb3 |
|
@ -42,6 +42,7 @@ EOF
|
||||||
# (e.g., debian@sha256:ac707220fbd7b67fc19b112cee8170b41a9e97f703f588b2cdbbcdcecdd8af57).
|
# (e.g., debian@sha256:ac707220fbd7b67fc19b112cee8170b41a9e97f703f588b2cdbbcdcecdd8af57).
|
||||||
FROM debian:bullseye-slim AS final
|
FROM debian:bullseye-slim AS final
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
RUN apt update && apt install pkg-config openssl libssl-dev curl -y
|
||||||
# Create a non-privileged user that the app will run under.
|
# Create a non-privileged user that the app will run under.
|
||||||
# See https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#user
|
# See https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#user
|
||||||
ARG UID=10001
|
ARG UID=10001
|
||||||
|
|
28
cron.yaml
28
cron.yaml
|
@ -1,28 +0,0 @@
|
||||||
apiVersion: batch/v1beta1
|
|
||||||
kind: CronJob
|
|
||||||
metadata:
|
|
||||||
name: bot-cronjob
|
|
||||||
spec:
|
|
||||||
schedule: "* */6 * * *" # Runs every 6 hours
|
|
||||||
jobTemplate:
|
|
||||||
spec:
|
|
||||||
template:
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: bot-job
|
|
||||||
image: git.fai.st/fedi-image-bot/mastodon-image-uploader-bot:v1.0.0
|
|
||||||
volumeMounts:
|
|
||||||
- name: config-toml
|
|
||||||
mountPath: /app/config.toml
|
|
||||||
readOnly: true
|
|
||||||
- name: mastodon-token
|
|
||||||
mountPath: /app/mastodon-data.toml
|
|
||||||
readOnly: true
|
|
||||||
restartPolicy: Never
|
|
||||||
volumes:
|
|
||||||
- name: config-toml
|
|
||||||
configMap:
|
|
||||||
name: bot-config-toml
|
|
||||||
- name: mastodon-token
|
|
||||||
secret:
|
|
||||||
secretName: mastodon-data
|
|
Loading…
Reference in New Issue