7.93.0 • Published 10 months ago

@eclipse-che/che-devworkspace-generator v7.93.0

Weekly downloads
-
License
EPL-2.0
Repository
github
Last release
10 months ago

DevWorkspace Generator

The library is used by Devfile registry component to generate the DevWorkspace components and DevWorkspace templates. It requires editor definitions from the che-plugin-registry.

How to use the library

The library can be used as a standalone library.

USAGE
    $ node lib/entrypoint.js [OPTIONS]

OPTIONS
      --devfile-url:           URL to the git repository that contains devfile.yaml
            or
      --devfile-path:          path to the devfile.yaml file

      --plugin-registry-url:   URL to the plugin registry that contains editor definitions (devfile.yaml)
      --editor-entry:          editor ID, found on the <plugin-registry-url>, to resolve the devfile.yaml
            or
      --editor-path:           local file path of the editor devfile.yaml

      --output-file:           local file path for the generated devworkspace yaml 

      --project.<project-name> local file path for the sample project zip (for airgapped/offline registry builds)

      --injectDefaultComponent: inject a default dev container component if no component is defined in the devfile and it doesn't provide a parent, the value can be true or false, default is false

      --defaultComponentImage: image to use for the default dev container component that will be injected if no componetn is defined in the devfile and it doesn't provide a parent devfile, default is quay.io/devfile/universal-developer-image:ubi8-latest

EXAMPLES

    # online example, using editor definition from https://che-plugin-registry-main.surge.sh/

    $ node lib/entrypoint.js \
        --devfile-url:https://github.com/che-samples/java-spring-petclinic/tree/main \
        --plugin-registry-url:https://che-plugin-registry-main.surge.sh/v3/ \
        --editor-entry:che-incubator/che-code/latest \
        --output-file:/tmp/devworkspace-che-code-latest.yaml \
        --injectDefaultComponent:true \
        --defaultComponentImage:registry.access.redhat.com/ubi8/openjdk-11:latest

    # offline example with devfile.yaml files and zipped project available locally

    $ node lib/entrypoint.js \
        --devfile-path:/remote-source/python-hello-world/app/devfile.yaml \
        --editor-path:/build/plugins/che-incubator/che-code/latest/devfile.yaml \
        --output-file:./devfiles/python__python-hello-world/devworkspace-che-code-latest.yaml \
        --project.python-hello-world='{{_INTERNAL_URL_}}/resources/v2/python-hello-world.zip'

The output file devworkspace-che-code-latest.yaml contains a DevWorkspace based on the repository devfile and a Che-Code DevWorkspaceTemplate.

If the DevWorkspace engine is installed on the cluster, the following command will create a DevWorkspace:

$ kubectl apply -f /tmp/devworkspace-che-code-latest.yaml

7.93.0-next-13e0658

10 months ago

7.93.0-next-8e99f85

10 months ago

7.93.0-next-e5ac546

10 months ago

7.93.0-next-ad4e181

10 months ago

7.93.0-next-fd18ffd

10 months ago

7.93.0-next-be04ded

11 months ago

7.93.0

11 months ago

7.92.0-next-30920b5

11 months ago

7.89.0

1 year ago

7.91.0-next-48d66ab

12 months ago

7.91.0-next-6656404

12 months ago

7.92.0

12 months ago

7.92.0-next-635ad1e

12 months ago

7.88.0

1 year ago

7.93.0-next-e0a0622

11 months ago

7.92.0-next-bcc6798

12 months ago

7.91.0

1 year ago

7.92.0-next-bb0a26b

12 months ago

7.90.0-1a2253f

1 year ago

7.91.0-next-d02f493

12 months ago

7.87.0

1 year ago

7.92.0-next-8eeb290

11 months ago

7.90.0

1 year ago

7.86.0

1 year ago

7.85.0

1 year ago

7.84.0

1 year ago

7.83.0

1 year ago

7.82.0

2 years ago

7.81.0

2 years ago

7.80.0

2 years ago

7.79.0

2 years ago

7.69.0-8cf0257

2 years ago

0.0.1-b3f6c7c

2 years ago

7.69.0-8717dbc

2 years ago

0.0.1-99986b8

2 years ago

0.0.1-7f000bc

2 years ago

7.69.0-8c428fe

2 years ago

7.75.0

2 years ago

7.74.0

2 years ago

7.78.0

2 years ago

7.77.0

2 years ago

0.0.1-ea73e8b

2 years ago

7.76.0

2 years ago

7.69.0-c0a33f9

2 years ago

0.0.1-6ef61ae

2 years ago

0.0.1-1f238bb

2 years ago

0.0.1-4e80d1b

3 years ago

0.0.1-95a24f0

2 years ago

0.0.1-96cdbb4

3 years ago

0.0.1-602dcb4

2 years ago

0.0.1-944818a

2 years ago

0.0.1-4f0e375

2 years ago

0.0.1-09a1f81

2 years ago

0.0.1-638fadc

2 years ago

0.0.1-58f79fb

2 years ago

0.0.1-a00c266

3 years ago

0.0.1-bd2d989

3 years ago

0.0.1-25f630b

3 years ago

0.0.1-d7aefd7

3 years ago

0.0.1-7784e80

3 years ago

0.0.1-c8bd5c0

3 years ago

0.0.1-1dce1f8

3 years ago

0.0.1-1671620831

3 years ago