Skip to content

using the docker image docker.io/lbroudoux/stacks-java:1.0.0.Beta2 allows to start eap locally  #122

@dwojciec

Description

@dwojciec

For the Eclipse Che when we are creating the Workspace by replacing the docker-image

        "type": "dockerimage",
        "content": "eclipse/ubuntu_jdk8"

by

        "type": "dockerimage",
        "content": "docker.io/lbroudoux/stacks-java:1.0.0.Beta2"

see this link : https://developers.redhat.com/blog/2019/01/21/codeready-workspaces-streamline-jboss-eap-development/ and https://github.com/lbroudoux/codeready-workspaces/blob/master/stacks-java/factory.json
we can start-eap in the eclipse che and we can demonstrate the POWER of the route exposed and the fact without to commit to the gogs repository we can test "locally"(through CHE) the code.
After changing the dockerimage you can add additionnal commandline like

 [
    {
      "commandLine": "export JAVA_OPTS= && export JAVA_OPTS_APPEND=-Dsun.util.logging.disableCallerCheck=true &&    /opt/eap/bin/standalone.sh -b 0.0.0.0",
      "name": "start-eap",
      "attributes": {
        "goal": "Run",
        "previewUrl": ""
      },
      "type": "custom"
    },
    {
      "commandLine": "cp /projects/openshift-tasks/target/openshift-tasks.war /opt/eap/standalone/deployments/ROOT.war",
      "name": "copy-war",
      "attributes": {
        "goal": "Deploy",
        "previewUrl": ""
      },
      "type": "custom"
    },
    {
      "commandLine": "export JAVA_OPTS= && export JAVA_OPTS_APPEND=-Dsun.util.logging.disableCallerCheck=true && /opt/eap/bin/standalone.sh -b 0.0.0.0 --debug 8000",
      "name": "start-eap-debug",
      "attributes": {
        "goal": "Debug",
        "previewUrl": ""
      },
      "type": "custom"
    },
    {
      "commandLine": "mvn clean install -f ${current.project.path}/pom.xml",
      "name": "build",
      "attributes": {
        "goal": "Build",
        "previewUrl": ""
      },
      "type": "mvn"
    }
  ]

the sequence is BUILD, COPY WAR, START-EAP and use the route mentionned into the Servers Tab.
By including this part we can demonstrate the work done by developer without to commit each time and to push to git his code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions