All the commands below assume you are on mac or linux distribution OS.
- Docker Desktop
- curl: Is installed by default on Mac
- Open the terminal
- Run
mkdir orlando_cambridge && cd $_
to create a folder where the docker compose file will be downloaded. - Download the
docker-compose.yml
in this gist by using curl:
curl https://gist.githubusercontent.com/nikathone/fbd68255969d584200f659abeeb55cd0/raw/c8d9627b86a28ade68687cd1f1e7a8ae6485c7a4/docker-compose.yml --output docker-compose.yml
Just in case GitHub might be down, I have the same docker-compose.yml
on GitLab and running the command below should give you the same result
curl https://gitlab.com/snippets/1960299/raw --output docker-compose.yml
- Run
docker-compose up --detach
- Wait for about 8-10min after the command above has finished
- Navigate to http://localhost:8000
- Navigate at http://localhost:8000/user/login and use
orlando
for username andorlando
for password
In case you didn't create a directory folder named orlando_cambridge
, then make sure that you replace orlando_cambridge
with the name of your directory for the rest of this documentation.
- Run
docker-compose down --remove-orphans
if you plan to re-test in a near future and don't want to wait for 8-10min for drupal to re-install everything - Or run
docker-compose down --remove-orphans --volume
to delete the database and drupal files persistant volume storage
- Open the terminal
- Navigate to the
orlando_cambrigde
folder as created in the section 1.2 above - Ensure that the current
docker-compose.yml
is exactly configured as the one in this gist - Get the latest deployed image by running
docker-compose pull
. This image contains the latest deployed code found in the master branch at https://gitlab.com/calincs/access/orlando-cambridge - Run
docker-compose up --detach
For bringing down the containers follow the same steps as in section 1.3.
If you navigate at http://localhost:8000 and you don't see anything or there is a browser error:
- Open the terminal
- Navigate to the
orlando_cambrigde
folder as created in the section 1.2 above - Run
docker container logs orlando_cambridge_drupal_1
and send me the screenshot.
open .
: Opens the current forder from terminal in Finderpwd
: Command which tells you where you arecd ..
: Move one directory upcd -
: Navigate back to the latest directory you were incd ~
: Go back to your current home directory