From 6e38c18e7fb4dab797a6956178692f89459d7485 Mon Sep 17 00:00:00 2001 From: Alie Date: Sun, 21 Jan 2024 17:21:08 +0100 Subject: [PATCH] changed configuration for future containerization --- .dockerignore | 2 ++ Dockerfile | 2 +- cron.yaml | 10 ++++------ 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.dockerignore b/.dockerignore index 3dfba38..2705e58 100644 --- a/.dockerignore +++ b/.dockerignore @@ -30,3 +30,5 @@ /target LICENSE README.md +config.toml +mastodon-data.toml \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index edbfe77..9acd250 100644 --- a/Dockerfile +++ b/Dockerfile @@ -59,4 +59,4 @@ USER botuser COPY --from=build /bin/bot /bin/ # What the container should run when it is started. -CMD ["/bin/cd", "/bin/bot"] +CMD ["/bin/bot"] diff --git a/cron.yaml b/cron.yaml index 83d82ee..e6c4adc 100644 --- a/cron.yaml +++ b/cron.yaml @@ -11,20 +11,18 @@ spec: containers: - name: bot-job image: git.fai.st/fedi-image-bot/mastodon-image-uploader-bot:latest - # Command to execute your Rust application or script - command: ["/path/to/your/rust/executable"] volumeMounts: - name: config-toml - mountPath: /botuser/ + mountPath: /app/ readOnly: true - name: mastodon-token - mountPath: /botuser/ + mountPath: /app/ readOnly: true restartPolicy: Never volumes: - - name: config-volume + - name: config-toml configMap: - name: my-config + name: bot-config-toml - name: mastodon-token secret: secretName: mastodon-data