7.93.0 • Published 8 months ago

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

Weekly downloads
-
License
EPL-2.0
Repository
github
Last release
8 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.89.0-next-ccf9c0b

11 months ago

7.91.0-next-e4e6429

10 months ago

7.89.0-next-497edc9

11 months ago

7.89.0-next-2191d32

11 months ago

7.90.0-next-1de76c0

10 months ago

7.93.0

9 months ago

7.88.0-next-4cdf3e2

12 months ago

7.88.0-next-14b26fe

12 months ago

7.89.0

11 months ago

7.91.0-next-48d66ab

10 months ago

7.89.0-next-784dff2

11 months ago

7.91.0-next-6656404

10 months ago

7.92.0

9 months ago

7.89.0-next-07dcccb

11 months ago

7.88.0-next-22704fd

12 months ago

7.91.0-next-3c0fc9b

10 months ago

7.91.0-next-6b44120

10 months ago

7.89.0-next-df53738

11 months ago

7.88.0

12 months ago

7.90.0-next-4510df7

10 months ago

7.88.0-next-b0b18da

12 months ago

7.88.0-next-4e4f42d

12 months ago

7.89.0-next-102b54b

11 months ago

7.89.0-next-2ac607b

11 months ago

7.91.0

10 months ago

7.88.0-next-ce5fc9e

12 months ago

7.88.0-next-81ce29f

12 months ago

7.90.0-1a2253f

10 months ago

7.88.0-next-a799afc

12 months ago

7.88.0-next-0f501c8

12 months ago

7.88.0-next-9fad47a

12 months ago

7.88.0-next-b9db1cf

11 months ago

7.91.0-next-c502246

10 months ago

7.91.0-next-d02f493

10 months ago

7.87.0

1 year ago

7.90.0-next-4550ba5

10 months ago

7.90.0

10 months ago

7.91.0-next-b84ea15

10 months ago

7.88.0-next-c363816

12 months ago

7.90.0-next-4f17481

10 months 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

1 year ago

7.81.0

1 year ago

7.80.0

1 year 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

2 years ago

0.0.1-95a24f0

2 years ago

0.0.1-96cdbb4

2 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

2 years ago

0.0.1-bd2d989

2 years ago

0.0.1-25f630b

2 years ago

0.0.1-d7aefd7

2 years ago

0.0.1-7784e80

2 years ago

0.0.1-c8bd5c0

3 years ago

0.0.1-1dce1f8

3 years ago

0.0.1-1671620831

3 years ago