-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevfile.yaml
46 lines (46 loc) · 1.07 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
schemaVersion: 2.1.0
metadata:
#yo
description: 'Go environment. reference from:https://github.com/devfile/registry/blob/main/stacks/go/devfile.yaml '
displayName: Go Runtime
name: go
projectType: Go
provider: Red Hat
language: Go
tags:
- Go
version: 1.0.2
projects:
- name: go-starter
git:
checkoutFrom:
revision: master
remotes:
origin: https://github.ford.com/Cloud-Platform-Development/Go-Starter.git
components:
- container:
endpoints:
- name: http-go
targetPort: 8080
image: quay.io/devfile/golang:latest
args: ['tail', '-f', '/dev/null']
memoryLimit: 1024Mi
mountSources: true
name: runtime
commands:
- exec:
commandLine: GOCACHE=${PROJECT_SOURCE}/.cache go build main.go
component: runtime
group:
isDefault: true
kind: build
workingDir: ${PROJECT_SOURCE}
id: build
- exec:
commandLine: ./main
component: runtime
group:
isDefault: true
kind: run
workingDir: ${PROJECT_SOURCE}
id: run