Skip to content
This repository was archived by the owner on Aug 14, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions namespaces/default/snekbox-forms/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@ spec:
labels:
app: snekbox-forms
spec:
initContainers:
- name: init-service
image: busybox:latest
command: ["/bin/sh", "-c"]
args:
- >
wget https://url.to.file.com/redacted -O /tmp/cj-inputs/redacted.png;
wget https://raw.githubusercontent.com/python-discord/snekbox/main/config/snekbox.cfg -O /tmp/config/snekbox.cfg;
echo -e 'mount {\n src:"/snekbox/cj-inputs"\n dst:"/cj-inputs"\n is_bind: true\n rw: false}' >> /tmp/config/snekbox.cfg;
volumeMounts:
- name: snekbox-cj-inputs
mountPath: /tmp/cj-inputs/
- name: snekbox-forms-config
mountPath: /tmp/config/
containers:
- name: snekbox-forms
image: ghcr.io/python-discord/snekbox:latest
Expand All @@ -23,6 +37,11 @@ spec:
volumeMounts:
- name: snekbox-forms-user-base-volume
mountPath: /snekbox/user_base
- name: snekbox-cj-inputs
mountPath: /snekbox/cj-inputs
- name: snekbox-forms-config
mountPath: /snekbox/config/snekbox.cfg
subPath: snekbox.cfg
lifecycle:
postStart:
exec:
Expand All @@ -38,3 +57,7 @@ spec:
volumes:
- name: snekbox-forms-user-base-volume
emptyDir: {}
- name: snekbox-cj-inputs
emptyDir: {}
- name: snekbox-forms-config
emptyDir: {}