This program takes the SOP documents from the openshift repository and indexes them into an elasticsearch container as a way of making it easier to find an SOP document. This information is then displayed in a web interface which allows you to easily search for the SOP document you want.
After launching the UI, simply type into the searchbox to find results. You can also choose to filter by the tags (aka the possible location of your document), author, and the name of the SOP to help narrow your search. You can further choose to sort your results by the last updated or by the most relevant.
To build the images used in deployment.yml:
- build the image using the dockerfile in the elasticsearch folder
- push image to your repo
- build the image using the dockerfile
- push image to your repo
The UI image is slightly different as you have to make sure to update the build folder each time you change anything in the UI.
- make sure your build folder has been updated
npm run build
- if above fails, try
npm install
ornpm update
and then trying the above command again
- build the image using dockerfile in the ui folder
- push image to your repo
- Create the ssh secret yml file
apiVersion: v1
data:
ssh-privatekey:
ssh-publickey:
kind: Secret
metadata:
name: ssh
namespace: sop-search
type: Opaque
- Create the configmap file
apiVersion: v1
kind: ConfigMap
metadata:
name: configmap
namespace: sop-search
data:
time: "5" #number of minutes before restarting routine
elastic: http://localhost:9200 #location of elasticsearch data
repourl: https://github.com/openshift/ops-sop-search/blob/master/ #repo url used for creating links
reponame: ops-sop-search #name of the repository you're indexing
gitscript: script.sh #location of the shell script
giturl: git@github.com:openshift/ops-sop-search.git #clone with ssh
- Create the service_account, role, and role_binding (using files from deploy folder)
- Create the services (one for the UI and one for the elasticsearch using files from deploy folder)
- Create the routes (one for UI and one for elasticsearch using files from deploy folder)
- Deploy the deployment file
- Access the application via the web address given in the UI route