-
Notifications
You must be signed in to change notification settings - Fork 8
Installation on Mac (Docker)
This guide shows how to install PySB on Mac using Docker.
Follow the Mac installation instructions for Docker. Please check that the Docker "Hello World" program runs before continuing with this guide.
Open a terminal (under Applications/Utilities, or use Spotlight to search for 'terminal').
Create a new boot2docker virtual machine (environment):
boot2docker init
Start the new virtual machine:
boot2docker start
Set up the docker
command:
eval "$(boot2docker shellinit)"
Check the docker command now works:
docker version
Further assistance is available on the Docker documentation.
You can install the PySB Docker container using the following command:
docker pull lolab/pysb
Replace the pathname after -v with the path on your laptop where you want to store your PySB models and related code. You can change the password in the quotation marks to a custom setting if you like.
docker run -d -p 443:8888 -e "PASSWORD=MyPassword" \
-v /Users/alex/Desktop/notebooks:/notebooks --name pysb1 lolab/pysb
Enter the following on the command line to open your web browser to the correct location:
open https://`boot2docker ip`