Skip to content

Commit b102609

Browse files
committed
update deployment manifests
1 parent 85915f7 commit b102609

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ RUN apt update && \
2323
apt install -y libsqlite3-0 graphviz sudo && \
2424
(id ${APP_USER} || useradd ${APP_USER} -u $APP_USER_UID) && \
2525
echo "${APP_USER} ALL=NOPASSWD: ALL" > /etc/sudoers.d/user && \
26-
mkdir -p /app/run /data && \
26+
mkdir -p /app/www/run /data && \
2727
chown -R ${APP_USER}:${APP_USER} /app /data
2828
VOLUME ["/data"]
2929
USER ${APP_USER}

container-extract-dist.sh

+6-8
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ get_absolute_path()
2828
{
2929
path=$1
3030
case $path in
31-
/*)
31+
/*)
3232
;;
3333
*) path=$PWD/$path
3434
;;
@@ -51,20 +51,20 @@ extract_binary_deplibs()
5151
{
5252
binary=$1
5353
dest_folder=$2
54-
54+
5555
index=$(echo "0" | bc)
5656
declare -a dependencies
5757
for l in $(ldd $binary | awk '{print $1}'); do
5858
dependencies[$index]="$l"
5959
index=$(echo "$index + 1" | bc)
6060
done
61-
61+
6262
# now copy lib
6363
index=$(echo "0" | bc)
6464
for f in $(ldd $binary | awk '{print $3}'); do
6565
if [ -e "$f" ]; then
6666
install -m 755 "$f" ${dest_folder}/
67-
else
67+
else
6868
echo "====================>>>>>>>>>>>>>>>> [WARNING] Library not found => ${dependencies[$index]}"
6969
fi
7070
index=$(echo "$index + 1" | bc)
@@ -75,7 +75,7 @@ extract_binary_file()
7575
{
7676
path=$1
7777
dest_folder=$2
78-
78+
7979
check_file $path
8080

8181
extract_binary_deplibs $path $dest_folder/
@@ -89,9 +89,7 @@ else
8989
fi
9090

9191
mkdir ./dist/etc
92-
mkdir -p ./dist/data
9392
mkdir -p ./dist/www/resources/themes/bootstrap/img # required path for missing glyphicons
94-
mkdir -p ./dist/www/run # directory for thumbnails
9593

9694
extract_binary_file "realopinsight-server" ./dist/
9795
extract_binary_file "realopinsight-reportd" ./dist/
@@ -104,4 +102,4 @@ cp ./resources/themes/img/glyphicons-halflings.png ./dist/www/resources/themes/b
104102

105103
install -m 644 ./favicon.ico ./dist/www
106104
install -m 644 ./contribs/etc/wt_config.xml ./dist/etc/
107-
install -m 755 ./container-entrypoint.sh ./dist/
105+
install -m 755 ./container-entrypoint.sh ./dist/

helm/realopinsight/templates/deployment.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ spec:
2626
spec:
2727
{{- if .Values.securityContext.enabled }}
2828
securityContext:
29-
runAsUser: 830405
30-
fsGroup: 830405
29+
runAsUser: 54583
30+
fsGroup: 54583
3131
{{- end }}
3232
serviceAccountName: {{ include "realopinsight.fullname" . }}
3333
restartPolicy: Always

0 commit comments

Comments
 (0)