Skip to content

Commit d644e11

Browse files
committed
Helm chart and application version bump
Update nuxt-client to 0.1.0 Update the start-up.sh script to enable starting ZOO-Kernel-FPM as unprivileged user (for better security) Use the ZOO-Project-DRU image tagged dru-93e1a1d16150d88eb7c9b83d0a3ad076b3e6c9dd (using custom versions of Python modules) Update rabbitmq to 4.2.5-alpine Docker image
1 parent 52ec0fc commit d644e11

5 files changed

Lines changed: 52 additions & 33 deletions

File tree

zoo-project-dru/Chart.yaml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ type: application
2323
# This is the chart version. This version number should be incremented each time you make changes
2424
# to the chart and its templates, including the app version.
2525
# Versions are expected to follow Semantic Versioning (https://semver.org/)
26-
version: 0.9.3
26+
version: 0.9.4
2727

2828
# This is the version number of the application being deployed. This version number should be
2929
# incremented each time you make changes to the application. Versions are not expected to
3030
# follow Semantic Versioning. They should reflect the version the application is using.
3131
# It is recommended to use it with quotes.
32-
appVersion: "0.2.41"
32+
appVersion: "0.2.42"
3333

3434
keywords:
3535
- workflows
@@ -77,16 +77,14 @@ dependencies:
7777

