working version
This commit is contained in:
1
charts/semaphoreui/templates/base.tpl
Normal file
1
charts/semaphoreui/templates/base.tpl
Normal file
@@ -0,0 +1 @@
|
||||
{{ include "lib.all" . }}
|
10
charts/semaphoreui/templates/config.tpl
Normal file
10
charts/semaphoreui/templates/config.tpl
Normal file
@@ -0,0 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: semaphoreui-config
|
||||
namespace: {{ .Values.namespace | default "default" }}
|
||||
labels:
|
||||
{{- include "lib.labels" . | nindent 4}}
|
||||
type: Opauge
|
||||
data:
|
||||
config.json: {{ toJson .Values.config | b64enc }}
|
28
charts/semaphoreui/templates/entrypoint.sh
Normal file
28
charts/semaphoreui/templates/entrypoint.sh
Normal file
@@ -0,0 +1,28 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: semaphoreui-entrypoint
|
||||
namespace: {{ .Values.namespace | default "default" }}
|
||||
labels:
|
||||
{{- include "lib.labels" . | nindent 4}}
|
||||
data:
|
||||
entrypoint.sh: |
|
||||
#!/bin/sh
|
||||
echo "creating /etc/semaphore/config.json"
|
||||
cp /var/semaphoreui-secret/config.json /etc/semaphore/config.json
|
||||
if test -f /etc/semaphore/packages.txt; then
|
||||
echo "Installing additional system dependencies"
|
||||
apk add --no-cache --upgrade \
|
||||
$(cat /etc/semaphore/packages.txt | xargs)
|
||||
else
|
||||
echo "No additional system dependencies to install"
|
||||
fi
|
||||
if test -f /etc/semaphore/requirements.txt; then
|
||||
echo "Installing additional python dependencies"
|
||||
pip3 install --upgrade \
|
||||
-r /etc/semaphore/requirements.txt
|
||||
else
|
||||
echo "No additional python dependencies to install"
|
||||
fi
|
||||
echo "Starting semapore server"
|
||||
exec /usr/local/bin/semaphore server --config /etc/semaphore/config.json
|
Reference in New Issue
Block a user