Skip to content

Initial Docker Setup

Bess Sadler edited this page Sep 6, 2019 · 10 revisions
  1. If you haven't yet, install docker.

  2. Clone the ucla2019 github repo and cd to that location:

    • git clone https://github.com/RepoCamp/ucla2019.git
    • cd ucla2019
  3. 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.

  4. 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
  5. To open a unix prompt on the docker instance, and in a new terminal window run:

      docker-compose run web bash