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>
14 lines
468 B
Bash
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 "$@"
|