rhtconsulting / rhc-ose

OpenShift Automation and Utilities by Red Hat Consulting
42 stars 34 forks source link

Updates to CICD install to support JDK 8 and new 3.1 image #84

Closed sabre1041 closed 8 years ago

sabre1041 commented 8 years ago

What does this PR do?

Adds JDK 8 support and to align with OpenStack 3.1 image

How should this be manually tested?

Create a custom configuration file

## Platform Configs
#CONF_ENV_ID= # Default: random 8 character string
CONF_IMAGE_NAME=ose3_1-base # Default: ose3_0-base
CONF_OS_FLAVOR=m1.medium # Default: m1.medium
CONF_SECURITY_GROUP_MASTER=ose3-master # Default: ose3-master
CONF_SECURITY_GROUP_NODE=ose3-node # Default: ose3-node
#CONF_LOGFILE=~/openstack_provision.log # Default: ~/openstack_provision.log
## OpenShift Configs
CONF_OPENSHIFT_BASE_DOMAIN=ose.example.com # Default: ose.example.com
CONF_OPENSHIFT_CLOUDAPPS_SUBDOMAIN=apps # Default: apps
CONF_PROVISION_COMPONENTS=cicd # Comman separated list. Supported values are: openshift,cicd. Default: openshift
CONF_OPENSHIFT_IDENTITY_PROVIDER=htpasswd_auth # Default: htpasswd_auth
#CONF_OPENSHIFT_MASTER_FILES= # Example value: /path/to/source:/path/to/dest /path/to/source2:/path/to/dest2; Default is null
#CONF_OPENSHIFT_NODE_FILES= # Example value: /path/to/source:/path/to/dest /path/to/source2:/path/to/dest2; Default is null

Provision the CICD server

./osc-provision --config=<path_to_cfg_file> --key=<openstack_keyname>

Validate Maven and JDK Installed successfully

mvn -v

Should result in the following

Apache Maven 3.0.5 (Red Hat 3.0.5-16)
Maven home: /usr/share/maven
Java version: 1.8.0_65, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.8.0-oracle-1.8.0.65-1jpp.3.el7_1.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-327.el7.x86_64", arch: "amd64", family: "unix"

Is there a relevant Issue open for this?

83

Who would you like to review this?

/cc @JaredBurck

JaredBurck commented 8 years ago

Verified Maven and JDK installed successfully with the expected output from mvn -v matching output in PR. Jenkins was up and running with no perceived issues. After Nexus, failure to start (hiccup - restarted service), a second verification confirmed all was working and updated successfully.

JaredBurck commented 8 years ago

This PR has been verified and is now OK to be merged. Thanks!

/cc @etsauer @oybed

etsauer commented 8 years ago

Sounds good to me, thanks guys.