forked from redhat-appstudio-qe/hacbs-test-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
devfile.yaml
70 lines (70 loc) · 1.83 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
schemaVersion: 2.2.0
metadata:
name: hacbs-jvm-build-test-project
version: 1.1.0
provider: Red Hat
supportUrl: https://github.com/devfile-samples/devfile-support#support-information
displayName: hacbs-jvm-build-test-project
description: hacbs-jvm-build-test-project
tags: ["Java", "Maven"]
projectType: "maven"
language: "java"
attributes:
alpha.dockerimage-port: 8081
parent:
id: java-maven
registryUrl: "https://registry.devfile.io"
components:
- name: image-build
image:
imageName: hacbs-jvm-build-test-project:latest
dockerfile:
uri: Dockerfile
buildContext: .
rootRequired: false
- name: outerloop-deploy
kubernetes:
inlined: |-
kind: Deployment
apiVersion: apps/v1
metadata:
name: hacbs-jvm-build-test-project
spec:
replicas: 1
selector:
matchLabels:
app: hacbs-jvm-build-test-project
template:
metadata:
labels:
app: hacbs-jvm-build-test-project
spec:
containers:
- name: hacbs-jvm-build-test-project
image: hacbs-jvm-build-test-project:latest
ports:
- name: http
containerPort: 8081
protocol: TCP
resources:
limits:
memory: "100Mi"
cpu: "50m"
requests:
memory: "25Mi"
cpu: "10m"
commands:
- id: build-image
apply:
component: image-build
- id: deployk8s
apply:
component: outerloop-deploy
- id: deploy
composite:
commands:
- build-image
- deployk8s
group:
kind: deploy
isDefault: true