File tree 5 files changed +1
-121
lines changed
5 files changed +1
-121
lines changed Original file line number Diff line number Diff line change 40
40
41
41
with :
42
42
build-args : VERSION=${{ env.VERSION }}
43
- file : ./docker/Eps .dockerfile
43
+ file : ./docker/Hyper .dockerfile
44
44
tags : ${{ steps.meta_hyper.outputs.tags }}
45
45
push : true
46
46
labels : |
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
-
3
- if [[ -z " ${MOUNT_POINTS} " ]]
4
- then
5
- echo " The environment variable MOUNT_POINTS can be set to a comma separated list of the mount points in the container. Use default now."
6
- READ_MOUNT_POINTS=" /config,/tls,/app/settings"
7
- WRITE_MOUNT_POINTS=" "
8
- MOUNT_POINTS=$READ_MOUNT_POINTS ,$WRITE_MOUNT_POINTS
9
- fi
10
-
11
- echo " MOUNT_POINTS is set to \" ${MOUNT_POINTS} \" "
12
- echo " READ_MOUNT_POINTS is set to \" ${READ_MOUNT_POINTS} \" "
13
- echo " WRITE_MOUNT_POINTS is set to \" ${WRITE_MOUNT_POINTS} \" "
14
-
15
- for point in ${MOUNT_POINTS// ,/ }
16
- do
17
- if [ ! -d ${point} ]
18
- then
19
- echo " Skip non-existent directory: \" ${point} \" "
20
- continue
21
- fi
22
-
23
- echo " chown is made for \" ${point} \" "
24
- chown -R hyper:hyper ${point}
25
-
26
- echo " chmod u+r is made for \" ${point} \" "
27
- chmod -R u+r ${point}
28
- done
29
-
30
- for point in ${WRITE_MOUNT_POINTS// ,/ }
31
- do
32
- if [ ! -d ${point} ]
33
- then
34
- continue
35
- fi
36
-
37
- echo " chmod u+w is made for \" ${point} \" "
38
- chmod -R u+w ${point}
39
- done
40
-
41
2
echo " Execute hyper with user hyper"
42
-
43
3
exec su hyper -c " ./hyper $* "
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
-
3
- if [[ -z " ${MOUNT_POINTS} " ]]
4
- then
5
- echo " The environment variable MOUNT_POINTS can be set to a comma separated list of the mount points in the container. Use default now."
6
- READ_MOUNT_POINTS=" /config,/tls,/app/settings"
7
- WRITE_MOUNT_POINTS=" /storage,/app/db,/tmp"
8
- MOUNT_POINTS=$READ_MOUNT_POINTS ,$WRITE_MOUNT_POINTS
9
- fi
10
-
11
- echo " MOUNT_POINTS is set to \" ${MOUNT_POINTS} \" "
12
- echo " READ_MOUNT_POINTS is set to \" ${READ_MOUNT_POINTS} \" "
13
- echo " WRITE_MOUNT_POINTS is set to \" ${WRITE_MOUNT_POINTS} \" "
14
-
15
- for point in ${MOUNT_POINTS// ,/ }
16
- do
17
- if [ ! -d ${point} ]
18
- then
19
- echo " Skip non-existent directory: \" ${point} \" "
20
- continue
21
- fi
22
-
23
- echo " chown is made for \" ${point} \" "
24
- chown -R hyper:hyper ${point}
25
-
26
- echo " chmod u+r is made for \" ${point} \" "
27
- chmod -R u+r ${point}
28
- done
29
-
30
- for point in ${WRITE_MOUNT_POINTS// ,/ }
31
- do
32
- if [ ! -d ${point} ]
33
- then
34
- continue
35
- fi
36
-
37
- echo " chmod u+w is made for \" ${point} \" "
38
- chmod -R u+w ${point}
39
- done
40
-
41
2
echo " Execute proxy with user hyper"
42
-
43
3
exec su hyper -c " ./proxy $* "
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
-
3
- if [[ -z " ${MOUNT_POINTS} " ]]
4
- then
5
- echo " The environment variable MOUNT_POINTS can be set to a comma separated list of the mount points in the container. Use default now."
6
- READ_MOUNT_POINTS=" /config,/tls,/app/settings"
7
- WRITE_MOUNT_POINTS=" /storage,/app/db,/tmp"
8
- MOUNT_POINTS=$READ_MOUNT_POINTS ,$WRITE_MOUNT_POINTS
9
- fi
10
-
11
- echo " MOUNT_POINTS is set to \" ${MOUNT_POINTS} \" "
12
- echo " READ_MOUNT_POINTS is set to \" ${READ_MOUNT_POINTS} \" "
13
- echo " WRITE_MOUNT_POINTS is set to \" ${WRITE_MOUNT_POINTS} \" "
14
-
15
- for point in ${MOUNT_POINTS// ,/ }
16
- do
17
- if [ ! -d ${point} ]
18
- then
19
- echo " Skip non-existent directory: \" ${point} \" "
20
- continue
21
- fi
22
-
23
- echo " chown is made for \" ${point} \" "
24
- chown -R hyper:hyper ${point}
25
-
26
- echo " chmod u+r is made for \" ${point} \" "
27
- chmod -R u+r ${point}
28
- done
29
-
30
- for point in ${WRITE_MOUNT_POINTS// ,/ }
31
- do
32
- if [ ! -d ${point} ]
33
- then
34
- continue
35
- fi
36
-
37
- echo " chmod u+w is made for \" ${point} \" "
38
- chmod -R u+w ${point}
39
- done
40
-
41
2
echo " Execute sd with user hyper"
42
-
43
3
exec su hyper -c " ./sd $* "
File renamed without changes.
You can’t perform that action at this time.
0 commit comments