4 Star 3 Fork 1

Gitee 极速下载 / codeready-workspaces

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/redhat-developer/codeready-workspaces
克隆/下载
.devfile.yaml 3.83 KB
一键复制 编辑 原始数据 按行查看 历史
schemaVersion: 2.2.2
metadata:
name: ds-plugin-registry-dev
components:
- name: builder
container:
image: quay.io/devfile/universal-developer-image:ubi8-latest
memoryRequest: 256Mi
memoryLimit: 8Gi
cpuRequest: 100m
cpuLimit: 2000m
volumeMounts:
- name: images
path: /home/user/.local
env:
- name: CONCURRENTLY_OPTS
value: -m 1
endpoints:
- name: openvsx
exposure: internal
protocol: https
targetPort: 5432
- name: images
volume:
size: 40Gi
commands:
- id: podman-login
exec:
label: "1. Login to registry.redhat.io"
commandLine: podman login registry.redhat.io
component: builder
- id: build-publish
exec:
label: "2. Build and Publish a Custom Plugin Registry"
component: builder
workingDir: ${PROJECTS_ROOT}/devspaces/dependencies/che-plugin-registry
commandLine: |
set -o xtrace;
rm -rf output;
mkdir output;
BUILDER=podman SKIP_TEST=true SKIP_FORMAT=true SKIP_LINT=true NODE_BUILD_OPTIONS="-max-old-space-size=1024" ./build.sh &&
export IMAGE=image-registry.openshift-image-registry.svc:5000/$(kubectl get sa default -o json | jq -r '.metadata.namespace')/che-plugin-registry &&
podman tag quay.io/devspaces/pluginregistry-rhel8:next ${IMAGE} &&
podman login --tls-verify=false -u $(oc whoami | tr -d :) -p $(oc whoami -t) image-registry.openshift-image-registry.svc:5000 &&
podman push --tls-verify=false "${IMAGE}"
- id: configure-custom-plugin-registry
exec:
label: "3. Configure Che to use the Custom Plugin Registry"
component: builder
workingDir: ${PROJECTS_ROOT}/devspaces/dependencies/che-plugin-registry
commandLine: |
export IMAGE=image-registry.openshift-image-registry.svc:5000/$(kubectl get sa default -o json | jq -r '.metadata.namespace')/che-plugin-registry &&
export CHECLUSTER_NAMESPACE="$(kubectl get checluster --all-namespaces -o json | jq -r '.items[0].metadata.namespace')" &&
kubectl create secret -n "${CHECLUSTER_NAMESPACE}" docker-registry regcred --docker-server=image-registry.openshift-image-registry.svc:5000 --docker-username=$(oc whoami | tr -d :) --docker-password=$(oc whoami -t) &&
kubectl patch serviceaccount default -n "${CHECLUSTER_NAMESPACE}" -p '{"imagePullSecrets": [{"name": "regcred"}]}' &&
./patch-cluster.sh "${IMAGE}"
- id: enable-embedded-openvsx
exec:
label: "4. Configure Che to use the embedded Eclipse Open VSX server"
component: builder
workingDir: ${PROJECTS_ROOT}/devspaces/dependencies/che-plugin-registry
commandLine: |
export CHECLUSTER_NAME="$(kubectl get checluster --all-namespaces -o json | jq -r '.items[0].metadata.name')" &&
export CHECLUSTER_NAMESPACE="$(kubectl get checluster --all-namespaces -o json | jq -r '.items[0].metadata.namespace')" &&
export PATCH='{"spec":{"components":{"pluginRegistry":{"openVSXURL":""}}}}' &&
kubectl patch checluster "${CHECLUSTER_NAME}" --type=merge --patch "${PATCH}" -n "${CHECLUSTER_NAMESPACE}"
- id: build
exec:
label: "5. Build"
component: builder
workingDir: ${PROJECTS_ROOT}/devspaces/dependencies/che-plugin-registry
commandLine: |
set -o xtrace;
rm -rf output;
mkdir output;
BUILDER=podman SKIP_TEST=true SKIP_FORMAT=true SKIP_LINT=true NODE_BUILD_OPTIONS="-max-old-space-size=1024" ./build.sh
# workaround for https://github.com/eclipse-che/che/issues/22914
- id: cleanup-local-files
exec:
label: "Cleanup local files"
component: builder
commandLine: rm -rf .local/share/ /home/user/.local/share/containers/storage && /entrypoint.sh
events:
postStart:
- "cleanup-local-files"
1
https://gitee.com/mirrors/codeready-workspaces.git
git@gitee.com:mirrors/codeready-workspaces.git
mirrors
codeready-workspaces
codeready-workspaces
devspaces-3-rhel-8

搜索帮助