Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-21557

Server Adapter wizard: Should use deployments-dir as specified (in a label) in the image

    XMLWordPrintable

Details

    Description

      The server adapter is currently using a hard-coded deployments dir /op/app-root/src that the user can manually edit in the wizard though.
      The images now specify the deployments-dir in a label (see CLOUD-243)

      com.redhat.deployments-dir
      

      We should use this instead of the hard-coded one.

      Latest docker image eap64-openshift (1.2) features the beforementioned label
      ("Labels":

      { ... "com.redhat.deployments-dir": "/opt/eap/standalone/deployments", ... }

      )

      -bash-4.2$ docker inspect registry.access.redhat.com/jboss-eap-6/eap64-openshift:1.2
      [
      {
          "Id": "cd9c11961578733a25875fb51fc94d71135cc52eb270cd58213fe99000b2ce9e",
          "Parent": "a805aea5fb4758b2977ab4fb191f074b41d9bf751b35e0aa0e45e7d70e111134",
          "Comment": "",
          "Created": "2015-12-10T18:32:11.797022Z",
          "Container": "",
          "ContainerConfig": {
              "Hostname": "",
              "Domainname": "",
              "User": "",
              "AttachStdin": false,
              "AttachStdout": false,
              "AttachStderr": false,
              "ExposedPorts": null,
              "PublishService": "",
              "Tty": false,
              "OpenStdin": false,
              "StdinOnce": false,
              "Env": null,
              "Cmd": null,
              "Image": "",
              "Volumes": null,
              "VolumeDriver": "",
              "WorkingDir": "",
              "Entrypoint": null,
              "NetworkDisabled": false,
              "MacAddress": "",
              "OnBuild": null,
              "Labels": null
          },
          "DockerVersion": "1.7.1",
          "Author": "",
          "Config": {
              "Hostname": "",
              "Domainname": "",
              "User": "185",
              "AttachStdin": false,
              "AttachStdout": false,
              "AttachStderr": false,
              "ExposedPorts": {
                  "8080/tcp": {},
                  "8443/tcp": {},
                  "8778/tcp": {}
              },
              "PublishService": "",
              "Tty": false,
              "OpenStdin": false,
              "StdinOnce": false,
              "Env": [
                  "container=docker",
                  "PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin",
                  "JBOSS_IMAGE_NAME=jboss-eap-6/eap64-openshift",
                  "JBOSS_IMAGE_VERSION=1.2",
                  "JBOSS_IMAGE_RELEASE=14",
                  "HOME=/home/jboss",
                  "JAVA_TOOL_OPTIONS=-Duser.home=/home/jboss -Duser.name=jboss",
                  "JAVA_HOME=/usr/lib/jvm/java-1.8.0",
                  "JAVA_VENDOR=openjdk",
                  "JAVA_VERSION=1.8.0",
                  "LAUNCH_JBOSS_IN_BACKGROUND=true",
                  "JBOSS_PRODUCT=eap",
                  "JBOSS_EAP_VERSION=6.4.4.GA",
                  "JBOSS_HOME=/opt/eap",
                  "STI_BUILDER=jee",
                  "JBOSS_MODULES_SYSTEM_PKGS=org.jboss.logmanager"
              ],
              "Cmd": [
                  "/opt/eap/bin/openshift-launch.sh"
              ],
              "Image": "a805aea5fb4758b2977ab4fb191f074b41d9bf751b35e0aa0e45e7d70e111134",
              "Volumes": {
                  "/run": {}
              },
              "VolumeDriver": "",
              "WorkingDir": "/home/jboss",
              "Entrypoint": null,
              "NetworkDisabled": false,
              "MacAddress": "",
              "OnBuild": [],
              "Labels": {
                  "Architecture": "x86_64",
                  "Authoritative_Registry": "registry.access.redhat.com",
                  "BZComponent": "jboss-eap-6-eap64-openshift-docker",
                  "Build_Host": "rcm-img-docker01.build.eng.bos.redhat.com",
                  "Name": "jboss-eap-6/eap64-openshift",
                  "Release": "14",
                  "Vendor": "Red Hat, Inc.",
                  "Version": "1.2",
                  "architecture": "x86_64",
                  "build-date": "2015-12-10T18:15:59.014349Z",
                  "com.redhat.deployments-dir": "/opt/eap/standalone/deployments",
                  "com.redhat.dev-mode": "DEBUG:true",
                  "com.redhat.dev-mode.port": "DEBUG_PORT:8787",
                  "io.k8s.description": "Platform for building and running JavaEE applications on JBoss EAP 6.4",
                  "io.k8s.display-name": "JBoss EAP 6.4",
                  "io.openshift.expose-services": "8080:http",
                  "io.openshift.s2i.scripts-url": "image:///usr/local/s2i",
                  "io.openshift.tags": "builder,javaee,eap,eap6",
                  "org.jboss.deployments-dir": "/opt/eap/standalone/deployments",
                  "vcs-ref": "f0b51e70cc004d21458ca15b1f2087ba5a6af1f7",
                  "vcs-type": "git"
              }
          },
          "Architecture": "amd64",
          "Os": "linux",
          "Size": 511678587,
          "VirtualSize": 1206983884,
          "GraphDriver": {
              "Name": "devicemapper",
              "Data": {
                  "DeviceId": "43096",
                  "DeviceName": "docker-253:0-268481993-cd9c11961578733a25875fb51fc94d71135cc52eb270cd58213fe99000b2ce9e",
                  "DeviceSize": "10737418240"
              }
          }
      }
      ]
      

      Attachments

        Issue Links

          Activity

            People

              adietish@redhat.com André Dietisheim
              adietish@redhat.com André Dietisheim
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: