You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
105 lines
3.1 KiB
105 lines
3.1 KiB
schemaVersion: 2.1.0
|
|
metadata:
|
|
name: cheese-quizz
|
|
version: 1.2.0
|
|
displayName: Quarkus Java
|
|
description: Quarkus with Java
|
|
tags:
|
|
- Java
|
|
- Quarkus
|
|
projectType: Quarkus
|
|
language: Java
|
|
icon: https://raw.githubusercontent.com/devfile-samples/devfile-stack-icons/main/java-maven.jpg
|
|
attributes:
|
|
controller.devfile.io/devworkspace-config:
|
|
name: devworkspace-config
|
|
namespace: openshift-devspaces
|
|
controller.devfile.io/storage-type: per-user
|
|
components:
|
|
- name: tools
|
|
container:
|
|
image: "registry.redhat.io/devspaces/udi-rhel8:3.3"
|
|
args: ['tail', '-f', '/dev/null']
|
|
memoryLimit: 5.07G
|
|
memoryRequest: 256Mi
|
|
mountSources: true
|
|
volumeMounts:
|
|
- name: m2
|
|
path: /home/user/.m2
|
|
endpoints:
|
|
- exposure: none
|
|
name: debug
|
|
protocol: tcp
|
|
targetPort: 5005
|
|
- name: quizz-question
|
|
targetPort: 8080
|
|
- name: quizz-client
|
|
targetPort: 8081
|
|
env:
|
|
- name: QUARKUS_HTTP_HOST
|
|
value: 0.0.0.0
|
|
- name: CHE_DASHBOARD_URL
|
|
value: 'https://devspaces.apps.appdev.itix.xyz'
|
|
- name: CHE_PLUGIN_REGISTRY_URL
|
|
value: 'https://devspaces.apps.appdev.itix.xyz/plugin-registry/v3'
|
|
- name: CHE_PLUGIN_REGISTRY_INTERNAL_URL
|
|
value: 'http://plugin-registry.openshift-devspaces.svc:8080/v3'
|
|
- name: OPENVSX_REGISTRY_URL
|
|
value: 'https://open-vsx.org'
|
|
- name: MAVEN_OPTS
|
|
value: -Dmaven.repo.local=/home/user/.m2/repository
|
|
- name: MAVEN_USER_HOME
|
|
value: /home/user/.m2
|
|
- name: HOME
|
|
value: /home/user
|
|
- name: m2
|
|
volume:
|
|
size: 3Gi
|
|
- name: kube
|
|
volume: {}
|
|
- name: openshift
|
|
container:
|
|
image: quay.io/openshift/origin-cli:4.11
|
|
command: ["tail", "-f", "/dev/null"]
|
|
memoryLimit: 512Mi
|
|
mountSources: true
|
|
volumeMounts:
|
|
- name: kube
|
|
path: /home/user/.kube
|
|
env:
|
|
- name: PATH
|
|
value: '/tmp/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
|
|
commands:
|
|
- id: model-install
|
|
exec:
|
|
component: tools
|
|
workingDir: ${PROJECT_SOURCE}/quizz-model
|
|
commandLine: './mvnw clean install -DskipTests'
|
|
group:
|
|
kind: build
|
|
isDefault: true
|
|
- id: client-devmode
|
|
exec:
|
|
component: tools
|
|
workingDir: ${PROJECT_SOURCE}/quizz-client
|
|
commandLine: './mvnw compile quarkus:dev'
|
|
group:
|
|
kind: build
|
|
isDefault: true
|
|
- id: question-devmode
|
|
exec:
|
|
component: tools
|
|
workingDir: ${PROJECT_SOURCE}/quizz-question
|
|
commandLine: './mvnw compile quarkus:dev'
|
|
group:
|
|
kind: build
|
|
isDefault: true
|
|
- id: tkn-start-pipeline
|
|
exec:
|
|
component: openshift
|
|
workingDir: ${PROJECT_SOURCE}
|
|
commandLine: 'mkdir -p /tmp/bin ; if [ ! -f /tmp/bin/tkn ]; then curl -sSL https://github.com/tektoncd/cli/releases/download/v0.27.0/tkn_0.27.0_Linux_x86_64.tar.gz | tar -zx -C /tmp/bin tkn ; fi ; tkn pipeline start -n cheese-quizz quizz-client-pipeline'
|
|
group:
|
|
kind: build
|
|
isDefault: true
|
|
|
|
|