Skip to content

Instantly share code, notes, and snippets.

@rwngwn
Last active July 11, 2018 08:48
Show Gist options
  • Save rwngwn/1b60518cf4b09a4066a8c67f36fa95f9 to your computer and use it in GitHub Desktop.
Save rwngwn/1b60518cf4b09a4066a8c67f36fa95f9 to your computer and use it in GitHub Desktop.
[david@cainhurst redhat-openjdk-18-openshift-image]$ cekit-cache ls
Cached artifacts:
912c3cc4-7bd3-445d-9927-5063ba3b3bc1:
sha256: 04b95a87ee88e1cba7682884ea7f89d5ec097c0fa513e7aca1366d79fb3290a8
sha1: 9cbe5393b6837849edbc067fe1a1405ff0c43605
md5: f97f623e5b614a7b6d1eb5ff7158027b
names:
hawkular-javaagent-1.0.1.Final-redhat-2-shaded.jar
d9171217-744e-43af-8d2f-5ee04f2fd741:
sha256: 223d394c3912028ddd18c6401b3aa97fe80e8d0ae3646df2036d856f35f18735
sha1: 7c32933edaea4ba40bdcc171e25a0a9c36e2de20
md5: d31c6b1525e6d2d24062ef26a9f639a8
names:
jolokia-jvm-1.5.0.redhat-1-agent.jar
artifacts:
- md5: d31c6b1525e6d2d24062ef26a9f639a8
name: jolokia-jvm-1.5.0.redhat-1-agent.jar
url: https://maven.repository.redhat.com/ga/org/jolokia/jolokia-jvm/1.5.0.redhat-1/jolokia-jvm-1.5.0.redhat-1-agent.jar
- md5: f97f623e5b614a7b6d1eb5ff7158027b
name: hawkular-javaagent-1.0.1.Final-redhat-2-shaded.jar
path: /home/david/repo/ce/images/redhat-openjdk-18-openshift-image/target/repo/cct_module.git-master/os-java-hawkular/hawkular-javaagent-1.0.1.Final-redhat-2-shaded.jar
description: Source To Image (S2I) image for Red Hat OpenShift providing OpenJDK 1.8
envs:
- name: PATH
value: $PATH:"/usr/local/s2i"
- example: 'true'
name: JAVA_DATA_DIR
value: /deployments/data
- description: The directory where the application resides. All paths in your application
are relative to this directory.
example: myapplication/
name: JAVA_APP_DIR
- description: Directory holding the Java jar files as well an optional `classpath`
file which holds the classpath. Either as a single line classpath (colon separated)
or with jar files listed line-by-line. If not set **JAVA_LIB_DIR** is the same
as **JAVA_APP_DIR**.
name: JAVA_LIB_DIR
- description: JVM options passed to the `java` command.
example: -verbose:class
name: JAVA_OPTIONS
- description: Arguments passed to the `java` application.
name: JAVA_ARGS
- description: A main class to use as argument for `java`. When this environment variable
is given, all jar files in **JAVA_APP_DIR** are added to the classpath as well
as **JAVA_LIB_DIR**.
name: JAVA_MAIN_CLASS
- description: A jar file with an appropriate manifest so that it can be started with
`java -jar` if no **JAVA_MAIN_CLASS** is set. In all cases this jar file is added
to the classpath, too.
name: JAVA_APP_JAR
- description: Name to use for the process.
example: demo-app
name: JAVA_APP_NAME
- description: The classpath to use. If not given, the startup script checks for a
file `**JAVA_APP_DIR/classpath**` and use its content literally as classpath.
If this file doesn't exists all jars in the app dir are added (`classes:**JAVA_APP_DIR/***`).
name: JAVA_CLASSPATH
- description: If set remote debugging will be switched on. **Disabled by default.**
example: 'true'
name: JAVA_DEBUG
- description: Port used for remote debugging. Defaults to *5005*.
example: '8787'
name: JAVA_DEBUG_PORT
- description: The location of the https proxy. This takes precedence over **HTTPS_PROXY**,
**http_proxy**, and **HTTP_PROXY**, and will be used for both Maven builds and
Java runtime.
example: myuser:mypass@127.0.0.1:8080
name: https_proxy
- description: The location of the https proxy. This takes precedence over **http_proxy**
and **HTTP_PROXY**, and will be used for both Maven builds and Java runtime.
example: myuser@127.0.0.1:8080
name: HTTPS_PROXY
- description: The location of the http proxy. This takes precedence over **HTTP_PROXY**
and will be used for both Maven builds and Java runtime.
example: http://127.0.0.1:8080
name: http_proxy
- description: The location of the http proxy. This will be used for both Maven builds
and Java runtime.
example: 127.0.0.1:8080
name: HTTP_PROXY
- description: A comman separated lists of hosts, IP addresses or domains that can
be accessed directly. This takes precedence over **NO_PROXY** and will be used
for both Maven builds and Java runtime.
example: '*.example.com'
name: no_proxy
- description: A comman separated lists of hosts, IP addresses or domains that can
be accessed directly. This will be used for both Maven builds and Java runtime.
example: foo.example.com,bar.example.com
name: NO_PROXY
- name: JOLOKIA_VERSION
value: 1.5.0
- description: Determines if a random AB_JOLOKIA_PASSWORD be generated. Set to **true**
to generate random password. Generated value will be written to `/opt/jolokia/etc/jolokia.pw`.
name: AB_JOLOKIA_PASSWORD_RANDOM
value: 'true'
- description: Switch on client authentication for OpenShift TLS communication. The
value of this parameter can be a relative distinguished name which must be contained
in a presented client's certificate. Enabling this parameter will automatically
switch Jolokia into https communication mode. The default CA cert is set to `/var/run/secrets/kubernetes.io/serviceaccount/ca.crt`.
name: AB_JOLOKIA_AUTH_OPENSHIFT
value: 'true'
- description: Switch on secure communication with https. By default self signed server
certificates are generated if no `serverCert` configuration is given in **AB_JOLOKIA_OPTS**.
name: AB_JOLOKIA_HTTPS
value: 'true'
- description: If set disables activation of Joloka (i.e. echos an empty value). By
default, Jolokia is enabled.
example: 'true'
name: AB_JOLOKIA_OFF
- description: If set uses this file (including path) as Jolokia JVM agent properties
(as described in Jolokia's link:https://www.jolokia.org/reference/html/agents.html#agents-jvm[reference
manual]). If not set, the `/opt/jolokia/etc/jolokia.properties` will be created
using the settings as defined in the manual. Otherwise the rest of the settings
in this document are ignored.
example: /opt/jolokia/custom.properties
name: AB_JOLOKIA_CONFIG
- description: Host address to bind to. Defaults to **0.0.0.0**.
example: 127.0.0.1
name: AB_JOLOKIA_HOST
- description: Port to listen to. Defaults to **8778**.
example: '5432'
name: AB_JOLOKIA_PORT
- description: User for basic authentication. Defaults to **jolokia**.
example: myusername
name: AB_JOLOKIA_USER
- description: Password for basic authentication. By default authentication is switched
off.
example: mypassword
name: AB_JOLOKIA_PASSWORD
- description: Agent ID to use (`$HOSTNAME` by default, which is the container id).
example: openjdk-app-1-xqlsj
name: AB_JOLOKIA_ID
- description: Enable Jolokia discovery. Defaults to **false**.
example: 'true'
name: AB_JOLOKIA_DISCOVERY_ENABLED
- description: Additional options to be appended to the agent configuration. They
should be given in the format `key=value,key=value,...`.
example: backlog=20
name: AB_JOLOKIA_OPTS
- description: The url of the Hawkular REST service to which the Hawkular agent will
emit metrics. This must be set to configure the Hawkular agent.
example: http://myhawkularservice.example.com/hawkular
name: AB_HAWKULAR_REST_URL
- description: The username used for basic authentication with the Hawkular REST service.
example: hawkW1nd
name: AB_HAWKULAR_REST_USER
- description: The password used for basic authentication with the Hawkular REST service.
example: QSandC
name: AB_HAWKULAR_REST_PASSWORD
- description: The feed-id for this agent. Must be globally unique to the Hawkular
REST service.
example: autogenerate
name: AB_HAWKULAR_REST_FEED_ID
- description: The tenant-id for this agent.
example: hawkular
name: AB_HAWKULAR_REST_TENANT_ID
- description: The name of the keystore JKS file used to verify the identity of the
Hawkular REST service when using https.
example: keystore.jks
name: AB_HAWKULAR_REST_KEYSTORE
- description: The location of the keystore JKS file used to verify the identity of
the Hawkular REST service when using https.
example: /etc/hawkular-agent-volume
name: AB_HAWKULAR_REST_KEYSTORE_DIR
- description: The password for the keystore JKS file used to verify the identity
of the Hawkular REST service when using https.
example: tru5tM3
name: AB_HAWKULAR_REST_KEYSTORE_PASSWORD
- description: The type of the keystore file used to verify the identity of the Hawkular
REST service when using https. Defaults to the JVM default, jks.
example: jks
name: AB_HAWKULAR_REST_KEYSTORE_TYPE
- description: The key manager algorithm to use when verifying the identity of the
Hawkular REST service. Defaults to the JVM default.
example: X509
name: AB_HAWKULAR_REST_KEY_MANAGER_ALGORITHM
- description: The trust manager algorithm to use when verifying the identity of the
Hawkular REST service. Defaults to the JVM default.
example: X509
name: AB_HAWKULAR_REST_TRUST_MANAGER_ALGORITHM
- description: The SSL protocol to use when verifying the identity of the Hawkular
REST service. Defaults to TLSv1.
example: TLSv1
name: AB_HAWKULAR_REST_SSL_PROTOCOL
- description: Additional options to add to the -javaagent parameter, e.g. delay=10.
name: AB_HAWKULAR_AGENT_OPTS
- description: The location of the Hawkular agent configuration file, in yaml. Defaults
to /opt/hawkular/etc/hawkular-javaagent-config.yaml.
example: /opt/eap/standalone/configuration/hawkular-javaagent-config.yaml
name: AB_HAWKULAR_AGENT_CONFIG
- 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_MAX_INITIAL_MEM
- 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_CORE_LIMIT
- description: Set this to get some diagnostics information to standard output when
things are happening. **Disabled by default.**
example: 'true'
name: JAVA_DIAGNOSTICS
- 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_MAX_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_INITIAL_MEM_RATIO
- description: Server startup options.
example: -Dfoo=bar
name: JAVA_OPTS_APPEND
- description: Minimum percentage of heap free after GC to avoid expansion.
example: '20'
name: GC_MIN_HEAP_FREE_RATIO
- description: Maximum percentage of heap free after GC to avoid shrinking.
example: '40'
name: GC_MAX_HEAP_FREE_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_TIME_RATIO
- description: The weighting given to the current GC time versus previous GC times.
example: '90'
name: GC_ADAPTIVE_SIZE_POLICY_WEIGHT
- description: The maximum metaspace size.
example: '100'
name: GC_MAX_METASPACE_SIZE
- name: MAVEN_VERSION
value: '3.5'
- description: Arguments to use when calling Maven, replacing the default `package
hawt-app:build -DskipTests -e`. Please be sure to run the `hawt-app:build` goal
(when not already bound to the `package` execution phase), otherwise the startup
scripts won't work.
example: -e -Popenshift -DskipTests -Dcom.redhat.xpaas.repo.redhatga package
name: MAVEN_ARGS
- description: Additional Maven arguments.
example: -X -am -pl
name: MAVEN_ARGS_APPEND
- description: Path to `target/` where the jar files are created for Maven multi module
builds. These are added to **$MAVEN_ARGS**.
example: plugins/
name: ARTIFACT_DIR
- description: Arguments to use when copying artifacts from the output directory to
the application directory. Useful to specify which artifacts will be part of the
image. It defaults to `-r hawt-app/*` when a `hawt-app` directory is found on
the build directory, otherwise jar files only will be included (`*.jar`).
example: -r hawt-app/*
name: ARTIFACT_COPY_ARGS
- description: If set then the Maven repository is removed after the artifact is built.
This is useful for keeping the created application image small, but prevents *incremental*
builds. Defaults to *false*.
name: MAVEN_CLEAR_REPO
- description: The base URL of a mirror used for retrieving artifacts.
example: http://10.0.0.1:8080/repository/internal/
name: MAVEN_MIRROR_URL
- description: 'If set, multi-repo support is enabled, and other MAVEN_REPO_* variables
will be prefixed. For example: DEV_ONE_MAVEN_REPO_URL and QE_TWO_MAVEN_REPO_URL'
example: dev-one,qe-two
name: MAVEN_REPOS
- description: Maven repository url (fully defined)
example: http://repo.example.com:8080/maven2/
name: MAVEN_REPO_URL
- description: Maven repository service to lookup if MAVEN_REPO_URL not specified
example: buscentr-myapp
name: MAVEN_REPO_SERVICE
- description: Maven repository protocol (if not using fully defined url; will fallback
to service)
example: http
name: MAVEN_REPO_PROTOCOL
- description: Maven repository host (if not using fully defined url; will fallback
to service)
example: repo.example.com
name: MAVEN_REPO_HOST
- description: Maven repository port (if not using fully defined url; will fallback
to service)
example: '8080'
name: MAVEN_REPO_PORT
- description: Maven repository path (if not using fully defined url; will fallback
to service)
example: /maven2/
name: MAVEN_REPO_PATH
- description: Maven repository id
example: my-repo
name: MAVEN_REPO_ID
- description: Maven repository username
example: mavenUser
name: MAVEN_REPO_USERNAME
- description: Maven repository password
example: maven1!
name: MAVEN_REPO_PASSWORD
- description: Maven repository private key
example: ${user.home}/.ssh/id_dsa
name: MAVEN_REPO_PRIVATE_KEY
- description: Maven repository passphrase
example: maven1!
name: MAVEN_REPO_PASSPHRASE
- description: Maven repository layout
example: default
name: MAVEN_REPO_LAYOUT
- description: Maven repository releases enabled
example: 'true'
name: MAVEN_REPO_RELEASES_ENABLED
- description: Maven repository releases update policy
example: always
name: MAVEN_REPO_RELEASES_UPDATE_POLICY
- description: Maven repository snapshots enabled
example: 'true'
name: MAVEN_REPO_SNAPSHOTS_ENABLED
- description: Maven repository snapshots update policy
example: always
name: MAVEN_REPO_SNAPSHOTS_UPDATE_POLICY
execute:
- directory: s2i-common
module_name: s2i-common
name: s2i-common/install.sh
script: install.sh
user: root
- directory: os-java-misc
module_name: os-java-misc
name: os-java-misc/install_as_root
script: install_as_root
user: root
- directory: os-java-s2i
module_name: os-java-s2i
name: os-java-s2i/install_as_root
script: install_as_root
user: root
- directory: os-java-jolokia
module_name: os-java-jolokia
name: os-java-jolokia/install_as_root
script: install_as_root
user: root
- directory: os-java-hawkular
module_name: os-java-hawkular
name: os-java-hawkular/install_as_root
script: install_as_root
user: root
- directory: os-java-run
module_name: os-java-run
name: os-java-run/install_as_root
script: install_as_root
user: root
- directory: openshift-passwd
module_name: openshift-passwd
name: openshift-passwd/configure_passwd.sh
script: configure_passwd.sh
user: root
- directory: jboss-maven
module_name: jboss-maven
name: jboss-maven/configure.sh
script: configure.sh
user: root
- directory: Image
module_name: Image
name: noop
user: root
from: jboss/openjdk18-rhel7:1.1
labels:
- name: com.redhat.component
value: redhat-openjdk-18-openjdk18-openshift-container
- name: io.openshift.s2i.scripts-url
value: image:///usr/local/s2i
- name: io.k8s.description
value: Platform for building and running plain Java applications (fat-jar and flat
classpath)
- name: io.k8s.display-name
value: Java Applications
- name: io.openshift.tags
value: builder,java
- name: io.openshift.s2i.destination
value: /tmp
- name: org.jboss.deployments-dir
value: /deployments
- name: org.concrt.version
value: 2.1.dev0
- name: io.cekit.version
value: 2.1.dev0
- name: description
value: Source To Image (S2I) image for Red Hat OpenShift providing OpenJDK 1.8
- name: summary
value: Source To Image (S2I) image for Red Hat OpenShift providing OpenJDK 1.8
- name: io.fabric8.s2i.version.jolokia
value: 1.5.0-redhat-1
- name: io.fabric8.s2i.version.maven
value: '3.5'
modules:
install:
- name: s2i-common
- name: os-java-misc
- name: os-java-s2i
- name: os-java-jolokia
- name: os-java-hawkular
- name: os-java-run
- name: openshift-passwd
- name: jboss-maven
repositories:
- git:
ref: master
url: https://github.com/jboss-openshift/cct_module.git
name: cct_module.git
name: redhat-openjdk-18/openjdk18-openshift
osbs:
repository:
branch: jb-openjdk-1.8-openshift-rhel-7
name: containers/redhat-openjdk-18
packages:
install:
- rh-maven35
repositories:
- &id001
filename: jboss-rhscl.repo
name: jboss-rhscl
present: true
url:
repository: http://git.app.eng.bos.redhat.com/git/jboss-container-tools.git/plain/repos/jboss-rhel-rhscl.repo
repositories_injected:
- *id001
ports:
- name: 8080
value: 8080
- name: 8443
value: 8443
- name: 8778
value: 8778
run:
cmd:
- /usr/local/s2i/run
name: run
user: 185
schema_version: 1
version: '1.5'
volumes: []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment