-
Notifications
You must be signed in to change notification settings - Fork 4
Initial Docker Setup
Bess Sadler edited this page Sep 6, 2019
·
10 revisions
-
If you haven't yet, install docker.
-
Clone the ucla2019 github repo and cd to that location:
git clone https://github.com/RepoCamp/ucla2019.git
cd ucla2019
-
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