Skip to content

Commit

Permalink
add jhipster-online project (#480)
Browse files Browse the repository at this point in the history
* jhipster-online

Signed-off-by: Maximiliano Pizarro <[email protected]>

* add hash base ubi jhipster-online

Signed-off-by: Maximiliano Pizarro <[email protected]>

* remove versions from jhipster-online

Signed-off-by: Maximiliano Pizarro <[email protected]>

* metadata language Java

Signed-off-by: Maximiliano Pizarro <[email protected]>

* add metadata projectType: springboot jhipster-online

Signed-off-by: Maximiliano Pizarro <[email protected]>

* add hash, rm dockerfile and divide command in steps

Signed-off-by: Maximiliano Pizarro <[email protected]>

* jhipster online isDefault run task

Signed-off-by: Maximiliano Pizarro <[email protected]>

* add JHipster stacks - On trial CODEOWNERS

Signed-off-by: Maximiliano Pizarro <[email protected]>

* CODEOWNERS

Signed-off-by: Maximiliano Pizarro <[email protected]>

* Update stacks/jhipster-online/stack.yaml

Co-authored-by: Michael Valdron <[email protected]>
Signed-off-by: Maximiliano Pizarro <[email protected]>

* jhipster-online remove versions seccion stack.yaml

Signed-off-by: Maximiliano Pizarro <[email protected]>

* remove version from devfile.yaml

Signed-off-by: Maximiliano Pizarro <[email protected]>

* remove stack.yaml file jhipster-online

Signed-off-by: Maximiliano Pizarro <[email protected]>

* stack.yaml without version

Signed-off-by: Maximiliano Pizarro <[email protected]>

---------

Signed-off-by: Maximiliano Pizarro <[email protected]>
Co-authored-by: Michael Valdron <[email protected]>
  • Loading branch information
maximilianoPizarro and michael-valdron authored Nov 28, 2024
1 parent 8dfedb7 commit cc09232
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@
# *The udi stack has two owners
/stacks/udi @ibuziuk @l0rd @devfile/che-team
/stacks/ollama @ibuziuk @manhah @devfile/che-team

# JHipster stacks - On trial
/stacks/jhipster-online/ @devfile/devfile-services-team @devfile/che-team
118 changes: 118 additions & 0 deletions stacks/jhipster-online/2.33.0/devfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
schemaVersion: 2.2.2
metadata:
name: jhipster-online
description: Stack with the JHipster Online on DevSpaces Red Hat OpenShift
displayName: JHipster Online
icon: https://raw.githubusercontent.com/maximilianoPizarro/ecommerce-oracle/main/jhipster-icon.png
website: https://start.jhipster.tech
tags:
- Java
- JHipster
- Angular
- Spring
language: Java
projectType: springboot
version: 2.33.0
projects:
- name: jhipster-online
git:
remotes:
origin: 'https://github.com/maximilianoPizarro/jhipster-online'
checkoutFrom:
revision: openshift
components:
- name: tools
container:
image: 'quay.io/maximilianopizarro/jhipster-devspace@sha256:c27aefcf6ce158479bafae63758c1f0993c430a6ee15f76cf369fc889e54eae5'
mountSources: true
cpuLimit: '4'
cpuRequest: '1'
memoryLimit: '8G'
memoryRequest: '4G'
volumeMounts:
- name: m2
path: /home/user/.m2
- name: config
path: /home/user/.config
- name: npm
path: /home/user/.npm
endpoints:
- exposure: public
name: backend
protocol: https
targetPort: 8080
- exposure: public
name: debug
targetPort: 4200
- exposure: public
name: frontend
protocol: https
targetPort: 9000
- exposure: public
name: debug-frontend
protocol: https
targetPort: 9001
- exposure: public
name: browser-sync
protocol: https
targetPort: 3001
env:
- value: '-XX:MaxRAMPercentage=50.0 -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 -Duser.home=/home/jboss'
name: JAVA_OPTS
- value: $(JAVA_OPTS)
name: MAVEN_OPTS
- value: '/home/tooling/.sdkman/candidates/java/11.0.15-tem'
name: JAVA_HOME
- name: m2
volume:
size: 512Mi
- name: config
volume:
size: 512Mi
- name: npm
volume:
size: 512Mi
commands:
- id: kubectl-add-mysql
exec:
label: 'Kubernetes apply MariaDB Instance (Kubernetes cluster)'
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: 'kubectl apply -f src/main/kubernetes/mysql.yaml'
- id: oc-add-mysql
exec:
label: 'OpenShift apply MariaDB Instance (OpenShift cluster)'
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: 'oc apply -f src/main/kubernetes/mysql.yaml'
- id: yarn-install
exec:
label: 'Package the application'
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: 'yarn install'
group:
kind: build
isDefault: true
- id: start-frontend
exec:
label: 'Start Frontend'
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: 'yarn start'
group:
kind: run
isDefault: true
- id: start-backend
exec:
label: 'Start JHipster Online'
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: 'chmod 777 ./mvnw && ./mvnw'
group:
kind: run
isDefault: false
events:
postStart:
- oc-add-mysql
- yarn-install
7 changes: 7 additions & 0 deletions stacks/jhipster-online/stack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: jhipster-online
description: Stack with the JHipster Online on DevSpaces Red Hat OpenShift
displayName: JHipster Online
icon: https://raw.githubusercontent.com/maximilianoPizarro/ecommerce-oracle/main/jhipster-icon.png
versions:
- version: 2.33.0
default: true

0 comments on commit cc09232

Please sign in to comment.