changed configuration for future containerization

This commit is contained in:
Alie 2024-01-21 17:21:08 +01:00
parent 7d08317efd
commit 6e38c18e7f
3 changed files with 7 additions and 7 deletions

View File

@ -30,3 +30,5 @@
/target
LICENSE
README.md
config.toml
mastodon-data.toml

View File

@ -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"]

View File

@ -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