4 ms·
This is exactly what we do for Dark: https://github.com/darklang/dark/tree/main/scripts https://github.com/darklang/dark/tree/main/scripts Not only that, but e
by pbiggar 6y ago
This is exactly what we do for Dark: https://github.com/darklang/dark/tree/main/scripts https://github.com/darklang/dark/tree/main/scripts
Not only that, but each script automatically runs itself in our docker container so it's fully repeatable. They all start with
. ./scripts/support/assert-in-container "$0" "$@"
which is just this:
if [[ ! -v IN_DEV_CONTAINER ]]; then
scripts/run-in-docker "${@}"
exit $?
fi
And this is run-in-docker: https://github.com/darklang/dark/blob/main/scripts/run-in-docker https://github.com/darklang/dark/blob/main/scripts/run-in-do...