Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dwojciec opened this issue Feb 12, 2019 · 0 comments

Comments

@dwojciec
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant