-
Notifications
You must be signed in to change notification settings - Fork 4
Development Docker
Dayne Broderson edited this page Dec 21, 2018
·
6 revisions
Docker image development steps:
- Install Docker
- Download Docker CE Desktop for windows and install.
- Setup Windows Subsystem for Linux (WSL):
- Install WSL Ubuntu 18.04
- Open Powershell as Administrator and run:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
- Open Powershell as Administrator and run:
- Open Windows App Store
- Search for "Ubuntu" and install Ubuntu 18.04
- Install WSL Ubuntu 18.04
- Launch WSL Ubuntu 18.04 and install docker
- Install docker within WLS environment - See Details
- Connect WSL linux docker to the Windows Docker service
- Clone the repo
- Build a microgrids docker container
docker build . -t migrids
- Start hacking using the docker as the run environment. For example here is a run of
TestScripts/generateRunsSandbox.py
docker run -it -v ${PWD}:/migrids migrids python3 /migrids/TestScripts/generateRunsSandbox.py
Draft user instructions for using the tutorial data to test MiGRIDS.
- install docker
- download tutorial data and unzip to LOCATION
- set environment variable MIGRIDS_DATA=LOCATION
- create an alias for microgrids
alias microgrids='docker run -it -v $MIGRIDS_DATA:/data -v ${PWD}:/pwd migrids'
- open (powershell) to the tutorial data
- run microgrids (set up an alias for microgrids docker run)