-
Notifications
You must be signed in to change notification settings - Fork 1
Running in docker...
Andrew Benedict Wallace edited this page Feb 1, 2019
·
8 revisions
https://github.com/RepoCamp/ucla2019 includes a docker-compose setup based on the one used in Californica, with a few customizations for this workshop.
- Install docker:
- mac:
brew cask install docker
- linux: Use the official instructions to install from Docker's repository (the versions in standard repos can be fairly out of date).
- windows: ...
- mac:
- Launch docker - varies by OS - you should have a
Docker Desktop
service running in your status bar once docker is launched. - Give docker more memory
- mac: [Docker menu] >>
Preferences
>>Advanced
, then [Docker menu] >>Restart
- mac: [Docker menu] >>
- Follow the californica docker setup info here https://github.com/UCLALibrary/californica#getting-started
git clone https://github.com/RepoCamp/ucla2019.git cd ucla2019 docker-compose run web bundle exec rake db:setup docker-compose up
- Follow the building from scratch info here https://github.com/RepoCamp/ucla2019/wiki/Building-from-Scratch
You will use different addresses to reach the same service depending on whether you are in the host system, or inside one of your containers. This information can be found in the docker-compose.yml
file. For example:
fcrepo:
image: nulib/fcrepo4:4.7.5
ports:
- "8984:8080"
creates a service called fcrepo based on a docker image that runs fedora on port 8080. Thus, from another container its address is http://fcrepo:8080/
. Since the 'ports' section maps it to port 8984, you can reach it from your host system at http://localhost:8984
. If you leave out the 'ports' section, the service would be inaccessible from outside docker.