opendevstack / ods-quickstarters

Contains project quickstarters (boilerplates) for Nginx, Go, Java (Spring Boot), Python (Flask), Rust (Axum), Scala (Play), TypeScript (Express), Angular, Ionic, Jupyter, RShiny - all including CI/CD integration & Jenkins build agents
Apache License 2.0
27 stars 39 forks source link

Streamlit quickstarter - missing NEXUS_HOST build arg #951

Closed paulmayer closed 12 months ago

paulmayer commented 1 year ago

Describe the bug Streamlit quickstarter build fails to import nexus host certificates into truststore.

To Reproduce Steps to reproduce the behavior:

  1. Build quickstarter image
  2. Check /etc/pki/ca-trust/source/anchors/oc_app.crt

Expected behavior Nexus certificates are exported to /etc/pki/ca-trust/source/anchors/oc_app.crt

Reason openssl s_client -showcerts -host ${NEXUS_HOST} -port 443 shows certs for ${NEXUS_HOST}, however, https://github.com/opendevstack/ods-quickstarters/blob/master/ds-streamlit/Jenkinsfile.template#L17C1-L24C10 passes nexusHostWithoutScheme.

Changing openssl s_client -showcerts -host ${NEXUS_HOST} -port 443 to use ${nexusHostWithoutScheme} should fix this issue.