7878
annotations:
7979
artifacthub.io/changes: |
80-
- kind: added
81-
description: "Add dask-gateway as optional subchart dependency (dask.enabled)"
82-
- kind: added
83-
description: "Handle CloudEvents following current pubsub spec relying on the configured sink (k_sink) if set"
84-
- kind: added
85-
description: "Add stageout-file.yaml CWL wrapper to stage files"
8680
- kind: changed
87-
description: "Use the ZOO-Project-DRU image tagged dru-b567b1dff96b9f720215aaa4da69dbd3a7ffe031 (using custom versions of Python modules)"
88-
- kind: added
89-
description: "Upgrade calrissian Docker image from terradue/calrissian:0.12.0 to upstream calrissian/calrissian:latest"
81+
description: "Use the ZOO-Project-DRU image tagged dru-93e1a1d16150d88eb7c9b83d0a3ad076b3e6c9dd (using custom versions of Python modules)"
82+
- kind: changed
83+
description: "Update rabbitmq to 4.2.5-alpine Docker image"
84+
- kind: changed
85+
description: "Update the start-up.sh script to enable starting ZOO-Kernel-FPM as unprivileged user (for better security)"
86+
- kind: changed
87+
description: "Update nuxt-client to 0.1.0"
9088
9189
artifacthub.io/license: Apache-2.0
9290

Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,47 @@
11
#!/bin/bash
2-
# Author: Gérald Fenoy
3-
# Copyright GeoLabs 2021
4-
set -x
5-
echo "hello"
2+
#
3+
# Author : Gérald FENOY
4+
#
5+
# Copyright 2021 GeoLabs SARL. All rights reserved.
6+
#
7+
# Permission is hereby granted, free of charge, to any person obtaining a copy
8+
# of this software and associated documentation files (the "Software"), to deal
9+
# in the Software without restriction, including without limitation the rights
10+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
# copies of the Software, and to permit persons to whom the Software is
12+
# furnished to do so, subject to the following conditions:
13+
#
14+
# The above copyright notice and this permission notice shall be included in
15+
# all copies or substantial portions of the Software.
16+
#
17+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23+
# THE SOFTWARE.
24+
625
mkdir -p /tmp/zTmp/statusInfos
7-
cp /var/www/html/data/* /usr/com/zoo-project
8-
chown www-data:www-data -R /tmp/zTmp /usr/com/zoo-project
9-
chmod 777 -R /tmp/zTmp
1026

11-
CMD="curl -o toto.out {{ include "zoo-project-dru.rabbitmq.serviceName" . }}:15672"
27+
CMD="curl -o /tmp/toto.out {{ include "zoo-project-dru.rabbitmq.serviceName" . }}:15672"
1228
$CMD
13-
cat toto.out
14-
if [ -e toto.out ]; then echo "Should start" ; else echo wait; sleep 1; $CMD ; fi
1529

16-
while [ ! -e toto.out ]; do echo wait; sleep 1; $CMD ; done
30+
if [ -e /tmp/toto.out ]; then echo "Should start" ; else echo wait; sleep 1; $CMD ; fi
31+
32+
while [ ! -e /tmp/toto.out ]; do echo wait; sleep 1; $CMD ; done
1733

1834
{{- if not .Values.keda.enabled }}
1935
echo "START FPM in 5 seconds"
2036
sleep 5
2137
{{- end }}
2238
rm toto.out
2339

24-
cd /usr/lib/cgi-bin
2540
touch /var/log/zoofpm.log
26-
chown www-data:www-data /var/log/zoofpm.log
27-
su www-data -s /bin/bash -c "./zoo_loader_fpm ./main.cfg 2> /var/log/zoofpm.log >> /var/log/zoofpm.log"
2841

29-
echo "STARTING FPM DONE"
42+
if [ "$(id -u)" = "0" ]; then
43+
su www-data -s /bin/bash -c "cd /usr/lib/cgi-bin; ./zoo_loader_fpm ./main.cfg 2> /var/log/zoofpm.log >> /var/log/zoofpm.log"
44+
else
45+
cd /usr/lib/cgi-bin
46+
./zoo_loader_fpm ./main.cfg 2> /var/log/zoofpm.log >> /var/log/zoofpm.log
47+
fi

zoo-project-dru/templates/cm-bin.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ kind: ConfigMap
33
metadata:
44
name: {{ .Release.Name }}-bin-config
55
data:
6-
{{ (tpl (.Files.Glob "files/bin/*").AsConfig . ) | indent 4 }}
6+
{{- range $path, $_ := .Files.Glob "files/bin/*" }}
7+
{{ base $path }}: |
8+
{{ tpl ($.Files.Get $path) $ | indent 4 }}
9+
{{- end }}

zoo-project-dru/values.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ zoofpm:
172172
image:
173173
repository: zooproject/zoo-project
174174
pullPolicy: IfNotPresent
175-
tag: dru-b567b1dff96b9f720215aaa4da69dbd3a7ffe031
175+
tag: dru-93e1a1d16150d88eb7c9b83d0a3ad076b3e6c9dd
176176
autoscaling:
177177
enabled: false
178178
replicaCount: 1
@@ -184,7 +184,7 @@ zookernel:
184184
image:
185185
repository: zooproject/zoo-project
186186
pullPolicy: IfNotPresent
187-
tag: dru-b567b1dff96b9f720215aaa4da69dbd3a7ffe031
187+
tag: dru-93e1a1d16150d88eb7c9b83d0a3ad076b3e6c9dd
188188
extraMountPoints: []
189189

190190
notifications:
@@ -281,7 +281,7 @@ rabbitmq:
281281
enabled: true
282282
image:
283283
repository: rabbitmq
284-
tag: "4.2.2-alpine"
284+
tag: "4.2.5-alpine"
285285
pullPolicy: IfNotPresent
286286

287287
replicas: 1
@@ -488,7 +488,7 @@ webui:
488488
image:
489489
repository: zooproject/nuxt-client
490490
pullPolicy: IfNotPresent
491-
tag: 0.0.9
491+
tag: 0.1.0
492492
enforce: false
493493
oidc:
494494
issuer: https://auth.geolabs.fr/realms/zooproject

zoo-project-dru/values_minikube.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ rabbitmq:
4949
resources:
5050
limits:
5151
cpu: 200m
52-
memory: 256Mi
52+
memory: 512Mi
5353
requests:
5454
cpu: 100m
55-
memory: 128Mi
55+
memory: 256Mi
5656

5757
# KEDA Configuration for Minikube
5858
# Note: KEDA is installed by Skaffold profile, not by this chart

0 commit comments

Comments
 (0)