-
Bug
-
Resolution: Unresolved
-
Major
-
None
when I provision empty app (pom.xml containing just provisioning plugin with cloud-default-config layer, which is the closed I am able to get when trying to compare 7.4.x builder image which already contained the server) I get these environment properties set for pod running the resulting image:
HOME=/home/jboss HOSTNAME=test-pod IMAGE_NAME=jboss-eap-8-tech-preview/eap8-openjdk11-builder-openshift-rhel8 IMAGE_VERSION=1.0.0.Beta JAVA_HOME=/usr/lib/jvm/java-17 JAVA_VENDOR=openjdk JAVA_VERSION=17 JBOSS_CONTAINER_JAVA_JVM_MODULE=/opt/jboss/container/java/jvm JBOSS_CONTAINER_JAVA_PROXY_MODULE=/opt/jboss/container/java/proxy JBOSS_CONTAINER_MAVEN_36_MODULE=/opt/jboss/container/maven/36/ JBOSS_CONTAINER_MAVEN_DEFAULT_MODULE=/opt/jboss/container/maven/default/ JBOSS_CONTAINER_MAVEN_S2I_MODULE=/opt/jboss/container/maven/s2i JBOSS_CONTAINER_OPENJDK_JDK_MODULE=/opt/jboss/container/openjdk/jdk JBOSS_CONTAINER_S2I_CORE_MODULE=/opt/jboss/container/s2i/core/ JBOSS_CONTAINER_UTIL_LOGGING_MODULE=/opt/jboss/container/util/logging/ JBOSS_CONTAINER_WILDFLY_RUN_MODULE=/opt/jboss/container/wildfly/run JBOSS_CONTAINER_WILDFLY_S2I_LEGACY_GALLEON_MODULE=/opt/jboss/container/wildfly/s2i/galleon JBOSS_CONTAINER_WILDFLY_S2I_MODULE=/opt/jboss/container/wildfly/s2i JBOSS_HOME=/opt/server JBOSS_IMAGE_NAME=jboss-eap-8-tech-preview/eap8-openjdk17-builder-openshift-rhel8 JBOSS_IMAGE_VERSION=1.0.0.Beta KUBERNETES_PORT=tcp://172.122.0.1:443 KUBERNETES_PORT_443_TCP=tcp://172.122.0.1:443 KUBERNETES_PORT_443_TCP_ADDR=172.122.0.1 KUBERNETES_PORT_443_TCP_PORT=443 KUBERNETES_PORT_443_TCP_PROTO=tcp KUBERNETES_SERVICE_HOST=172.122.0.1 KUBERNETES_SERVICE_PORT=443 KUBERNETES_SERVICE_PORT_HTTPS=443 MAVEN_MIRROR_URL=http://repository.eapqe.psi.redhat.com:8081/artifactory/all/ MAVEN_VERSION=3.6 NSS_SDB_USE_CACHE=no OPENSHIFT_BUILD_NAME=provision-empty-server-eap8-1 OPENSHIFT_BUILD_NAMESPACE=jbliznak-remote-xtf PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PROVISIONING_MAVEN_PLUGIN_ARTIFACT_ID=eap-maven-plugin PROVISIONING_MAVEN_PLUGIN_GROUP_ID=org.jboss.eap.plugins PROVISIONING_MAVEN_PLUGIN_VERSION=1.0.0.Alpha3-redhat-00001 PWD=/home/jboss S2I_SOURCE_DEPLOYMENTS_FILTER=*.war *.ear *.rar *.jar SHLVL=2 SSO_DEFAULT_PROVIDER_NAME=rh-sso TERM=xterm _=/usr/bin/env container=oci
For example 7.4.5 builder image has many different ones:
AB_JOLOKIA_AUTH_OPENSHIFT=true AB_JOLOKIA_HTTPS=true AB_JOLOKIA_PASSWORD_RANDOM=true AB_PROMETHEUS_JMX_EXPORTER_CONFIG=/opt/jboss/container/prometheus/etc/jmx-exporter-config.yaml AB_PROMETHEUS_JMX_EXPORTER_PORT=9799 CONFIGURE_ELYTRON_SSL=true container=oci DEFAULT_ADMIN_USERNAME=eapadmin DELETE_BUILD_ARTIFACTS=true DISABLE_LEGACY_SECURITY=true EAP_FULL_GROUPID=org.jboss.eap GALLEON_BUILD_FP_MAVEN_ARGS_APPEND=-Dcom.redhat.xpaas.repo.jbossorg GALLEON_DEFAULT_FAT_SERVER=/opt/jboss/container/eap/galleon/definitions/fat-default-server GALLEON_DEFAULT_SERVER=/opt/jboss/container/eap/galleon/definitions/slim-default-server GALLEON_DEFINITIONS=/opt/jboss/container/eap/galleon/definitions GALLEON_FP_COMMON_PKG_NAME=eap.s2i.common GALLEON_FP_PATH=/opt/jboss/container/eap/galleon/eap-s2i-galleon-pack GALLEON_LOCAL_MAVEN_REPO=/opt/jboss/container/wildfly/s2i/galleon/galleon-m2-repository GALLEON_MAVEN_BUILD_IMG_SETTINGS_XML=/opt/jboss/container/wildfly/s2i/galleon/build-image-settings.xml GALLEON_MAVEN_REPO_HOOK_SCRIPT=/opt/jboss/container/eap/galleon/patching.sh GALLEON_MAVEN_SETTINGS_XML=/opt/jboss/container/wildfly/s2i/galleon/settings.xml GALLEON_PROVISON_FP_MAVEN_ARGS_APPEND=-Dcom.redhat.xpaas.repo.jbossorg GALLEON_S2I_FP_ARTIFACT_ID=eap-s2i-galleon-pack GALLEON_S2I_FP_GROUP_ID=org.jboss.eap.galleon.s2i GALLEON_S2I_PRODUCER_NAME=eap-s2i GALLEON_VERSION=4.2.8.Final GALLEON_WILDFLY_VERSION=5.2.6.Final HOME=/home/jboss HOSTNAME=2fdbccf96bb8 HTTPS_ENABLE_HTTP2=true JAVA_HOME=/usr/lib/jvm/java-17 JAVA_VENDOR=openjdk JAVA_VERSION=17 JBOSS_CONTAINER_EAP_GALLEON_FP_PACKAGES=/opt/jboss/container/eap/galleon/eap-s2i-galleon-pack/src/main/resources/packages JBOSS_CONTAINER_JAVA_JVM_MODULE=/opt/jboss/container/java/jvm JBOSS_CONTAINER_JAVA_PROXY_MODULE=/opt/jboss/container/java/proxy JBOSS_CONTAINER_JOLOKIA_MODULE=/opt/jboss/container/jolokia JBOSS_CONTAINER_MAVEN_36_MODULE=/opt/jboss/container/maven/36/ JBOSS_CONTAINER_MAVEN_DEFAULT_MODULE=/opt/jboss/container/maven/default/ JBOSS_CONTAINER_MAVEN_S2I_MODULE=/opt/jboss/container/maven/s2i JBOSS_CONTAINER_OPENJDK_JDK_MODULE=/opt/jboss/container/openjdk/jdk JBOSS_CONTAINER_PROMETHEUS_MODULE=/opt/jboss/container/prometheus JBOSS_CONTAINER_S2I_CORE_MODULE=/opt/jboss/container/s2i/core/ JBOSS_CONTAINER_UTIL_LOGGING_MODULE=/opt/jboss/container/util/logging/ JBOSS_CONTAINER_WILDFLY_S2I_GALLEON_DIR=/opt/jboss/container/wildfly/s2i/galleon JBOSS_CONTAINER_WILDFLY_S2I_GALLEON_PROVISION=/opt/jboss/container/wildfly/s2i/galleon/provisioning/generic_provisioning JBOSS_CONTAINER_WILDFLY_S2I_MODULE=/opt/jboss/container/wildfly/s2i JBOSS_EAP_VERSION=7.4.5 JBOSS_HOME=/opt/eap JBOSS_IMAGE_NAME=jboss-eap-7-tech-preview/eap74-openjdk17-openshift-rhel8 JBOSS_IMAGE_VERSION=7.4.5 JBOSS_MODULES_SYSTEM_PKGS=jdk.nashorn.api,com.sun.crypto.provider JBOSS_PRODUCT=eap JOLOKIA_VERSION=1.7.1 LAUNCH_JBOSS_IN_BACKGROUND=true LD_PRELOAD=libnss_wrapper.so MAVEN_VERSION=3.6 NSS_WRAPPER_GROUP=/etc/group NSS_WRAPPER_PASSWD=/home/jboss/passwd OFFLINER_URLS=--url https://repo1.maven.org/maven2/ --url https://repository.jboss.org/nexus/content/groups/public/ --url https://maven.repository.redhat.com/ga/ OFFLINER_VERSION=1.6 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PRODUCT_VERSION=7.4.5 S2I_COPY_SERVER=true S2I_FP_VERSION=23.0.0.Final S2I_SOURCE_DEPLOYMENTS_FILTER=*.war *.ear *.rar *.jar SSO_FORCE_LEGACY_SECURITY=false TERM=xterm TMP_GALLEON_LOCAL_MAVEN_REPO=/opt/jboss/container/wildfly/s2i/galleon/tmp-galleon-m2-repository WILDFLY_DIST_MAVEN_LOCATION=https://repository.jboss.org/nexus/content/groups/public/org/wildfly/wildfly-dist WILDFLY_S2I_OUTPUT_DIR=/s2i-output WILDFLY_VERSION=7.4.5.GA-redhat-00001
Would it make sense to provide some of them to the new images based on the server type/version/layers installed (after application is built, so perhaps somewhere in cloud pack)?
Eg. JBOSS_PRODUCT, JBOSS_EAP_VERSION, WILDFLY_VERSION
or introduce some new ones with info about provisioned server? (feature-packs GAVs .. )