Skip to content

Commit ccd3964

Browse files
committed
fix: restore read only stuff
1 parent b170293 commit ccd3964

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/helpers/docker/docker-entrypoint.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,13 @@ if [ "${1}" = 'dev' -o "${1}" = "production" -o "${1:0:2}" = "--" ]; then
3232
fi
3333

3434
CONFIG_FILE=/usr/lib/supertokens/config.yaml
35+
TEMP_LOCATION_WHEN_READONLY=/lib/supertokens/temp/
36+
mkdir -p $TEMP_LOCATION_WHEN_READONLY
3537

38+
#required by JNA
39+
export _JAVA_OPTIONS=-Djava.io.tmpdir=$TEMP_LOCATION_WHEN_READONLY
3640
#make sure the CLI knows which config file to pass to the core
37-
set -- "$@" --with-config="$CONFIG_FILE" --foreground
41+
set -- "$@" --with-config="$CONFIG_FILE" --with-temp-dir="$TEMP_LOCATION_WHEN_READONLY" --foreground
3842

3943
# check if no options has been passed to docker run
4044
if [[ "$@" == "supertokens start" ]]

0 commit comments

Comments
 (0)