Skip to content

Initial Docker Setup

Mark Bussey edited this page Oct 22, 2019 · 13 revisions
  1. If you haven't yet, install docker.

  2. Open a new terminal window and clone the ucla2019 github repo and cd to that location:

    • git clone https://github.com/RepoCamp/wustl2019.git
    • cd wustl2019
  3. From the same terminal window, start the docker development environment

    • docker-compose up
  4. Leave the window open where you started docker, and open a new terminal window where you can check out the walkthrough branch

    • git checkout walkthrough
  5. Open a bash shell on the docker instance

    • docker-compose run web bash
  6. Using the bash shell within the docker instance, run the following commands to finish setting up the application for the workshop
    (you should now be working from a prompt that looks something like root@4dd3796c728e:/ucla2019#)

    • bundle install
    • rails db:migrate
    • rails hyrax:default_collection_types:create
    • rails hyrax:default_admin_set:create
  7. Rails will be running on port 3000. Open a web browser and visit the following link to see the running instance of the Hyrax application we'll be using for the workshops.

    • http://localhost:3000
      [NOTE: The application may take some time to start up depending on your system resources]