Skip to content

Commit f210cb2

Browse files
committed
Update readme to test using GH CLI
Signed-off-by: Mario Loriedo <[email protected]>
1 parent 4528745 commit f210cb2

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

README.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ A list of `Dockerfiles`, using different base images, to customize Eclipe Che an
99
|------------|------------|-------------|-----------------|--------|
1010
| alpine | [Dockerfile](https://github.com/devfile/cloud-dev-images/blob/main/alpine/Dockerfile) | [![build](https://github.com/devfile/cloud-dev-images/actions/workflows/alpine-build.yaml/badge.svg)](https://github.com/devfile/cloud-dev-images/actions/workflows/alpine-build.yaml) | [![build](https://github.com/devfile/cloud-dev-images/actions/workflows/alpine-vscode-startup.yaml/badge.svg)](https://github.com/devfile/cloud-dev-images/actions/workflows/alpine-vscode-startup.yaml) | [![dogfooding](https://img.shields.io/static/v1?label=dogfooding%20%20%20%20&message=vscode&logo=eclipseche&color=FDB940&labelColor=525C86)](https://che-dogfooding.apps.che-dev.x6e0.p1.openshiftapps.com/#https://github.com/devfile/cloud-dev-images?image=quay.io/mloriedo/cloud-dev-images:alpine&che-editor=che-incubator/che-code/insiders) [![devsandbox](https://img.shields.io/static/v1?label=dev%20sandbox&message=vscode&logo=eclipseche&color=FDB940&labelColor=525C86)](https://workspaces.openshift.com/#https://github.com/devfile/cloud-dev-images?image=quay.io/mloriedo/cloud-dev-images:alpine&che-editor=che-incubator/che-code/insiders) |
1111
| busybox | [Dockerfile](https://github.com/devfile/cloud-dev-images/blob/main/busybox/Dockerfile) | [![build](https://github.com/devfile/cloud-dev-images/actions/workflows/busybox-build.yaml/badge.svg)](https://github.com/devfile/cloud-dev-images/actions/workflows/busybox-build.yaml) | [![build](https://github.com/devfile/cloud-dev-images/actions/workflows/busybox-vscode-startup.yaml/badge.svg)](https://github.com/devfile/cloud-dev-images/actions/workflows/busybox-vscode-startup.yaml) | [![dogfooding](https://img.shields.io/static/v1?label=dogfooding%20%20%20%20&message=vscode&logo=eclipseche&color=FDB940&labelColor=525C86)](https://che-dogfooding.apps.che-dev.x6e0.p1.openshiftapps.com/#https://github.com/devfile/cloud-dev-images?image=quay.io/mloriedo/cloud-dev-images:busybox&che-editor=che-incubator/che-code/insiders) [![devsandbox](https://img.shields.io/static/v1?label=dev%20sandbox&message=vscode&logo=eclipseche&color=FDB940&labelColor=525C86)](https://workspaces.openshift.com/#https://github.com/devfile/cloud-dev-images?image=quay.io/mloriedo/cloud-dev-images:busybox&che-editor=che-incubator/che-code/insiders) |
12+
| docker | [Dockerfile](https://github.com/devfile/cloud-dev-images/blob/main/docker/Dockerfile) | [![build](https://github.com/devfile/cloud-dev-images/actions/workflows/docker-build.yaml/badge.svg)](https://github.com/devfile/cloud-dev-images/actions/workflows/docker-build.yaml) | [![build](https://github.com/devfile/cloud-dev-images/actions/workflows/docker-vscode-startup.yaml/badge.svg)](https://github.com/devfile/cloud-dev-images/actions/workflows/docker-vscode-startup.yaml) | [![dogfooding](https://img.shields.io/static/v1?label=dogfooding%20%20%20%20&message=vscode&logo=eclipseche&color=FDB940&labelColor=525C86)](https://che-dogfooding.apps.che-dev.x6e0.p1.openshiftapps.com/#https://github.com/devfile/cloud-dev-images?image=quay.io/mloriedo/cloud-dev-images:docker&che-editor=che-incubator/che-code/insiders) [![devsandbox](https://img.shields.io/static/v1?label=dev%20sandbox&message=vscode&logo=eclipseche&color=FDB940&labelColor=525C86)](https://workspaces.openshift.com/#https://github.com/devfile/cloud-dev-images?image=quay.io/mloriedo/cloud-dev-images:docker&che-editor=che-incubator/che-code/insiders) |
1213
| fedora | [Dockerfile](https://github.com/devfile/cloud-dev-images/blob/main/fedora/Dockerfile) | [![build](https://github.com/devfile/cloud-dev-images/actions/workflows/fedora-build.yaml/badge.svg)](https://github.com/devfile/cloud-dev-images/actions/workflows/fedora-build.yaml) | [![build](https://github.com/devfile/cloud-dev-images/actions/workflows/fedora-vscode-startup.yaml/badge.svg)](https://github.com/devfile/cloud-dev-images/actions/workflows/fedora-vscode-startup.yaml) | [![dogfooding](https://img.shields.io/static/v1?label=dogfooding%20%20%20%20&message=vscode&logo=eclipseche&color=FDB940&labelColor=525C86)](https://che-dogfooding.apps.che-dev.x6e0.p1.openshiftapps.com/#https://github.com/devfile/cloud-dev-images?image=quay.io/mloriedo/cloud-dev-images:fedora&che-editor=che-incubator/che-code/insiders) [![devsandbox](https://img.shields.io/static/v1?label=dev%20sandbox&message=vscode&logo=eclipseche&color=FDB940&labelColor=525C86)](https://workspaces.openshift.com/#https://github.com/devfile/cloud-dev-images?image=quay.io/mloriedo/cloud-dev-images:fedora&che-editor=che-incubator/che-code/insiders) |
1314
| golang | [Dockerfile](https://github.com/devfile/cloud-dev-images/blob/main/golang/Dockerfile) | [![build](https://github.com/devfile/cloud-dev-images/actions/workflows/golang-build.yaml/badge.svg)](https://github.com/devfile/cloud-dev-images/actions/workflows/golang-build.yaml) | [![build](https://github.com/devfile/cloud-dev-images/actions/workflows/golang-vscode-startup.yaml/badge.svg)](https://github.com/devfile/cloud-dev-images/actions/workflows/golang-vscode-startup.yaml) | [![dogfooding](https://img.shields.io/static/v1?label=dogfooding%20%20%20%20&message=vscode&logo=eclipseche&color=FDB940&labelColor=525C86)](https://che-dogfooding.apps.che-dev.x6e0.p1.openshiftapps.com/#https://github.com/devfile/cloud-dev-images?image=quay.io/mloriedo/cloud-dev-images:golang&che-editor=che-incubator/che-code/insiders) [![devsandbox](https://img.shields.io/static/v1?label=dev%20sandbox&message=vscode&logo=eclipseche&color=FDB940&labelColor=525C86)](https://workspaces.openshift.com/#https://github.com/devfile/cloud-dev-images?image=quay.io/mloriedo/cloud-dev-images:golang&che-editor=che-incubator/che-code/insiders) |
1415
| openjdk | [Dockerfile](https://github.com/devfile/cloud-dev-images/blob/main/openjdk/Dockerfile) | [![build](https://github.com/devfile/cloud-dev-images/actions/workflows/openjdk-build.yaml/badge.svg)](https://github.com/devfile/cloud-dev-images/actions/workflows/openjdk-build.yaml) | [![build](https://github.com/devfile/cloud-dev-images/actions/workflows/openjdk-vscode-startup.yaml/badge.svg)](https://github.com/devfile/cloud-dev-images/actions/workflows/openjdk-vscode-startup.yaml) | [![dogfooding](https://img.shields.io/static/v1?label=dogfooding%20%20%20%20&message=vscode&logo=eclipseche&color=FDB940&labelColor=525C86)](https://che-dogfooding.apps.che-dev.x6e0.p1.openshiftapps.com/#https://github.com/devfile/cloud-dev-images?image=quay.io/mloriedo/cloud-dev-images:openjdk&che-editor=che-incubator/che-code/insiders) [![devsandbox](https://img.shields.io/static/v1?label=dev%20sandbox&message=vscode&logo=eclipseche&color=FDB940&labelColor=525C86)](https://workspaces.openshift.com/#https://github.com/devfile/cloud-dev-images?image=quay.io/mloriedo/cloud-dev-images:openjdk&che-editor=che-incubator/che-code/insiders) |
@@ -18,16 +19,36 @@ A list of `Dockerfiles`, using different base images, to customize Eclipe Che an
1819

1920
## How to run the tests
2021

21-
### Requirements
22+
### Running the tests locally
23+
24+
#### Requirements
2225

2326
- An OpenShift cluster with the DevWorkspace Operator (developer sandbox)
2427
- Linux or macOS with `oc` and `kubectl`
2528

26-
### Running the tests
27-
29+
#### Runing the tests
2830
```bash
2931
export CLUSTER_URL="https://api.rm1.0a51.p1.openshiftapps.com:6443"
3032
export CLUSTER_TOKEN="<token>"
3133
export EDITOR_IMAGE="quay.io/che-incubator/che-code:insiders"
34+
3235
./run-tests.sh
3336
```
37+
38+
## Running the GH workflows
39+
40+
#### Requirements
41+
42+
- An OpenShift cluster with the DevWorkspace Operator (developer sandbox)
43+
- Linux or macOS with `gh` (GitHub CLI)
44+
45+
#### Running the tests
46+
47+
```bash
48+
export CLUSTER_URL="https://api.rm1.0a51.p1.openshiftapps.com:6443"
49+
export CLUSTER_TOKEN="<token>"
50+
export EDITOR_IMAGE="quay.io/che-incubator/che-code:insiders"
51+
imgs=( "ubi8" "ubi9" "alpine" "busybox" "docker" "golang" "openjdk" "fedora" "ubuntu" )
52+
53+
for img in "${imgs[@]}"; do gh workflow run ${img}-vscode-startup.yaml -f sandboxURL="${CLUSTER_URL}" -f sandboxToken="${CLUSTER_TOKEN}" -f editorImage="${EDITOR_IMAGE}"; done
54+
```

0 commit comments

Comments
 (0)