Skip to content

Commit

Permalink
add hash, rm dockerfile and divide command in steps
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianoPizarro committed Sep 12, 2024
1 parent 9fb6785 commit 167b718
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 16 deletions.
51 changes: 38 additions & 13 deletions stacks/jhipster-online/2.33.0/devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ metadata:
- Angular
- Spring
language: Java
projectType: 'springboot'
projectType: springboot
projects:
- name: jhipster-online
git:
Expand All @@ -23,7 +23,7 @@ projects:
components:
- name: tools
container:
image: 'quay.io/maximilianopizarro/jhipster-devspace'
image: 'quay.io/maximilianopizarro/jhipster-devspace@sha256:c27aefcf6ce158479bafae63758c1f0993c430a6ee15f76cf369fc889e54eae5'
mountSources: true
cpuLimit: '4'
cpuRequest: '1'
Expand All @@ -41,18 +41,18 @@ components:
name: backend
protocol: https
targetPort: 8080
- exposure: none
- exposure: public
name: debug
targetPort: 4200
- exposure: none
- exposure: public
name: frontend
protocol: https
targetPort: 9000
- exposure: none
- exposure: public
name: debug-frontend
protocol: https
targetPort: 9001
- exposure: none
- exposure: public
name: browser-sync
protocol: https
targetPort: 3001
Expand All @@ -73,21 +73,46 @@ components:
volume:
size: 512Mi
commands:
- id: build-jh-studio
- 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: 'Package the application with yarn and create MariaDB Instance'
label: 'Start Frontend'
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: 'oc apply -f src/main/kubernetes/mysql.yaml && yarn install && chmod 777 ./mvnw && echo "do not kill this task, run ./mvnw in other tasks" && yarn start'
- id: run-jh-studio
commandLine: 'yarn start'
group:
kind: run
isDefault: true
- id: start-backend
exec:
label: 'Run ./mvnw'
label: 'Start JHipster Online'
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: './mvnw'
commandLine: 'chmod 777 ./mvnw && ./mvnw'
group:
kind: run
isDefault: true
events:
postStart:
- build-jh-studio
- oc-add-mysql
- yarn-install
3 changes: 0 additions & 3 deletions stacks/jhipster-online/2.33.0/docker/Dockerfile

This file was deleted.

0 comments on commit 167b718

Please sign in to comment.