{
  "links": {
    "self": "http://che-che.192.168.64.40.nip.io/api/workspace/workspace1ioy0lx0zg7j0jio",
    "ide": "http://che-che.192.168.64.40.nip.io/che/inner-loop-buildah"
  },
  "attributes": {
    "created": "1545089353884"
  },
  "namespace": "che",
  "temporary": false,
  "id": "workspace1ioy0lx0zg7j0jio",
  "status": "STOPPED",
  "config": {
    "defaultEnv": "default",
    "environments": {
      "default": {
        "machines": {
          "ws/dev": {
            "attributes": {
              "memoryLimitBytes": "536870912"
            },
            "servers": {},
            "volumes": {
              "projects": {
                "path": "/projects"
              }
            },
            "installers": [],
            "env": {
              "": ""
            }
          }
        },
        "recipe": {
          "type": "kubernetes",
          "content": "kind: List\nitems:\n - \n  apiVersion: v1\n  kind: Pod\n  metadata:\n   name: ws\n  spec:\n   containers:\n    - \n     image: mariolet/che-plugin-dev-tooling:jug\n     name: dev\n     resources:\n      limits:\n       memory: 512Mi\n",
          "contentType": "application/x-yaml"
        }
      }
    },
    "projects": [
      {
        "links": [],
        "name": "spring-petclinic",
        "attributes": {},
        "source": {
          "location": "https://github.com/sleshchenko/spring-petclinic.git",
          "type": "git",
          "parameters": {}
        },
        "path": "/spring-petclinic",
        "description": "",
        "mixins": [],
        "problems": []
      }
    ],
    "name": "inner-loop-buildah",
    "attributes": {
      "editor": "eclipse/che-theia/1.0.0",
      "sidecar.eclipse/che-theia.memory_limit": "512Mi",
      "plugins": "eclipse/che-machine-exec-plugin/0.0.1"
    },
    "commands": [
      {
        "commandLine": "cd /projects/spring-petclinic && kubectl apply -f app4jug.yaml",
        "name": "Run Kube App",
        "attributes": {
          "machineName": "ws/dev",
          "goal": "Run"
        },
        "type": "che"
      },
      {
        "commandLine": "cd /projects/spring-petclinic && ./mvnw package",
        "name": "Build Java",
        "attributes": {
          "machineName": "ws/dev",
          "goal": "Build"
        },
        "type": "che"
      },
      {
        "commandLine": "cd /projects/spring-petclinic && buildah bud -t petclinic .",
        "name": "Build Container Image",
        "attributes": {
          "machineName": "ws/dev",
          "goal": "Build"
        },
        "type": "che"
      },
      {
        "commandLine": "cd /projects/spring-petclinic && buildah push --tls-verify=false petclinic docker://$(kubectl get services -n kube-system -o jsonpath={.spec.clusterIP} registry)/mariolet/petclinic:latest",
        "name": "Push Container Image",
        "attributes": {
          "machineName": "ws/dev",
          "goal": "Build"
        },
        "type": "che"
      },
      {
        "commandLine": "echo ${CHE_OSO_CLUSTER//api/console}",
        "name": "Get OpenShift Console URL",
        "attributes": {},
        "type": "custom"
      }
    ],
    "links": []
  }
}
