You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Deploy on the Docker Swarm instance

  1. Chose a node in the swarm that has a public IP (needed so the general public can get there from browndog.ncsa.illinois.edu)
  2. Place the config.json on the node in /etc/transformations/ (will likely need to create this directory), and populate the json with proper values
  3. 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.
  4. 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`
  5. Modify the apache configurations on browndog.ncsa.illinois.edu, specifically in /etc/apache2:
    1. /conf-available/browndog.conf, add these lines:
/etc/apache2/conf-available/browndog.conf
ProxyPass	/transformations/ http://<NODE PUBLIC IP>:5050/
ProxyPassReverse	/transformations/ http://<NODE PUBLIC IP>:5050/
RedirectMatch permanent	^/transformations$ /transformations/

b. sites-available/000-default.conf, add this line:

/etc/apache2/sites-available/000-default.conf
Redirect permanent	/transformations/ https://browndog.ncsa.illinois.edu/transformations/

c. sites-available/default-ssl.conf, add these lines:

/etc/apache2/sites-available/default-ssl.conf
	ProxyPass	/transformations/ http://<NODE PUBLIC IP:5050/transformations/ nocanon
    ProxyPassReverse	/transformations/ http://<NODE PUBLIC IP:5050/transformations
    RedirectMatch permanent	^/transformations$ /transformations/

d. sites-enabled/000-default.conf, and default-ssl.conf, are links to the sites-available files, so automatically updated.



  • No labels