Skip to content
Snippets Groups Projects
Commit b210873d authored by Chris Shantz's avatar Chris Shantz
Browse files

Update readme.md with Docker toolbox steps.

parent 48268c19
No related branches found
No related tags found
No related merge requests found
# WCMS Docker setup
You will need to get Docker (https://www.docker.com/products/docker-desktop) either Docker CE for Windows/Mac or Docker Toolbox for Windows (https://docs.docker.com/toolbox/toolbox_install_windows/) or Mac (https://docs.docker.com/toolbox/toolbox_install_mac/).
If you plan to run VirtualBox and Docker you will need to install the Docker Toolbox, Docker CE requires Hyper-V to be enable which isn't compatible with VirtualBox.
**CAUTION!** This Docker box is meant for local development only. This set up is not hardened and is not secure, so
only us it as a local development environment.
First we need to build the images:
If you are using Docker Toolbox, on a Windows machine start Docker Quickstart Terminal.
From the command line, run:
```bash
docker-machine ip
```
It will return the IP address of the Docker machine, you will need to add the Docker machine IP to your ```host``` file.
```bash
git clone https://git.uwaterloo.ca/mnshantz/wcms-docker.git wcms-docker
```
Go into the directory you cloned Docker into:
```bash
docker-compose build --no-cache
cd wcms-docker
```
First we need to build the images,(this takes about 12 minutes or so):
```bash
docker-compose build
```
Once that's done you can create the containers, running with -d runs them in detached mode:
......@@ -19,6 +40,11 @@ To check that all the boxes are running:
```bash
docker-compose ps
```
If all containers say up, you are good to proceed to the next step.
Next we will need to run the profile rebuild for either our Drupal 7 or Drupal 8 container:
in the URL: http://docker:9000
Portainer can be accessed at port :9000 you can use Portainer to easily log in to the web container to run the profile rebuild the base profile or run composer etc...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment