Skip to content

Instantly share code, notes, and snippets.

@jkeam
Last active March 3, 2022 15:45
Show Gist options
  • Save jkeam/93240df97e84690745502ddb9ceb794a to your computer and use it in GitHub Desktop.
Save jkeam/93240df97e84690745502ddb9ceb794a to your computer and use it in GitHub Desktop.
Installing HIMSS 2022 SCM Integration Demo

Installing HIMSS 2022 SCM Integration Demo

For the most part, just follow the instructions found here. GitHub Link

Setup

I'm assuming you have oc and are logged in as a cluster-admin to an OpenShift 4.9 cluster. Also assuming you have git so you can check out the github project.

The only extra setup instructions I had to perform was ansible related (notice jmespath which is required):

python3 -m venv venv
source ./venv/bin/activate
python -m pip install --upgrade pip
pip install ansible jmespath

Installling

The main script you run is (works in FIPS mode):

ansible-playbook playbooks/install.yml

Like the instructions say, it'll take about 10 minutes or more to complete after kicking off the playbook.

Smoke Test

To perform the smoke test, you need test files. The following are the steps to generate them:

SCM_FRONTEND_HOST=$(oc get kservice scm-frontend -n user1-himss2022-scm --template='{{ .status.url }}' | sed 's/"//g')
docker run --rm --name scm-datagen -e SCM_UPLOAD_TIMES=1 -e SCM_URL=$SCM_FRONTEND_HOST/gzippedFiles quay.io/jkeam/scm-datagen

Look for the ALL FILES PERSISTED message.

Check Pod Logs

You can optionally check the pod logs if you want

oc logs $(oc get pods -o name -n user1-himss2022-scm | grep scm-backend | grep -v psql) -n user1-himss2022-scm

Look for logs related to KafkaConsumer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment