Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following examples represent typical use cases. Users should consider to specify current releases, see JS7 - Download.

Install or Update from Download using individual Database

Code Block
titleExample for use of JOC Cockpit Installer Script
linenumberstrue
./js7_install_joc.sh \
    --setup-dirhome=/home/sos/joc.setup" \
    --release=2.5.2 \
    --http-port=4446 \
    --responsedbms-dirconfig=/home/sos/joc.response-deployment/hibernate.cfg.xml \
    --java-release=2.3.1home="/opt/java/jdk-11.0.2+9" \
    --as-user \
    --make-dirs

# downloadsinstalls the JOC Cockpit releasefor indicatedthe andcurrent extractsuser theaccount
# installerrequires tarball tothat the specified user creates a hibernate.cfg.xml file for database access prior to installation
# specifies the Java home location
# downloads the JOC Cockpit setup directory release tarball from the SOS Web Site
# creates the setuphome directory is created if it does not exist
# andextracts the joc_install.xml file used fromtarball and runs the indicatedJOC response directoryCockpit's installer

Note:

Install or Update from Download

...

using embedded Database

Code Block
titleExample for use of JOC Cockpit Installer Script
linenumberstrue
curl 'https://repo1.maven.org/maven2/com/h2database/h2/1.4.200/h2-1.4.200.jar' -o /tmp/h2-1.4.200.jar

./js7_install_joc.sh \
    --setup-dirhome=/home/sos/joc.setup" \
    --response-dir=/home/sos/joc.responserelease=2.5.2 \
     --http-release=2.3.1port=4446 \
    --licensedbms-keydriver=/home/sos/example.pemtmp/h2-1.4.200.jar \
    --make-dirs

# downloads the JOC Cockpit release indicated and extracts the installer tarball to the specified JOC Cockpit setup directory 
# the setup directory is created if it does not exist and the joc_install.xml file used from the indicated response directory 
# installs the license key file and downloads the binary file for licensed code to enable cluster operations

...

dbms-config=H2 \
    --java-home="/opt/java/jdk-11.0.2+9" \ 
    --as-user \
    --make-dirs

# downloads the H2 embedded database from Maven Central using curl
# downloads the JOC Cockpit release tarball from the SOS Web Site
# specifies the Java home location
# creates the home directory if it does not exist
# extracts the tarball and runs the JOC Cockpit's installer

Install or Update from Download with Commercial License

Code Block
titleExample for use of JOC Cockpit Installer Script
linenumberstrue
./js7_install_joc.sh \
    --setup-dirhome=/home/sos/joc.setup \
    --response-dir=/home/sos/joc.response \
    --tarball=/mnt/releases/js7/js7_joc_linux.2.3.1.tar.gz

joc" \
    --release=2.5.2 \
    --http-port=4446 \
    --license-key=/home/sos/example.pem \
    --dbms-config=/home/sos/joc-deployment/hibernate.cfg.xml \
    --java-home="/opt/java/jdk-11.0.2+9" \
    --as-user \
    --make-dirs

# installs JOC Cockpit for the current user account
# requires that the user creates a hibernate.cfg.xml file for database access prior to installation
# specifies the location of the JS7 license key
# specifies the Java home location
# downloads the JOC Cockpit release tarball from the SOS Web Site
# creates the home directory if it does not exist
# extracts the tarball and runs the JOC Cockpit's installer

Install or Update from Tarball

Code Block
titleExample for use of JOC Cockpit Installer Script
linenumberstrue
curl 'https://download.sos-berlin.com/JobScheduler.2.5/js7_joc_linux.2.5.2.tar.gz' -o /tmp/js7_job_linux.2.5.2.tar.gz

./js7_install_joc.sh \
    --home=/home/sos/joc" \
    --tarball=/tmp/js7_joc_linux.2.5.2.tar.gz \
    --http-port=4446 \
    --dbms-config=/home/sos/joc-deployment/hibernate.cfg.xml \
    --java-home="/opt/java/jdk-11.0.2+9" \
    --as-user \
    --make-dirs

# downloads the release tarball from the SOS Web Site using curl
# creates the home directory if it does not exist
# extracts the tarball indicatedand toruns the specified JOC Cockpit's setup directoryinstaller

Install or Update from Tarball with Commercial License

...

Code Block
titleExample for use of JOC Cockpit Installer Script
linenumberstrue
retval=/tmp/js7_install_joc.$$.tmp

./js7_install_joc.sh \
    --setup-dir=/home/sos/joc.setup \
    --response-dir=/home/sos/joc.response \
    --tarball=/mnt/releases/js7/js7_joc_linux.2.3.1.tar.gz \
    --backup-dir=/tmp/backups \
    --log-dir=/tmp/logs \
    --return-values=$retval \
    --restart \
    --show-logs \
    --make-dirs \
 || ( backup=$(cat $retval | grep "backup_file" | cut -d'=' -f2) \
      && ( test -e "$backup" ) && \
      ./js7_install_joc.sh \
          --setup-dir=/home/sos/joc.setup \
          --response-dir=/home/sos/joc.response \
          --tarball=$backup \
          --log-dir=/tmp/logs \
          --restart \
          --show-logs )

log_file=$(cat $retval | grep "log_file" | cut -d'=' -f2)
backup_file=$(cat $retval | grep "backup_file" | cut -d'=' -f2)

# extracts the tarball indicated to the specified JOC Cockpit setup directory, creates a backup file and a log file and restarts JOC Cockpit
# should installation fail then the installation from the backup file will be reverted to

...

Code Block
titleExample for use of JOC Cockpit Installer Script
linenumberstrue
./js7_install_joc.shjoc.sh \
    --home=/home/sos/joc \
    --release=2.2.3 \
    --home=/home/sos/jocpatch=JS-1984 \
    --exec-release=2.3.1start="StartService" \
    --exec-patch=low.patch-1stop="StopService"

# downloads the patch indicated andtarball from the SOS Web Site
# extracts the tarball to the specified JOC Cockpit's data directory assuming that this corresponds to the home directory
# stores the patch isfiles storedto in the JOC Cockpit's jetty_base<data>/webapps/joc/WEB-INF/classes sub-directoryINF/classes sub-directory
# stops and starts the JOC Cockpit's systemd service

Patch from Tarball

Code Block
titleExample for use of JOC Cockpit Installer Script
linenumberstrue
curl 'https://download.sos-berlin.com/JobScheduler.2.2/js7_joc_linux.2.2.3.JS-1984.tar.gz' -o /tmp/js7_joc_linux.2.2.3.JS-1984.tar.gz
 
./js7_install_joc.sh \
    --home=/home/sos/joc \
    --tarball=/mnt/releasestmp/js7/js7_joc_linux.2.2.3.1JS-1984.low.patch-1.tar.gztar.gz \
    --patch=JS-1984 \
    --exec-patch=low.patch-1start="StartService" \
    --exec-stop="StopService"

# extractsdownloads the patch tarball indicated from the SOS Web Site using curl
# extracts the tarball to the specified JOC Cockpit's data directory assuming that this corresponds to the home directory
# stores the patch isfiles stored to the JOC Cockpit's jetty_base<data>/webapps/joc/WEB-INF/classes sub-directory
# stops and starts the JOC Cockpit's systemd service

Anchor
replacements
replacements
Replacements

...