Skip to content

Latest commit

 

History

History
61 lines (37 loc) · 1.42 KB

docker-quickstart.md

File metadata and controls

61 lines (37 loc) · 1.42 KB

Docker Quickstart

Install

Follow the installation instructions for docker and docker-compose

(docker-compose may or may not come with docker on your platform)

Dependencies

the following projects must be separtely cloned and run for this project to work:

openstax/hypothesis-server

openstax/tutor-server

Run Tutor

docker-compose up

the js files will be served at http://localhost:8000

the ui is available through the tutor-server project at http://localhost:3001

Something seem broken? See Troubleshooting

Run Exercises frontend

docker-compose -f docker-compose.exercises.yml up

the js files will be served at http://localhost:8001

You will need to start the exercises backend independently

Something seem broken? See Troubleshooting

node_modules

if you need to update node modules run:

docker-compose exec build yarn

in general you can run anything in the build container with

docker-compose exec build <command>

Troubleshooting

if you run into problems, try the following:

  • rebuilding the build image with docker-compose build or docker-compose -f <compose-file> build (depending on your use case)
  • remove your node_modules directory