Start the Docker Quickstart Terminal from the applications folder:
Code Block | ||||
---|---|---|---|---|
| ||||
Applications/Docker/Docker Quickstart Terminal.app |
...
- Determine <parent directory> where you want to have the <hspc-docker local directory> installed.
- Change to the <parent directory>.
- Copy the archive file furnished by Salvador to the <parent directory>, and expand it.
- Change to the <hspc-docker localpath> directory:
- Build the hspc image:
Code Block | ||||
---|---|---|---|---|
| ||||
cd <hspc-docker path>localpath> docker build -t="opencds/hspc" . |
Create volume for hspc webapps:
Code Block | ||||
---|---|---|---|---|
| ||||
docker create -v /usr/local/tomcat/webapps --name hspc-webapps opencds/hspc /bin/true |
Create hspc container:
sudo docker run --volumes-from hspc-webapps --volumes-from hspc-mysql-data -d -p 8080:8080 --name hspc opencds/hspc
Code Block | ||||
---|---|---|---|---|
| ||||
docker run --volumes-from hspc-webapps --volumes-from hspc-mysql-data -d -p 8080:8080 --name hspc opencds/hspc |
...