The application image combines the builder image with your applications source code, which is served using whatever application is installed via the Dockerfile, compiled using the assemble script, and run using the run script. The following command will create the application image:
s2i build test/test-app s2i-tomcat s2i-tomcat-app
Running the application image is as simple as invoking the docker run command:
docker run -d -p 8080:8080 s2i-tomcat-app
The application, which consists of a simple static web page, should now be accessible at http://localhost:8080.
oc import-image (you repository host)/s2i-tomcat:lastest -n openshift --confirm --insecure
oc edit is/tomcat-s2i -n openshift
tags:
- annotations:
description: >-
Build and run Tomcat applications on CentOS 7. For more information
about using this builder image, including OpenShift considerations,
see https://github.com/silentwu/s2i-tomcat.git.
iconClass: icon-wildfly
openshift.io/display-name: Tomcat 8.5.24
openshift.io/provider-display-name: 'Rabbit blog, http://blog.xianshiyue.com'
sampleRepo: 'https://gitee.com/silentwu/openshift-tomcat.git'
supports: 'tomcat:8.5.24,jee,java'
tags: 'builder,tomcat,java'
version: 8.5.24