7.93.0-next-13e0658 • Published 12 months ago

@eclipse-che/che-devworkspace-generator v7.93.0-next-13e0658

Weekly downloads
-
License
EPL-2.0
Repository
github
Last release
12 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.95.0-next-557e5a4

11 months ago

7.94.0-next-fe83bd0

12 months ago

7.93.0-next-608c7a3

12 months ago

7.95.0-next-57bc220

11 months ago

7.95.0-next-2c51184

11 months ago

7.93.0-next-ff56989

12 months ago

7.94.0-next-0ddd1b2

12 months ago

7.96.0-next-da9f364

11 months ago

7.95.0-next-dc05da7

11 months ago

7.97.0-next-df09e75

10 months ago

7.95.0-next-a6997ce

11 months ago

7.94.0-next-f58eca5

12 months ago

7.97.0-next-3856dc9

10 months ago

7.95.0-next-303625a

11 months ago

7.95.0-next-b1013f9

11 months ago

7.97.0-next-269576d

10 months ago

7.97.0-next-831827c

10 months ago

7.95.0

12 months ago

7.95.0-next-260457c

11 months ago

7.95.0-next-3ab2717

11 months ago

7.96.0-next-26db414

11 months ago

7.96.0-next-8043551

10 months ago

7.94.0

12 months ago

7.97.0-next-72ddf7b

10 months ago

7.94.0-next-51b699c

12 months ago

7.97.0

10 months ago

7.102.0

6 months ago

7.104.0

5 months ago

7.95.0-next-000b70a

11 months ago

7.95.0-next-26e3295

11 months ago

7.96.0

11 months ago

7.95.0-next-b55348e

11 months ago

7.103.0

6 months ago

7.96.0-next-3f2a824

10 months ago

7.97.0-next-ac1a13b

10 months ago

7.95.0-next-25f07ff

11 months ago

7.96.0-next-149bc9f

11 months ago

7.94.0-next-b9a385e

12 months ago

7.99.0

9 months ago

7.100.0

8 months ago

7.94.0-next-55aec42

12 months ago

7.95.0-next-ff2c9c9

12 months ago

7.94.0-next-b62b374

12 months ago

7.93.0-next-a7201f7

12 months ago

7.94.0-next-7fcbae4

12 months ago

7.94.0-next-d5e683b

12 months ago

7.98.0

9 months ago

7.101.0

7 months ago

7.93.0-next-13e0658

12 months ago

7.93.0

1 year ago

7.89.0

1 year ago

7.92.0

1 year ago

7.88.0

1 year ago

7.91.0

1 year ago

7.90.0-1a2253f

1 year ago

7.87.0

1 year ago

7.90.0

1 year ago

7.86.0

1 year ago

7.85.0

2 years ago

7.84.0

2 years ago

7.83.0

2 years 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

3 years ago

0.0.1-4e80d1b

3 years ago

0.0.1-95a24f0

3 years ago

0.0.1-96cdbb4

3 years ago

0.0.1-602dcb4

2 years ago

0.0.1-944818a

3 years ago

0.0.1-4f0e375

3 years ago

0.0.1-09a1f81

3 years ago

0.0.1-638fadc

3 years ago

0.0.1-58f79fb

3 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