-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy path.devfile.yaml
More file actions
48 lines (48 loc) · 1.97 KB
/
.devfile.yaml
File metadata and controls
48 lines (48 loc) · 1.97 KB
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
schemaVersion: 2.3.0
metadata:
name: devworkspace-operator
components:
- name: tools
container:
image: quay.io/devfile/devworkspace-devtools:latest
memoryRequest: 1Gi
memoryLimit: 16Gi
cpuLimit: '4'
cpuRequest: '0.5'
volumeMounts:
- name: graphroot
path: /home/user/.local/share/containers/storage
- name: graphroot
volume:
ephemeral: true
commands:
- id: build-and-push-controller
exec:
label: "1. Build and push DWO controller image"
component: tools
commandLine: |
read -p "ENTER a container registry org to push the devworkspace-controller image (e.g. quay.io/janedoe): " DWO_IMG_REPO
read -p "ENTER the tag for the image (e.g. dev): " DWO_IMG_TAG
export DWO_IMG=${DWO_IMG_REPO}/devworkspace-controller:${DWO_IMG_TAG}
export DOCKER=podman
make docker-build-amd64
make docker-push-amd64
group:
kind: build
- id: make-olm-bundle-index-catalogsource
exec:
label: "2. Build and push OLM bundle, index image and create a CatalogueSource"
component: tools
commandLine: |
read -p "ENTER a container registry org to push the devworkspace images (e.g. quay.io/janedoe): " DWO_IMG_REPO
read -p "ENTER a tag for the image (e.g. dev): " DWO_IMG_TAG
export DWO_BUNDLE_IMG=${DWO_IMG_REPO}/devworkspace-operator-bundle:${DWO_IMG_TAG}
export DWO_INDEX_IMG=${DWO_IMG_REPO}/devworkspace-operator-index:${DWO_IMG_TAG}
export DEFAULT_DWO_IMG=${DWO_IMG_REPO}/devworkspace-controller:${DWO_IMG_TAG}-amd64
export DOCKER=podman
make generate_olm_bundle_yaml build_bundle_and_index
read -p "Run register_catalogsource? (y/n) " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then if [[ ! "$(oc whoami)" =~ ^kube:admin$ ]]; then echo "You need to login as kubeadmin" && exit 1; fi && make register_catalogsource; else make view_catalogsource; fi
group:
kind: build