This repository has been archived by the owner on May 11, 2021. It is now read-only.
forked from johnmcollier/devfile2-registry
-
Notifications
You must be signed in to change notification settings - Fork 33
/
devfile.yaml
88 lines (88 loc) · 3.05 KB
/
devfile.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Copyright (c) 2021 IBM Corporation and others
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
schemaVersion: 2.0.0
metadata:
name: java-openliberty
version: 0.5.0
description: Java application stack using Open Liberty runtime
alpha.build-dockerfile: "https://github.com/OpenLiberty/application-stack/releases/download/outer-loop-0.5.1/Dockerfile"
alpha.deployment-manifest: "https://github.com/OpenLiberty/application-stack/releases/download/outer-loop-0.5.1/app-deploy.yaml"
starterProjects:
- name: user-app
git:
remotes:
origin: 'https://github.com/OpenLiberty/application-stack-starters.git'
components:
- name: devruntime
container:
# In the original upstream of this devfile, the image used is openliberty/application-stack:<x.y.z>, which is built from the repository: https://github.com/OpenLiberty/application-stack
image: openliberty/application-stack:0.5
memoryLimit: 1512Mi
mountSources: true
endpoints:
- exposure: public
path: /
name: ep1
targetPort: 9080
protocol: http
commands:
- id: build
exec:
component: devruntime
commandLine: /stack/ol/scripts/devbuild-cmd.sh 21.0.0.3
workingDir: /projects
hotReloadCapable: true
group:
kind: build
isDefault: true
- id: run
exec:
component: devruntime
commandLine: mvn -Dliberty.runtime.version=21.0.0.3 -Ddebug=false -DhotTests=true -DcompileWait=3 liberty:dev
workingDir: /projects
hotReloadCapable: true
group:
kind: run
isDefault: true
- id: run-test-off
exec:
component: devruntime
commandLine: mvn -Dliberty.runtime.version=21.0.0.3 -Ddebug=false liberty:dev
workingDir: /projects
hotReloadCapable: true
group:
kind: run
isDefault: false
- id: debug
exec:
component: devruntime
commandLine: mvn -Dliberty.runtime.version=21.0.0.3 -DdebugPort=${DEBUG_PORT} liberty:dev -Dliberty.env.WLP_DEBUG_REMOTE=y
workingDir: /projects
hotReloadCapable: true
group:
kind: debug
isDefault: true
- id: test
# The 'test' command requires an active container, so we don't need to specify the liberty runtime version
exec:
component: devruntime
commandLine: mvn failsafe:integration-test failsafe:verify
workingDir: /projects
hotReloadCapable: true
group:
kind: test
isDefault: true