changed configuration for future containerization
This commit is contained in:
parent
7d08317efd
commit
6e38c18e7f
|
@ -30,3 +30,5 @@
|
||||||
/target
|
/target
|
||||||
LICENSE
|
LICENSE
|
||||||
README.md
|
README.md
|
||||||
|
config.toml
|
||||||
|
mastodon-data.toml
|
|
@ -59,4 +59,4 @@ USER botuser
|
||||||
COPY --from=build /bin/bot /bin/
|
COPY --from=build /bin/bot /bin/
|
||||||
|
|
||||||
# What the container should run when it is started.
|
# What the container should run when it is started.
|
||||||
CMD ["/bin/cd", "/bin/bot"]
|
CMD ["/bin/bot"]
|
||||||
|
|
10
cron.yaml
10
cron.yaml
|
@ -11,20 +11,18 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: bot-job
|
- name: bot-job
|
||||||
image: git.fai.st/fedi-image-bot/mastodon-image-uploader-bot:latest
|
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:
|
volumeMounts:
|
||||||
- name: config-toml
|
- name: config-toml
|
||||||
mountPath: /botuser/
|
mountPath: /app/
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- name: mastodon-token
|
- name: mastodon-token
|
||||||
mountPath: /botuser/
|
mountPath: /app/
|
||||||
readOnly: true
|
readOnly: true
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
volumes:
|
volumes:
|
||||||
- name: config-volume
|
- name: config-toml
|
||||||
configMap:
|
configMap:
|
||||||
name: my-config
|
name: bot-config-toml
|
||||||
- name: mastodon-token
|
- name: mastodon-token
|
||||||
secret:
|
secret:
|
||||||
secretName: mastodon-data
|
secretName: mastodon-data
|
||||||
|
|
Loading…
Reference in New Issue