Skip to content

Instantly share code, notes, and snippets.

@guaxinim
Created December 3, 2017 00:11
Show Gist options
  • Save guaxinim/83509bbd298355c0cbfed08cc0c7ce4f to your computer and use it in GitHub Desktop.
Save guaxinim/83509bbd298355c0cbfed08cc0c7ce4f to your computer and use it in GitHub Desktop.
Create a java app in a container that trusts in a specific CA
1) Create a Dockerfile build with FROM pointing at one of app base images (call it `example-com-eap7`)
2) ADD or COPY example.com's CA (for EAP, this looks something like `ADD configs/certs/cacerts_JDK8 /etc/pki/ca-trust/extracted/java/cacerts`)
3) Create new apps based on `example-com-eap7` (`oc new-app example-com-eap7~...`)
The jist is, if you can add the pertinent files to `/etc/pki/ca-trust/` then the apps & pods should be good.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment