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
- docker: Instructions to install docker can be found at https://www.docker.com/docker-community
- docker-compose: Instructions to install docker-compose can be found at https://www.docker.com/docker-community
- git: Instructions to install git can be found at https://git-scm.com/
- Switch to the
iztool-cnibranch
git checkout iztool-cni
- Remove old db files to ensure new resource bundle data will be loaded
rm -r ./data/app/db
- Starts the containers
cd container-config./deploy.sh
- Access the tool at https://localhost/
- Switch to the
iztool-nistbranch
git checkout iztool-nist
- Remove old db files to ensure new resource bundle data will be loaded
rm -r ./data/app/db
- Starts the containers
cd container-config./deploy.sh
- Access the tool at https://localhost/
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
-
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/
-
Replace certs file values ARG servercer=certs/my.cert.pem ARG serverkey=certs/my.key.pem
-
Set your hostname Replace 'localhost' by your hostname in ./hit-base-tool-proxy/Dockerfile
ARG serverhost=myhostname
- Access the tool at
https://myhostname/
cd container-config./update-accounts.sh
All data are mounted to host which means they are accessible from your host under the data folder
-
hit-base-tool logs ./data/hit-base-tool/db/data/
-
hit-base-tool-account-db logs ./data/hit-base-tool-account-db/data/
All the logs are mounted to your host. The logs are available under:
-
hit-base-tool logs ./data/hit-base-tool/app/logs/app/ ./data/hit-base-tool/app/logs/tomcat/ ./data/hit-base-tool/db/logs/
-
hit-base-tool-account-db logs ./data/hit-base-tool-account-db/logs/
-
hit-base-tool-proxy logs ./data/hit-base-tool-proxy/logs/
To change the logs properties edit the log4j ./data/hit-base-tool/app/logs/config/app-log4j.properties
- Delete the previous data.
rm -r ./data/hit-base-tool/db/
- Remove previous images and containers
cd container-config./clean-all.sh
- Deploy
./deploy.sh