/jboss-eap-7-openshift-image

Red Hat JBoss Enterprise Application Platform 7 OpenShift container image

Primary LanguageJavaApache License 2.0Apache-2.0

Red Hat JBoss Enterprise Application Platform 7.2 OpenShift container image

Importing Imagestreams and Templates

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/cli_reference/get_started_cli.html

for resource in eap72-image-stream.json \
  eap72-amq-persistent-s2i.json \
  eap72-amq-s2i.json \
  eap72-basic-s2i.json \
  eap72-https-s2i.json \
  eap72-mongodb-persistent-s2i.json \
  eap72-mongodb-s2i.json \
  eap72-mysql-persistent-s2i.json \
  eap72-mysql-s2i.json \
  eap72-postgresql-persistent-s2i.json \
  eap72-postgresql-s2i.json \
  eap72-sso-s2i.json \
  eap72-third-party-db-s2i.json \
  eap72-tx-recovery-s2i.json
do
  oc replace --force -f https://raw.githubusercontent.com/jboss-container-images/jboss-eap-7-openshift-image/eap72/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 ...

Updating Existing Images

To update an to the most recent image:

oc import-image jboss-eap72-openshift:1.0

Optionally include namespace to the import:

oc -n myproject import-image jboss-eap72-openshift:1.0

Creating New Applications With Templates

Example:

oc -n myproject new-app eap72-basic-s2i -p APPLICATION_NAME=eap72-basic-app

or, if a namespace was used with -n above:

oc -n myproject new-app eap72-basic-s2i -p APPLICATION_NAME=eap72-basic-app -p IMAGE_STREAM_NAMESPACE=myproject

Creating Secrets

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
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 Red Hat EAP on OpenShift Documentation for additional details.

License

See LICENSE file.