Skip to content

Commit 94bbac7

Browse files
committed
update docker-entrypoint.sh
1 parent f13f8e5 commit 94bbac7

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

bin/docker-entrypoint.sh

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -35,25 +35,6 @@ elif [[ -f /usr/lib/localstack/.light-version ]] || [[ -f /usr/lib/localstack/.f
3535
echo ""
3636
fi
3737

38-
# FIXME: remove with 2.0
39-
# the Dockerfile creates .marker file that will be overwritten if a volume is mounted into /tmp/localstack
40-
if [ ! -f /tmp/localstack/.marker ]; then
41-
# unless LEGACY_DIRECTORIES is explicitly set to 1, print an error message and exit with a non-zero exit code
42-
if [[ -z ${LEGACY_DIRECTORIES} ]] || [[ ${LEGACY_DIRECTORIES} == "0" ]]; then
43-
echo "ERROR"
44-
echo "============================================================================"
45-
echo " It seems you are mounting the LocalStack volume into /tmp/localstack."
46-
echo " This will break the LocalStack container! Please update your volume mount"
47-
echo " destination to /var/lib/localstack."
48-
echo " You can suppress this error by setting LEGACY_DIRECTORIES=1."
49-
echo ""
50-
echo " See: https://github.com/localstack/localstack/issues/6398"
51-
echo "============================================================================"
52-
echo ""
53-
exit 1
54-
fi
55-
fi
56-
5738
# This stores the PID of supervisord for us after forking
5839
suppid=0
5940

@@ -92,10 +73,6 @@ test -d ${LOG_DIR} || mkdir -p ${LOG_DIR}
9273
cat /dev/null > ${LOG_DIR}/localstack_infra.log
9374
cat /dev/null > ${LOG_DIR}/localstack_infra.err
9475

95-
# FIXME for backwards compatibility with LEGACY_DIRECTORIES=1
96-
test -f /tmp/localstack_infra.log || ln -s ${LOG_DIR}/localstack_infra.log /tmp/localstack_infra.log
97-
test -f /tmp/localstack_infra.err || ln -s ${LOG_DIR}/localstack_infra.err /tmp/localstack_infra.err
98-
9976
# run modern runtime init scripts before starting localstack
10077
test -d /etc/localstack/init/boot.d && /opt/code/localstack/.venv/bin/python -m localstack.runtime.init BOOT
10178

0 commit comments

Comments
 (0)