Skip to content

Initial Docker Setup

Rachel Kadel edited this page Jan 21, 2020 · 11 revisions
  1. If you haven't yet, install docker.

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

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