-
Notifications
You must be signed in to change notification settings - Fork 1
Initial Docker Setup
Rachel Kadel edited this page Jan 21, 2020
·
11 revisions
-
If you haven't yet, install docker.
-
Clone the unc2020 github repo and cd to that location:
git clone https://github.com/RepoCamp/unc2020.git
cd unc2020
-
To start:
docker-compose run web rails db:setup docker-compose up
Rails will be running on port 3000. Open a web browser and go to
http://localhost:3000
and you should see a copy of the Hyrax application we'll be using for camp this week. -
To run the test suite ("specs"), leave the processes running that you started with
docker-compose up
and open a new terminal window, then run:docker-compose run web rspec
-
To open a unix prompt on the docker instance, and in a new terminal window run:
docker-compose run web bash