Versions Compared

Key

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

...

In the JS7 - Deployment process a Deployment Descriptor specifies

  • which JS7 components products of JOC Cockpit, Controller instances and Agents should be installed,
  • where to install each JS7 componentproduct,
  • which installation options to use, for example the installation directory,
  • which configuration options to use, for example port usage.

...

The JS7 - Deployment Packaging makes use of the Deployment Descriptor to install and to package JS7 componentsproducts.

Deployment Descriptor

Deployment Descriptors are specified from .json files.

  • Users are strongly encouraged to validate their .json files against the Deployment Descriptor Schema: , see JS7 _- Deployment _Descriptor_v1.0.jsonDescriptor JSON Schema.
  • The basic structure includes to specify an array of Agent JOC Cockpit objects.

Deployment Descriptor JSON Schema for JOC Cockpit

...

...

Examples

Standalone JOC Cockpit using HTTP Connections

...

  • Host centostest-primary operates the JOC Cockpit instance.
  • JOC Cockpit makes use of HTTP connections.

Download example: standalone-joc-http-202212042022-12-04.descriptor.json


Code Block
titleExample for Deployment Descriptor
linenumberstrue
collapsetrue
{
    "descriptor": {
        "descriptorId": "standalone-joc-http-202212042022-12-04",
        "title": "Install or update Standalone JOC Cockpit Standalone instance using HTTP connections",
        "account": "sossosap",
        "scheduled": "2022-12-02T0602T05:19:12.000+0100:00",
        "created": "2022-11-30T2330T22:19:12.000+0100:00"
    },
    "agentsjoc": [],
    {
  "controllers": [],
    "jocmembers": [{
        {
    "clusterId": "joc",
        "joc_001instances": {[
          {
      "primary": {
     "instanceId": 1,
              "target": {
              "packageLocation": "/tmp",
          "connection    "execPre": {"StopService",
              "execPost": "StartService",
              "hostmakeService": "centostest-primary"true,
              "connection": {
                "porthost": 22"centostest-primary",
                "port": 22
       },
          },
              "authentication": {
                            "method": "publickey",
                            "user": "sos",
                            "keyFile": "/home/sos/.ssh/sos_rsa"
              }
            },
            "media": {
              "packageLocationrelease": "/tmp2.5.3",
                        "execPre"tarball": "StopService",2.5.3/js7_joc_linux.2.5.3.tar.gz"
            },
            "execPostinstallation": "StartService",{
                 "setupDir": "/tmp/sos-berlin.com/js7/joc-standalone.setup",
       "makeService": true
                    }"isUser": true,
                    "media"isPreserveEnv": {true,
              "home": "/opt/sos-berlin.com/js7/joc-standalone",
              "releasedata": "2.5.0/var/sos-berlin.com/js7/joc-standalone",
              "httpPort": "11446",
              "tarballdbmsConfig": "joc/mnttemplates/releasesdbms/scheduler_setups/2.5.0/js7_joc_linux.2.5.0.tar.gz"
                    },
                    "installation": {
                        "setupDir": "/home/sos/js7.target/opt/joc-primary.setup",
                        "home": "/home/sos/js7.target/opt/joc-primary",
                        "data": "/home/sos/js7.target/var/joc-primary",
                        "httpPort": "11446",
                        "isUser": true,
                        "isPreserveEnv": true,
                        "javaOptions": "-Xmx512m -Djava.security.egd=file:///dev/urandom"h2/response/hibernate.cfg.xml",
                    }"dbmsDriver": "joc/templates/dbms/h2/response/h2-1.4.200.jar",
                    "configuration": {"javaHome": "/opt/java/jdk-11.0.2+9",
                        "responseDir"javaOptions": "joc/instances/joc_001.primary/response",-Xmx256m -Djava.security.egd=file:///dev/urandom"
            },
            "templatesconfiguration": [
 {
              "templates": [
                "joc/templates/http/resources"
                        ]
                    }
            }
    }
      ]
      }
        }
    ]
} 

Standalone JOC Cockpit using HTTPS Connections

...

  • Host centostest-primary operates the JOC Cockpit instance.
  • JOC Cockpit makes use of HTTPS connections.

Download example: standalone-joc-https-202212042022-12-04.descriptor.json


Code Block
titleExample for Deployment Descriptor
linenumberstrue
collapsetrue
{
    "descriptor": {
        "descriptorId": "standalone-joc-https-2022-12-2022120404",
        "title": "Install or update Standalone JOC Cockpit Standalone instance using HTTPS connections",
        "account": "sossosap",
        "scheduled": "2022-12-02T0602T05:19:12.000+0100:00",
        "created": "2022-11-30T2330T22:19:12.000+01:00"
    },
    "agents": [],
    "controllers": []00:00"
  },
    "joc": [
        {
            "joc_001members": {
                "primary": {
            "clusterId": "joc",
        "targetinstances": {[
          {
              "connectioninstanceId": {1,
              "target": {
              "hostconnection": "centostest-primary",
  {
                          "port"host": 22
   "centostest-primary",
                "port": 22
    },
          },
              "authentication": {
                            "method": "publickey",
                            "user": "sos",
                            "keyFile": "/home/sos/.ssh/sos_rsa"
                        },
                        "packageLocation": "/tmp",
                        "execPre": "StopService",
                        "execPost": "StartService",
                        "makeService": true
                    },
          },
            "media": {
                        "release": "2.5.03",
                        "tarball": "/mnt/releases/scheduler_setups//2.5.03/js7_joc_linux.2.5.03.tar.gz"
                    },
        },
            "installation": {
                        "setupDir": "/hometmp/sos-berlin.com/js7.target/opt/joc-primarystandalone.setup",
                   "isUser": true,
     "home": "/home/sos/js7.target/opt/joc-primary",
         "isPreserveEnv": true,
              "datahome": "/homeopt/sos-berlin.com/js7.target/var/joc-primarystandalone",
                        "httpsPortdata": "11443/var/sos-berlin.com/js7/joc-standalone",
                        "isUserhttpPort": true"localhost:11446",
              "httpsPort": "centostest-primary.sos:11443",
              "isPreserveEnvdbmsConfig": true,
          "joc/templates/dbms/h2/response/hibernate.cfg.xml",
              "javaOptionsdbmsDriver": "-Xmx512m -Djava.security.egd=file:///dev/urandom"joc/templates/dbms/h2/response/h2-1.4.200.jar",
                    },
      "javaHome": "/opt/java/jdk-11.0.2+9",
              "configurationjavaOptions": {"-Xmx256m -Djava.security.egd=file:///dev/urandom"
            },
            "responseDirconfiguration": "joc/instances/joc_001.primary/response",
           {
              "certificates": {
                "cert": "joc/instances/joc.standalone/resources/centostest-primary.crt",
                "keyStore": "joc/instances/joc_001.primarystandalone/resources/https-keystore.p12",
                            "keyStorePassword": "jobscheduler",
                            "keyPassword": "jobscheduler",
                "keyAlias": "centostest-primary",
                "trustStore": "joc/instances/joc_001.primarystandalone/resources/https-truststore.p12",
                "trustStorePassword": "jobscheduler"
              },
              "trustStorePasswordtemplates": "jobscheduler"
   [
                "joc/templates/https/resources"
     },
          ],
              "templatesstartFiles": [{
                "httpIni": "joc/templates/https/start.d/http.ini",
                "httpsIni": "joc/templates/https/resources"start.d/https.ini",
                "sslIni": "joc/templates/https/start.d/ssl.ini"
       ]
       }
             }
          }
      }
  ]
      }
    }
        }],
    ]"version": "1.5.3"
}

Resources

...