Develop Erlang/OTP inside the official erlang/ubuntu-build Docker image.
It comes with all the correct versions of dependencies pre-installed.
Place the develop script in the scripts directory of your local erlang/otp checkout.
Develop Erlang/OTP inside the official erlang/ubuntu-build Docker image.
It comes with all the correct versions of dependencies pre-installed.
Place the develop script in the scripts directory of your local erlang/otp checkout.
| #!/usr/bin/env bash | |
| ROOT=$(realpath "$(dirname "$0")/..") | |
| IMAGE=erlang/ubuntu-build:64bit | |
| WORKDIR=/buildroot/otp | |
| docker pull $IMAGE | |
| exec docker run \ | |
| --interactive \ | |
| --tty \ | |
| --rm \ | |
| --workdir $WORKDIR \ | |
| --volume $ROOT:$WORKDIR \ | |
| --env ERL_TOP=$WORKDIR \ | |
| --env MAKEFLAGS=-j4 \ | |
| $IMAGE \ | |
| bash -c 'export PATH=$ERL_TOP/bin:$PATH && bash' |