schemaVersion: 2.1.0
metadata:
name: java-gradle-mugn
namespace: admin-codeready
projects:
- name: validating-form-input
zip:
location: 'http:
components:
- attributes:
app.kubernetes.io/name: gradle
che-theia.eclipse.org/vscode-extensions:
- 'http:
- 'http:
- 'http:
che-theia.eclipse.org/vscode-preferences:
java.server.launchMode: Standard
container:
args:
- sh
- '-c'
- '${PLUGIN_REMOTE_ENDPOINT_EXECUTABLE}'
endpoints:
- exposure: public
name: input-form-endpoint
protocol: http
targetPort: 8080
env:
- name: GRADLE_USER_HOME
value: /home/jboss/.gradle
- name: JAVA_OPTS
value: '-XX:MaxRAMPercentage=50 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xms20m -Djava.security.egd=file:/dev/./urandom'
- name: JAVA_TOOL_OPTIONS
value: $(JAVA_OPTS)
- name: HOME
value: /home/jboss
- name: PLUGIN_REMOTE_ENDPOINT_EXECUTABLE
value: /remote-endpoint/plugin-remote-endpoint
- name: THEIA_PLUGINS
value: 'local-dir:
- name: CHE_DASHBOARD_URL
value: 'https:
- name: CHE_PLUGIN_REGISTRY_URL
value: 'https:
- name: CHE_PLUGIN_REGISTRY_INTERNAL_URL
value: 'http:
image: 'registry.redhat.io/codeready-workspaces/plugin-java11-rhel8@sha256:79b59596870382e968850bc241ac41a3345a9079f28251808e35479f92bd3b86'
memoryLimit: 640Mi
mountSources: true
sourceMapping: /projects
volumeMounts:
- name: gradle-volume
path: /home/jboss/.gradle
- name: m2
path: /home/user/.m2
- name: m2
path: /home/user/.m2
- name: remote-endpoint
path: /remote-endpoint
- name: plugins
path: /plugins
name: gradle
- name: gradle-volume
volume: {}
- name: m2
volume: {}
- name: m2
volume: {}
commands:
- exec:
commandLine: gradle build
component: gradle
label: 1. Build
workingDir: '${PROJECTS_ROOT}/validating-form-input/complete'
id: build
- exec:
commandLine: gradle bootRun
component: gradle
label: 2. Run application
workingDir: '${PROJECTS_ROOT}/validating-form-input/complete'
id: run-application
- exec:
commandLine: gradle bootRun --debug-jvm
component: gradle
label: 3. Run in debug mode
workingDir: '${PROJECTS_ROOT}/validating-form-input/complete'
id: run-in-debug-mode
- exec:
commandLine: gradle test
component: gradle
label: 4. Run tests
workingDir: '${PROJECTS_ROOT}/validating-form-input/complete'
id: run-tests