-
Notifications
You must be signed in to change notification settings - Fork 65
/
devfile.yaml
43 lines (43 loc) · 1.24 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
#
# Copyright (c) 2019-2023 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
# Red Hat, Inc. - initial API and implementation
#
schemaVersion: 2.1.0
metadata:
name: chectl-dev
components:
- name: tooling-container
container:
image: 'quay.io/devfile/universal-developer-image:ubi8-latest'
cpuLimit: 500m
cpuRequest: 500m
memoryLimit: 5G
memoryRequest: 1G
commands:
- id: 0-build-env
exec:
label: "Install node and yarn"
component: tools
group:
kind: build
workingDir: ${PROJECT_SOURCE}
commandLine: >-
NODEJS_VERSION=18.18.0; nvm install $NODEJS_VERSION && nvm use v$NODEJS_VERSION && npm i yarn@1 npm@10 -g
- id: 1-build-chectl
exec:
label: "Build chectl"
component: tools
group:
kind: build
workingDir: ${PROJECT_SOURCE}
commandLine: >-
yarn && yarn pack-binaries --targets=linux-x64
# optional other targets to build:
# --targets=linux-arm,linux-x64,linux-s390x,linux-ppc64le,darwin-x64,darwin-arm64,win32-x64,win32-x86