Deploy on the Docker Swarm instance
- Chose a node in the swarm that has a public IP (needed so the general public can get there from browndog.ncsa.illinois.edu)
- Place the config.json on the node in /etc/transformations/ (will likely need to create this directory), and populate the json with proper values
- Port 5000 is used by the image, but it can be published to any port on the node. I use port 5050 here as an example, but if you want to use another port replace all instances of 5050 with your selected port.
- On bd-bastion use the devops aliases to deploy on prod or dev with `prod service create --detach --name prod-transformations-catalog --label bd.level=prod --label bd.replicas.min=1 --label bd.replica.max=1 --replicas 1 --constraint 'node.hostname==<NODE NAME>' --containter-label project=BrownDog --container-label staging=prod --containter-label service=prod-transformations-catalog --mode replicated --publish 5050:5000 --mount type=bind,source=/etc/transformations/config.json,destination=/app/instance/config.json browndog/transformations-catalog:latest`
- Modify the apache configurations on browndog.ncsa.illinois.edu, specifically in /etc/apache2:
- /conf-available/browndog.conf, add these lines:
b. sites-available/000-default.conf, add this line:
c. sites-available/default-ssl.conf, add these lines:
d. sites-enabled/000-default.conf, and default-ssl.conf, are links to the sites-available files, so automatically updated.