Skip to content

usnistgov/hit-iz-tool-infra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 

Repository files navigation

hit-base-tool-deploy

This repository is to deploy the hit-base-tool located at https://github.com/haffo/hit-base-tool/. The deployment script handles the deployment of the following tools:

  • iztool-cni: Immunization tool for CNI branch: iztool-cni
  • iztool: Immunization tool for NIST

Pre-requirements

Deployment steps

iztool-cni
  1. Switch to the iztool-cni branch
  • git checkout iztool-cni
  1. Remove old db files to ensure new resource bundle data will be loaded
  • rm -r ./data/app/db
  1. Starts the containers
  • cd container-config
  • ./deploy.sh
  1. Access the tool at https://localhost/
iztool
  1. Switch to the iztool-nist branch
  • git checkout iztool-nist
  1. Remove old db files to ensure new resource bundle data will be loaded
  • rm -r ./data/app/db
  1. Starts the containers
  • cd container-config
  • ./deploy.sh
  1. Access the tool at https://localhost/
Change certs files site

It is not recommended to use the self signed certificates for production site. You should get your own certificates and add them to the deployment scripts as followed

  1. Add you certs files to ./hit-base-tool-proxy/certs cp my.cert.pem ./hit-base-tool-proxy/certs/ cp my.key.pem ./hit-base-tool-proxy/certs/

  2. Replace certs file values ARG servercer=certs/my.cert.pem ARG serverkey=certs/my.key.pem

  3. Set your hostname Replace 'localhost' by your hostname in ./hit-base-tool-proxy/Dockerfile

  • ARG serverhost=myhostname
  1. Access the tool at https://myhostname/

Migrating

  • cd container-config
  • ./update-accounts.sh

Where to find the data ?

All data are mounted to host which means they are accessible from your host under the data folder

  1. hit-base-tool logs ./data/hit-base-tool/db/data/

  2. hit-base-tool-account-db logs ./data/hit-base-tool-account-db/data/

Where to find the logs ?

All the logs are mounted to your host. The logs are available under:

  1. hit-base-tool logs ./data/hit-base-tool/app/logs/app/ ./data/hit-base-tool/app/logs/tomcat/ ./data/hit-base-tool/db/logs/

  2. hit-base-tool-account-db logs ./data/hit-base-tool-account-db/logs/

  3. hit-base-tool-proxy logs ./data/hit-base-tool-proxy/logs/

How to change the logs properties?

To change the logs properties edit the log4j ./data/hit-base-tool/app/logs/config/app-log4j.properties

How to deploy a different version of the war file

  1. Delete the previous data.
  • rm -r ./data/hit-base-tool/db/
  1. Remove previous images and containers
  • cd container-config
  • ./clean-all.sh
  1. Deploy
  • ./deploy.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published