Files
MapLibreParticleLab/docker/startup.sh
Yuri Astrakhan 1b014a1536 Improve Dockerfile with cache, Bazelisk, and cmake support (#2643)
Allow `bazel` and `cmake` to be used with docker by simply adding them after `docker run ...`. Moreover it is designed to keep build and bazel cache between runs, which means no re-downloads between separate `docker run` commands.

Co-authored-by: Bart Louwers <bart.louwers@gmail.com>
2024-07-24 19:39:03 +00:00

14 lines
468 B
Bash

#!/bin/sh
if [ ! -d /app/.github ] || [ ! -d /home/user/.cache ]; then
echo " "
echo "ERROR: Docker container was not started properly."
echo " From the root of this repo, run the following command."
echo " You may add any command to perform in the container at the end of this command."
echo " "
echo ' docker run --rm -it -v "$PWD:/app/" -v "$PWD/docker/.cache:/home/user/.cache" maplibre-native-image'
exit 1
fi
exec "$@"