James Falkner
2020-03-12 92e5f31395261f0c0cd6dc7b1591b24b082b9095
commit | author | age
cabda0 1 {
JF 2   "apiVersion": "1.0.0",
3   "metadata": {
4     "name": "{{ user }}-workspace"
5   },
6   "components": [
7     {
8       "id": "redhat/java/latest",
9       "type": "chePlugin"
10     },
11     {
12       "mountSources": true,
92e5f3 13       "memoryLimit": "4Gi",
cabda0 14       "type": "dockerimage",
JF 15       "alias": "quarkus-tools",
16       "image": "image-registry.openshift-image-registry.svc:5000/openshift/quarkus-stack:1.5",
17       "env": [
18         {
19           "value": "/home/jboss/.m2",
20           "name": "MAVEN_CONFIG"
21         },
22         {
23           "value": "-Xmx4G -Xss128M -XX:MetaspaceSize=1G -XX:MaxMetaspaceSize=2G -XX:+CMSClassUnloadingEnabled",
24           "name": "MAVEN_OPTS"
25         }
26       ],
27       "endpoints": [
28         {
29           "name": "web-{{ user }}",
30           "port": 8080,
31           "attributes": {
32             "discoverable": "true",
33             "public": "true",
34             "protocol": "http"
35           }
36         },
37         {
38           "name": "debug-{{ user }}",
39           "port": 5005,
40           "attributes": {
41             "discoverable": "true",
42             "public": "true",
43             "protocol": "jdwp"
44           }
45         }
46       ]
47     }
48   ],
49   "commands": [
50     {
51       "name": "Build",
52       "actions": [
53         {
54           "type": "exec",
55           "component": "quarkus-tools",
56           "command": "mvn clean package -f ${current.project.path}",
57           "workdir": "${CHE_PROJECTS_ROOT}"
58         }
59       ]
60     },
61     {
62       "name": "Test",
63       "actions": [
64         {
65           "type": "exec",
66           "component": "quarkus-tools",
67           "command": "mvn verify -f ${current.project.path}",
68           "workdir": "${CHE_PROJECTS_ROOT}"
69         }
70       ]
71     },
72     {
73       "name": "Build and Run Locally",
74       "actions": [
75         {
76           "type": "exec",
77           "component": "quarkus-tools",
78           "command": "mvn clean compile quarkus:dev -f ${current.project.path}",
79           "workdir": "${CHE_PROJECTS_ROOT}"
80         }
81       ]
82     },
83     {
84       "name": "Build Native Quarkus App",
85       "actions": [
86         {
87           "type": "exec",
88           "component": "quarkus-tools",
89           "command": "mvn -f ${current.project.path} clean package -Pnative -DskipTests",
90           "workdir": "${CHE_PROJECTS_ROOT}"
91         }
92       ]
93     },
94     {
95       "name": "Package for OpenShift",
96       "actions": [
97         {
98           "type": "exec",
99           "component": "quarkus-tools",
100           "command": "mvn -f ${current.project.path} clean package -DskipTests -Dquarkus.profile=prod",
101           "workdir": "${CHE_PROJECTS_ROOT}"
102         }
103       ]
104     },
105     {
106       "name": "Run Spring Boot App",
107       "actions": [
108         {
109           "type": "exec",
110           "component": "quarkus-tools",
111           "command": "mvn spring-boot:run -f ${current.project.path}",
112           "workdir": "${CHE_PROJECTS_ROOT}"
113         }
114       ]
115     },
116     {
117       "name": "Start Debugger on 5005",
118       "actions": [
119         {
120           "type": "vscode-launch",
121           "referenceContent": "{\n  \"version\": \"0.2.0\",\n  \"configurations\": [\n    {\n      \"type\": \"java\",\n      \"request\": \"attach\",\n      \"name\": \"Attach to App\",\n      \"hostName\": \"localhost\",\n      \"port\": 5005\n    }\n  ]\n}\n"
122         }
123       ]
124     }
125
126   ]
127 }