added packages & requirement files
This commit is contained in:
@@ -8,3 +8,9 @@ metadata:
|
||||
type: Opauge
|
||||
data:
|
||||
config.json: {{ toJson .Values.config | b64enc }}
|
||||
{{- with .Values.packages }}
|
||||
packages.txt: {{ . | b64enc }}
|
||||
{{- end }}
|
||||
{{- with .Values.requirements }}
|
||||
requirements.txt: {{ . | b64enc }}
|
||||
{{- end }}
|
||||
|
@@ -10,17 +10,17 @@ data:
|
||||
#!/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
|
||||
if test -f /var/semaphoreui-secret/packages.txt; then
|
||||
echo "Installing additional system dependencies"
|
||||
apk add --no-cache --upgrade \
|
||||
$(cat /etc/semaphore/packages.txt | xargs)
|
||||
$(cat /var/semaphoreui-secret/packages.txt | xargs)
|
||||
else
|
||||
echo "No additional system dependencies to install"
|
||||
fi
|
||||
if test -f /etc/semaphore/requirements.txt; then
|
||||
if test -f /var/semaphoreui-secret/requirements.txt; then
|
||||
echo "Installing additional python dependencies"
|
||||
pip3 install --upgrade \
|
||||
-r /etc/semaphore/requirements.txt
|
||||
-r /var/semaphoreui-secret//requirements.txt
|
||||
else
|
||||
echo "No additional python dependencies to install"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user