-
Notifications
You must be signed in to change notification settings - Fork 16
/
devfile.yaml
47 lines (47 loc) · 1.4 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
#
# Copyright (c) 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: dsc-dev
components:
- name: tools
container:
image: quay.io/devspaces/udi-rhel8:next
cpuLimit: 500m
cpuRequest: 500m
memoryLimit: 5G
memoryRequest: 1G
commands:
- id: 1-build-dsc-container
exec:
label: "Build dsc in a container"
component: tools
group:
kind: build
workingDir: ${PROJECT_SOURCE}
commandLine: >-
podman build . -t quay.io/devspaces/dsc:next -f build/dockerfiles/Dockerfile
# optional other flags to pass include:
# --no-cache
# --build-arg CSV_VERSION=3.yy.z \
# --build-arg BRANCHTAG=branch_or_tag_to_clone_and_build (default: devspaces-3-rhel-8)
# --build-arg DSC_PLATFORMS=linux-x64,darwin-x64,darwin-arm64,win32-x64,...
# --build-arg SEGMENT_WRITE_KEY=... \
- id: 2-extract-dsc-container
exec:
label: "Extract contents of dsc container and install dsc"
component: tools
group:
kind: build
workingDir: ${PROJECT_SOURCE}
commandLine: >-
./build/scripts/installDscFromContainer.sh quay.io/devspaces/dsc:next -v