Add Erlang runtime symlink fix for Keila release
This commit is contained in:
@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y \
|
|||||||
supervisor \
|
supervisor \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Copy entire Keila app and Erlang runtime from official image
|
# Copy entire Keila app and complete Erlang runtime from official image
|
||||||
COPY --from=pentacent/keila:0.14 /opt/app /app/pkg
|
COPY --from=pentacent/keila:0.14 /opt/app /app/pkg
|
||||||
COPY --from=pentacent/keila:0.14 /usr/local/lib/erlang /usr/local/lib/erlang
|
COPY --from=pentacent/keila:0.14 /usr/local/lib/erlang /usr/local/lib/erlang
|
||||||
COPY --from=pentacent/keila:0.14 /usr/local/bin/erl /usr/local/bin/erl
|
COPY --from=pentacent/keila:0.14 /usr/local/bin/erl /usr/local/bin/erl
|
||||||
|
10
start.sh
10
start.sh
@ -52,6 +52,16 @@ if [[ ! -f "/app/data/root_credentials" ]]; then
|
|||||||
chmod 600 /app/data/root_credentials
|
chmod 600 /app/data/root_credentials
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Fix Erlang runtime path for Keila release
|
||||||
|
if [[ ! -d "/app/data/keila/erts-14.2.5" ]]; then
|
||||||
|
echo "==> Setting up Erlang runtime symlink"
|
||||||
|
# Find the actual erts directory in the system Erlang installation
|
||||||
|
ERTS_DIR=$(find /usr/local/lib/erlang -name "erts-*" -type d | head -1)
|
||||||
|
if [[ -n "$ERTS_DIR" ]]; then
|
||||||
|
ln -sf "$ERTS_DIR" /app/data/keila/erts-14.2.5
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
echo "==> Running database migrations"
|
echo "==> Running database migrations"
|
||||||
sudo -u cloudron -E /app/data/keila/bin/keila eval "Keila.Release.migrate()"
|
sudo -u cloudron -E /app/data/keila/bin/keila eval "Keila.Release.migrate()"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user