#!/usr/bin/env bash

set -e

echo "$(basename $0) >> Running"

# Make .strider ephemeral. Link to /tmp to use local host io.
if [ ! -L "/data/.strider" ]; then
    echo "$(basename $0) >> Adding symlink for /tmp/strider"
    rm -rf /data/.strider
    cd /data && ln -s /tmp/strider/ .strider
fi

echo "Exec'ing /entry.sh $@"
exec /usr/bin/env bash /entry.sh "$@"

#!/usr/bin/env bash

set -e

echo "$(basename $0) >> Running"

# Make .strider ephemeral. Link to /tmp to use local host io.
if [ ! -L "/data/.strider" ]; then
    echo "$(basename $0) >> Adding symlink for /tmp/strider"
    rm -rf /data/.strider
    cd /data && ln -s /tmp/strider/ .strider
fi

# Allow strider user to run docker commands
sudo chmod o+rw /var/run/docker.sock

echo "Exec'ing /entry.sh $@"
exec /usr/bin/env bash /entry.sh "$@"

Set mode on socket to allow run commands as strider user
Set mode on socket to allow run commands as strider user
