File tree 3 files changed +9
-11
lines changed
helm/realopinsight/templates
3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ RUN apt update && \
23
23
apt install -y libsqlite3-0 graphviz sudo && \
24
24
(id ${APP_USER} || useradd ${APP_USER} -u $APP_USER_UID) && \
25
25
echo "${APP_USER} ALL=NOPASSWD: ALL" > /etc/sudoers.d/user && \
26
- mkdir -p /app/run /data && \
26
+ mkdir -p /app/www/ run /data && \
27
27
chown -R ${APP_USER}:${APP_USER} /app /data
28
28
VOLUME ["/data" ]
29
29
USER ${APP_USER}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ get_absolute_path()
28
28
{
29
29
path=$1
30
30
case $path in
31
- /* )
31
+ /* )
32
32
;;
33
33
* ) path=$PWD /$path
34
34
;;
@@ -51,20 +51,20 @@ extract_binary_deplibs()
51
51
{
52
52
binary=$1
53
53
dest_folder=$2
54
-
54
+
55
55
index=$( echo " 0" | bc)
56
56
declare -a dependencies
57
57
for l in $( ldd $binary | awk ' {print $1}' ) ; do
58
58
dependencies[$index ]=" $l "
59
59
index=$( echo " $index + 1" | bc)
60
60
done
61
-
61
+
62
62
# now copy lib
63
63
index=$( echo " 0" | bc)
64
64
for f in $( ldd $binary | awk ' {print $3}' ) ; do
65
65
if [ -e " $f " ]; then
66
66
install -m 755 " $f " ${dest_folder} /
67
- else
67
+ else
68
68
echo " ====================>>>>>>>>>>>>>>>> [WARNING] Library not found => ${dependencies[$index]} "
69
69
fi
70
70
index=$( echo " $index + 1" | bc)
@@ -75,7 +75,7 @@ extract_binary_file()
75
75
{
76
76
path=$1
77
77
dest_folder=$2
78
-
78
+
79
79
check_file $path
80
80
81
81
extract_binary_deplibs $path $dest_folder /
89
89
fi
90
90
91
91
mkdir ./dist/etc
92
- mkdir -p ./dist/data
93
92
mkdir -p ./dist/www/resources/themes/bootstrap/img # required path for missing glyphicons
94
- mkdir -p ./dist/www/run # directory for thumbnails
95
93
96
94
extract_binary_file " realopinsight-server" ./dist/
97
95
extract_binary_file " realopinsight-reportd" ./dist/
@@ -104,4 +102,4 @@ cp ./resources/themes/img/glyphicons-halflings.png ./dist/www/resources/themes/b
104
102
105
103
install -m 644 ./favicon.ico ./dist/www
106
104
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/
Original file line number Diff line number Diff line change 26
26
spec :
27
27
{{- if .Values.securityContext.enabled }}
28
28
securityContext :
29
- runAsUser : 830405
30
- fsGroup : 830405
29
+ runAsUser : 54583
30
+ fsGroup : 54583
31
31
{{- end }}
32
32
serviceAccountName : {{ include "realopinsight.fullname" . }}
33
33
restartPolicy : Always
You can’t perform that action at this time.
0 commit comments