Skip to content

Installation with Docker

Fang Lin edited this page Mar 9, 2019 · 51 revisions

First, install Docker (your workstation): Windows, Mac, Ubuntu, Other

If you're on a Mac, you will need to run Docker.

If you're using Ubuntu, you'll need to be root.

If you're on Windows, you'll need to run bash and make sure Docker is in your PATH.

If you're reinstalling with the same directory that previously had a docker build, you'll need to delete your project/ folder. Be sure to git stash any changes that you want to keep ahead of time that aren't committed.

Navigate to the directory that you want your MyUW installation to reside within in terminal and run the following commands:

git clone https://github.com/uw-it-aca/myuw   
cd myuw

Check out the branch you want, and then:

 docker build -t myuw_web:latest . && docker run -it -p 8000:8000 -e PORT=8000 -v `pwd`/myuw/:/app/myuw/ myuw_web:latest

If that doesn't work, try clearing your system cache:

docker system prune -a

If you're on Ubuntu, you may need to do the following:

sudo chown -R USERNAME:GROUP .

Replace USERNAME with your username and GROUP with your group.

To run Docker build on AXD3:

  1. Set up your local myuw repository (ie, in ~/work/ directory): git clone https://github.com/uw-it-aca/myuw cd myuw
  2. Build a Docker image: sudo docker build --network host -t .
  3. Run your personal build in a Docker container: sudo docker run --network host -e PORT= -v ~/work/myuw:/app/myuw/ -u myuw To give your container a name, include "--name " in docker run command.