Note
|
Extends JBoss EAP 7.3 container image |
You should have the 'oc' tools available and be logged in to your OpenShift instance. For more details on how to do this, please consult the OpenShift documentation. For example, for OpenShift Online, see: https://docs.openshift.com/online/pro/cli_reference/get_started_cli.html
for resource in eap73-image-stream.json \
eap73-amq-persistent-s2i.json \
eap73-amq-s2i.json \
eap73-basic-s2i.json \
eap73-https-s2i.json \
eap73-sso-s2i.json \
eap73-third-party-db-s2i.json \
eap73-tx-recovery-s2i.json
do
oc replace --force -f https://raw.githubusercontent.com/jboss-container-images/jboss-eap-7-openshift-image/7.3.x/templates/${resource}
done
If you have administrative access to the general openshift
namespace and want the image streams and templates to be accessible by all projects, add -n openshift to the oc replace line of the command. For example:
oc replace -n openshift --force -f ...
See the OpenShift documentation at https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.3/html/ for more details on importing templates.
To update an to the most recent image:
oc import-image jboss-eap73-openshift:7.3
Optionally include namespace to the import:
oc -n myproject import-image jboss-eap73-openshift:7.3
Example:
oc -n myproject new-app eap73-basic-s2i -p APPLICATION_NAME=eap73-basic-app
or, if a namespace was used with -n
above:
oc -n myproject new-app eap73-basic-s2i -p APPLICATION_NAME=eap73-basic-app -p IMAGE_STREAM_NAMESPACE=myproject
For more information on application creation and deployment see the OpenShift documentation at https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.3/html/ for more details on importing templates.
Some of the included templates require the creation of secrets.
Example:
$ keytool -genkey -keyalg RSA -alias eapdemo-selfsigned -keystore keystore.jks -validity 360 -keysize 2048
$ oc secrets new eap7-app-secret keystore.jks
Example secrets may also be found here: https://github.com/jboss-openshift/application-templates/tree/master/secrets
oc create -n myproject -f https://raw.githubusercontent.com/jboss-openshift/application-templates/master/secrets/eap-app-secret.json
oc create -n myproject -f https://raw.githubusercontent.com/jboss-openshift/application-templates/master/secrets/eap7-app-secret.json
oc create -n myproject -f https://raw.githubusercontent.com/jboss-openshift/application-templates/master/secrets/sso-app-secret.json
Please refer to the EAP Documentation for additional details.
See LICENSE file.