Docker Setup#
Prerequisites
Basic knowledge of Docker.
Basic knowledge of the difference between
brightway2
andbrightway 25
Brightway publishes two official docker images:
brightway/bw2, for brightway 2
brightway/bw25, for brightway 2.5
Based on the Jupyter minimal notebook.
What it Gives You#
Miniconda
Python 3.10
Jupyterlab
brightway2 framework
Docker instances are ephemeral. You will almost certainly want to mount a data volume.
Usage of bw2 image#
To run an instance of Jupyter Lab, accessible at localhost:8888:
docker run --rm -p 8888:8888 -e JUPYTER_ENABLE_LAB=yes brightway/bw2
Jupyterlab also allows you to run iPython sessions or even a terminal.
See the Jupyter documentation for more usage options.