schema_version: 1 name: "jboss-webserver-3/webserver31-tomcat8-openshift" description: "Red Hat JBoss Web Server 3.1 - Tomcat 8 OpenShift container image" version: "1.4" from: "jboss-webserver-3/webserver31-tomcat8:3.1.14" labels: - name: "com.redhat.component" value: "jboss-webserver-3-webserver31-tomcat8-openshift-container" - name: "io.k8s.description" value: "Platform for building and running web applications on JBoss Web Server 3.1 - Tomcat v8" - name: "io.k8s.display-name" value: "JBoss Web Server 3.1" - name: "io.openshift.expose-services" value: "8080:http" - name: "io.openshift.tags" value: "builder,java,tomcat8" - name: "io.openshift.s2i.scripts-url" value: "image:///usr/local/s2i" - name: "maintainer" value: "szappis@redhat.com" envs: - name: "STI_BUILDER" value: "jee" - name: JWS_ADMIN_USERNAME example: jwsadmin - name: JWS_ADMIN_PASSWORD example: p5sw0rdd - name: JWS_HTTPS_CERTIFICATE_DIR example: /opt/webserver/conf - name: JWS_HTTPS_CERTIFICATE example: server.crt - name: JWS_HTTPS_CERTIFICATE_KEY example: server.key - name: JWS_HTTPS_CERTIFICATE_PASSWORD example: $tr0nGPaSs? - name: CATALINA_OPTS_APPEND example: -Dfoo=bar - name: JWS_REALM_USERTABLE - name: JWS_REALM_USERNAME_COL - name: JWS_REALM_USERCRED_COL - name: JWS_REALM_USERROLE_TABLE - name: JWS_REALM_ROLENAME_COL - name: JWS_SERVER_NAME description: Sets the server attribute of the Tomcat Connector in server.xml example: tomcat_prod - name: DB_SERVICE_PREFIX_MAPPING example: test-postgresql=TEST_POSTGRESQL,test-mysql=TEST_MYSQL - name: SCRIPT_DEBUG description: If set to true, ensurses that the bash scripts are executed with the -x option, printing the commands and their arguments as they are executed. example: "true" - name: JAVA_MAX_MEM_RATIO description: This is used to calculate a default maximal heap memory based on a containers restriction. If used in a container without any memory constraints for the container then this option has no effect. If there is a memory constraint then `-Xmx` is set to a ratio of the container available memory as set here. The default is `50` which means 50% of the available memory is used as an upper boundary. You can skip this mechanism by setting this value to `0` in which case no `-Xmx` option is added. example: "50" - name: JAVA_INITIAL_MEM_RATIO description: This is used to calculate a default initial heap memory based the maximumal heap memory. The default is `100` which means 100% of the maximal heap is used for the initial heap size. You can skip this mechanism by setting this value to `0` in which case no `-Xms` option is added. example: "100" - name: JAVA_MAX_INITIAL_MEM description: The maximum size of the initial heap memory, if the calculated default initial heap is larger then it will be capped at this value. The default is 4096 MB. example: "4096" - name: JAVA_CORE_LIMIT description: Core limit as described in https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt. Used to configure the number of GC threads and parallelism for ForkJoinPool. Defaults to container core limit. example: "2" - name: JAVA_DIAGNOSTICS description: Set this to get some diagnostics information to standard output when things are happening. **Disabled by default.** example: "true" - name: GC_MIN_HEAP_FREE_RATIO description: Minimum percentage of heap free after GC to avoid expansion. example: "20" - name: GC_MAX_HEAP_FREE_RATIO description: Maximum percentage of heap free after GC to avoid shrinking. example: "40" - name: GC_TIME_RATIO description: Specifies the ratio of the time spent outside the garbage collection (for example, the time spent for application execution) to the time spent in the garbage collection. example: "4" - name: GC_ADAPTIVE_SIZE_POLICY_WEIGHT description: The weighting given to the current GC time versus previous GC times. example: "90" - name: GC_MAX_METASPACE_SIZE description: The maximum metaspace size. example: "100" - name: "ENABLE_ACCESS_LOG" example: "true" description: Enable the Access Log. ports: - value: 8443 modules: repositories: - git: url: https://github.com/jboss-openshift/cct_module.git ref: 0.39.0 - path: custom-modules install: - name: jboss.container.maven.35.bash version: "3.5scl" - name: dynamic-resources - name: s2i-common - name: java-alternatives - name: os-jws-s2i - name: jws8-conffiles version: "1.0" - name: os-jws-deployments - name: jboss.container.jolokia.bash - name: os-jws-jolokia - name: os-jws-db-drivers - name: os-jws-logging - name: jboss.container.java.jvm.bash - name: os-jws-launch - name: os-jws-https - name: os-jws-secure-mgmt-console - name: os-jws-rm-root - name: os-jws-rm-defaults - name: os-jws-chmod - name: openshift-passwd - name: jboss.container.util.logging.bash packages: install: - rh-mongodb36-mongo-java-driver - postgresql-jdbc - mysql-connector-java - PyYAML run: user: 185 cmd: - "/opt/webserver/bin/launch.sh" osbs: repository: name: containers/jboss-webserver-3 branch: jb-webserver-3.1-tomcat-8-openshift-rhel-7