adelahozredhat / devspaces-images-custom

Identical copies of the code used in Brew/OSBS to build CodeReady Workspaces, but made public to enable pull requests and easier contribution; also copies of CasC Jenkins job configs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Links marked with this icon 🚪 are internal to Red Hat. This includes Jenkins servers, job configs in gitlab, and container sources in dist-git.

Because these services are internal, in the interest of making all things open, we've copied as much as possible into this repo. Details below.

Midstream code

This repo is used to house identical copies of the code used to build the Red Hat OpenShift Dev Spaces (formerly Red Hat CodeReady Workspaces) images in Brew/OSBS, but made public to enable pull requests and easier contribution.

  • Downstream code can be found in repos internal to Red Hat at http://pkgs.devel.redhat.com/cgit/?q=codeready-workspaces 🚪
    • select the crw-2-rhel-8 branch for the latest 2.x synced from upstream main branches, or
    • select a branch like crw-2.8-rhel-8 for a specific release, synced to a stable branch like 7.28.x.

Generated code

In some cases, where we need to house code generated by downstream processes in a public location, this repo will contain folders that end in -generated to differentiate from code that's synced from upstream and copied to downstream.

Jenkins jobs

This repo also contains an identical copy of the Jenkinsfiles and groovy 🚪 sources used to configure the jenkins-csb 🚪 Configuration-as-Code (casc) Jenkins instance used to build the artifacts needed for Brew/OSBS builds. Since the server and config sources are internal to Red Hat, this copy is provided to make it easier to see how CodeReady Workspaces is built. Hooray for open source!

For CRC

oc create namespace openshift-workspaces

oc project openshift-workspaces

cd codeready-workspaces-devfileregistry/

oc new-app -f deploy/openshift/crw-devfile-registry.yaml -p REGISTRY="default-route-openshift-image-registry.apps-crc.testing/openshift-workspaces" -p IMAGE="devfile-custom-example" -p IMAGE_TAG="latest" -p PULL_POLICY="Always" -p CHE_DEVFILE_REGISTRY_URL="https://devfile-registry-openshift-workspaces.apps-crc.testing"

cd ..

cd codeready-workspaces-pluginregistry/

oc new-app -f deploy/openshift/crw-plugin-registry.yaml -p REGISTRY="default-route-openshift-image-registry.apps-crc.testing/openshift-workspaces" -p IMAGE="plugin-custom-example" -p IMAGE_TAG="latest" -p PULL_POLICY="Always" -p CHE_PLUGIN_REGISTRY_URL="https://plugin-registry-openshift-workspaces.apps-crc.testing"

cd ..

cd images-for-devfiles/

oc new-app -f dev-files-template.yaml

cd ..

Para crear los credenciales de registry

user --> admin

password --> oc whoami -t

añadirlos en la pagina de codeready dle usuario

image-registry.openshift-image-registry.svc:5000

For openshift

oc create namespace openshift-workspaces

oc project openshift-workspaces

cd codeready-workspaces-devfileregistry/

oc new-app -f deploy/openshift/crw-devfile-registry.yaml -p REGISTRY="default-route-openshift-image-registry.apps-crc.testing/openshift-workspaces" -p IMAGE="devfile-custom-example" -p IMAGE_TAG="latest" -p PULL_POLICY="Always" -p CHE_DEVFILE_REGISTRY_URL="https://devfile-registry-openshift-workspaces.apps.cluster-z2rgq.z2rgq.sandbox663.opentlc.com"

cd ..

cd codeready-workspaces-pluginregistry/

oc new-app -f deploy/openshift/crw-plugin-registry.yaml -p REGISTRY="default-route-openshift-image-registry.apps-crc.testing/openshift-workspaces" -p IMAGE="plugin-custom-example" -p IMAGE_TAG="latest" -p PULL_POLICY="Always" -p CHE_PLUGIN_REGISTRY_URL="https://plugin-registry-openshift-workspaces.apps.cluster-z2rgq.z2rgq.sandbox663.opentlc.com"

cd ..

cd images-for-devfiles/

oc new-app -f dev-files-template.yaml

cd ..

Para crear los credenciales de registry

user --> admin

password --> oc whoami -t

añadirlos en la pagina de codeready dle usuario

image-registry.openshift-image-registry.svc:5000

https://www.redhat.com/sysadmin/podman-inside-kubernetes

About

Identical copies of the code used in Brew/OSBS to build CodeReady Workspaces, but made public to enable pull requests and easier contribution; also copies of CasC Jenkins job configs

License:Eclipse Public License 2.0


Languages

Language:Java 50.5%Language:Go 29.3%Language:TypeScript 9.0%Language:Shell 4.0%Language:Groovy 3.0%Language:Dockerfile 1.2%Language:JavaScript 1.2%Language:Vue 1.1%Language:Makefile 0.3%Language:CSS 0.1%Language:HTML 0.1%Language:SCSS 0.0%Language:Stylus 0.0%Language:Smarty 0.0%Language:Procfile 0.0%