For the most part, just follow the instructions found here. GitHub Link
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
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.
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.
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
.