sahara-image-elements/elements/oracle-java
Pino Toscano 2fb2422da8 Make almost all the element scripts as e/u/pipefail
Following the latest dib-lint reporting, make sure almost all the
scripts are enabling -e, -u, and pipefail.  This eases the discovery of
failing commands, and the usage of unset variables.

There are few exceptions with flags not set:

* elements/hadoop-hdp/install.d/40-install-hdp, set -e
  when installing HDP 2.0, it tries to install tez, which does not seem
  to exist in Hortonworks' repositories

* elements/ssh/install.d/33-ssh, set -e
  the version of augtool (part of augeas 0.10) in older Ubuntu versions
  (like Precise, needed by the cloudera plugin) exits with wrong return
  values in autosave mode

* elements/storm/install.d/60-storm, set -e
  It tries to change the permission of /etc/supervisord.conf, which does
  not seem to exist

Change-Id: Ic1314639dfc6a66c48ca87b6820707a2b0cb1dbd
Partial-Bug: #1435306
2015-04-07 12:46:39 +02:00
..
environment.d Simplify environment.d scripts 2015-04-01 15:44:38 +02:00
install.d Make almost all the element scripts as e/u/pipefail 2015-04-07 12:46:39 +02:00
element-deps Migrate to openjdk - part 2 2015-03-28 21:42:54 +03:00
README.rst Add/fix headers in README.rst files 2015-04-02 18:15:30 +02:00

oracle-java

This element installs a Java Virtual Machine into the image. There are three options for selecting what version of the JVM is installed -

0. Provide no input, the package manager in your image will be used to install the natively packaged JVM

1. Provide JAVA_FILE via the environment, it should be a .tar.gz or .bin and will be installed under JAVA_TARGET_LOCATION, which will default to "/usr/java" (see 3. for more information on JAVA_TARGET_LOCATION).

2. Provide JAVA_DOWNLOAD_URL via the environment, it should be a url pointing to a file that will be placed in JAVA_FILE (see 1.)

3. In addition to selecting the JDK to install, this element can be configured to install to a specific location. Set the JAVA_TARGET_LOCATION variable in order to customize the top-level directory that will contain the JDK install. By default, this variable is set to "/usr/java".