alessandro trinca tornidor
commited on
Commit
•
b1bb633
1
Parent(s):
1ac44c5
[feat] add a symlink from $FASTAPI_STATIC to $WORKDIR/static
Browse files- scripts/entrypoint.sh +13 -1
scripts/entrypoint.sh
CHANGED
@@ -8,6 +8,17 @@ TRANSFORMERS_CACHE=${XDG_CACHE_HOME}/.cache/transformers
|
|
8 |
FASTAPI_STATIC=${XDG_CACHE_HOME}/static
|
9 |
VIS_OUTPUT=${XDG_CACHE_HOME}/vis_output
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
ls -ld ${XDG_CACHE_HOME}/
|
12 |
ls -l ${XDG_CACHE_HOME}/
|
13 |
|
@@ -20,8 +31,9 @@ chmod 770 -R ${FASTAPI_STATIC}
|
|
20 |
chmod 770 -R ${VIS_OUTPUT}
|
21 |
chmod 770 -R ${XDG_CACHE_HOME}/.cache
|
22 |
|
|
|
23 |
ls -ld ${XDG_CACHE_HOME}/
|
24 |
-
ls -
|
25 |
export WORKDIR
|
26 |
export XDG_CACHE_HOME
|
27 |
export MPLCONFIGDIR
|
|
|
8 |
FASTAPI_STATIC=${XDG_CACHE_HOME}/static
|
9 |
VIS_OUTPUT=${XDG_CACHE_HOME}/vis_output
|
10 |
|
11 |
+
echo "WORKDIR content: ${WORKDIR}, before creating the FASTAPI_STATIC symlink ..."
|
12 |
+
ls -ld ${WORKDIR}
|
13 |
+
ls -lA ${WORKDIR}
|
14 |
+
cd ${WORKDIR}
|
15 |
+
|
16 |
+
ln -s ${FASTAPI_STATIC} .
|
17 |
+
echo "WORKDIR content: ${WORKDIR}, after creating the FASTAPI_STATIC symlink ..."
|
18 |
+
ls -ld ${WORKDIR}
|
19 |
+
ls -lA ${WORKDIR}
|
20 |
+
|
21 |
+
echo "XDG_CACHE_HOME content: ${XDG_CACHE_HOME}, before creating the folders ..."
|
22 |
ls -ld ${XDG_CACHE_HOME}/
|
23 |
ls -l ${XDG_CACHE_HOME}/
|
24 |
|
|
|
31 |
chmod 770 -R ${VIS_OUTPUT}
|
32 |
chmod 770 -R ${XDG_CACHE_HOME}/.cache
|
33 |
|
34 |
+
echo "XDG_CACHE_HOME content: ${XDG_CACHE_HOME}, after creating the folders ..."
|
35 |
ls -ld ${XDG_CACHE_HOME}/
|
36 |
+
ls -lA ${XDG_CACHE_HOME}/
|
37 |
export WORKDIR
|
38 |
export XDG_CACHE_HOME
|
39 |
export MPLCONFIGDIR
|