Skip to content

Commit

Permalink
ci: [sync] Update from eclipse-che/che-dashboard @ 32c7
Browse files Browse the repository at this point in the history
Signed-off-by: devstudio-release <[email protected]>
  • Loading branch information
devstudio-release committed Aug 12, 2024
1 parent fca486c commit 5ace4a2
Show file tree
Hide file tree
Showing 23 changed files with 739 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Red Hat OpenShift Dev Spaces ",
"name": "Red Hat OpenShift Dev Spaces",
"productVersion": "3.16 @ 945cd #2 :: Eclipse Che Dashboard 7.90.0 @ 32c7",
"productVersion": "3.16 @ fca48 #6 :: Eclipse Che Dashboard 7.90.0 @ 32c7",
"logoFile": "che-logo.svg",
"logoTextFile": "che-logo-text.svg",
"links": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
schemaVersion: 2.2.2
metadata:
name: ansible-demo
components:
- name: tooling-container
container:
image: ghcr.io/ansible/ansible-workspace-env-reference@sha256:03d7f0fe6caaae62ff2266906b63d67ebd9cf6e4a056c7c0a0c1320e6cfbebce
memoryRequest: 256M
memoryLimit: 6Gi
cpuRequest: 250m
cpuLimit: 2000m
args: ['tail', '-f', '/dev/null']
env:
- name: 'ANSIBLE_COLLECTIONS_PATH'
value: '~/.ansible/collections:/usr/share/ansible/collections:/projects/ansible-devspaces-demo/collections'
commands:
- id: molecule-create
exec:
label: "1.Molecule: start a test pod for the automation"
commandLine: 'source $HOME/.bashrc && molecule create'
workingDir: ${PROJECTS_ROOT}/ansible-devspaces-demo/collections/ansible_collections/sample_namespace/sample_collection/extensions
group:
kind: run
isDefault: true
component: tooling-container
- id: molecule-list
exec:
label: "2.Molecule: view the test instance that was created"
commandLine: 'source $HOME/.bashrc && molecule list'
workingDir: ${PROJECTS_ROOT}/ansible-devspaces-demo/collections/ansible_collections/sample_namespace/sample_collection/extensions
group:
kind: run
isDefault: true
component: tooling-container
- id: molecule-converge
exec:
label: "3.Molecule: apply the role to the pod"
commandLine: 'source $HOME/.bashrc && molecule converge'
workingDir: ${PROJECTS_ROOT}/ansible-devspaces-demo/collections/ansible_collections/sample_namespace/sample_collection/extensions
group:
kind: run
isDefault: true
component: tooling-container
- id: molecule-verify
exec:
label: "4.Molecule: run the verification against the test pod"
commandLine: 'source $HOME/.bashrc && molecule verify'
workingDir: ${PROJECTS_ROOT}/ansible-devspaces-demo/collections/ansible_collections/sample_namespace/sample_collection/extensions
group:
kind: run
isDefault: true
component: tooling-container
- id: molecule-destroy
exec:
label: "5.Molecule: reset the test pod back to a fresh instance"
commandLine: 'source $HOME/.bashrc && molecule destroy'
workingDir: ${PROJECTS_ROOT}/ansible-devspaces-demo/collections/ansible_collections/sample_namespace/sample_collection/extensions
group:
kind: run
isDefault: true
component: tooling-container
- id: molecule-test
exec:
label: "6.Molecule: run the full molecule test"
commandLine: 'source $HOME/.bashrc && molecule test'
workingDir: ${PROJECTS_ROOT}/ansible-devspaces-demo/collections/ansible_collections/sample_namespace/sample_collection/extensions
group:
kind: run
isDefault: true
component: tooling-container
- id: ansible-navigator
exec:
label: "Ansible-Navigator: Start ansible-navigator"
commandLine: |
if [ ! -d "$HOME/.cache/ansible-navigator" ]; then
mkdir -p "$HOME/.cache/ansible-navigator"
fi
cp /usr/local/lib/python3.11/site-packages/ansible_navigator/data/catalog_collections.py $HOME/.cache/ansible-navigator
ansible-navigator --ee false
workingDir: ${PROJECTS_ROOT}/ansible-devspaces-demo
component: tooling-container
projects:
- name: ansible-devspaces-demo
zip:
location: CHE_DASHBOARD_INTERNAL_URL/dashboard/api/airgap-sample/project/download?id=ansible
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
schemaVersion: 2.2.2
metadata:
name: cpp
components:
- name: tools
container:
image: registry.redhat.io/devspaces/udi-rhel8:3.16
memoryLimit: '2Gi'
memoryRequest: '1Gi'
cpuLimit: '1'
cpuRequest: '0.5'
mountSources: true
projects:
- name: c-plus-plus
zip:
location: CHE_DASHBOARD_INTERNAL_URL/dashboard/api/airgap-sample/project/download?id=cpp
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
schemaVersion: 2.2.2
metadata:
name: dotnet
components:
- name: tools
container:
image: registry.redhat.io/devspaces/udi-rhel8:3.16
memoryLimit: '2Gi'
memoryRequest: '1Gi'
cpuLimit: '1'
cpuRequest: '0.5'
mountSources: true
endpoints:
- exposure: public
name: 'hello-endpoint'
protocol: https
targetPort: 5032
volumeMounts:
- name: nuget
path: /home/user/.nuget
- name: nuget
volume:
size: 1G
commands:
- id: 1-update-dependencies
exec:
label: 1.Update dependencies
component: tools
workingDir: ${PROJECTS_ROOT}/dotnet-web-simple
commandLine: "dotnet restore"
group:
kind: build
- id: 2-build
exec:
label: 2.Build
component: tools
workingDir: ${PROJECTS_ROOT}/dotnet-web-simple
commandLine: "dotnet build"
group:
kind: build
- id: 3-run
exec:
label: 3.Run
component: tools
workingDir: ${PROJECTS_ROOT}/dotnet-web-simple
commandLine: "dotnet run"
group:
kind: run
projects:
- name: dotnet-web-simple
zip:
location: CHE_DASHBOARD_INTERNAL_URL/dashboard/api/airgap-sample/project/download?id=dotnet
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
schemaVersion: 2.2.2
metadata:
name: golang
components:
- name: tools
container:
image: registry.redhat.io/devspaces/udi-rhel8:3.16
memoryLimit: '2Gi'
memoryRequest: '1Gi'
cpuLimit: '1'
cpuRequest: '0.5'
mountSources: true
env:
- name: GOCACHE
value: /tmp/.cache
endpoints:
- exposure: public
name: 'health-check'
protocol: https
targetPort: 8080
commands:
- id: build
exec:
label: 1.Build
component: tools
workingDir: ${PROJECTS_ROOT}/golang-health-check
commandLine: go build
group:
kind: build
- id: run
exec:
label: 2.Run
component: tools
workingDir: ${PROJECTS_ROOT}/golang-health-check
commandLine: ./golang-health-check
group:
kind: run
projects:
- name: golang-health-check
zip:
location: CHE_DASHBOARD_INTERNAL_URL/dashboard/api/airgap-sample/project/download?id=go
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
schemaVersion: 2.2.2
metadata:
name: java-lombok
components:
- name: tools
container:
image: registry.redhat.io/devspaces/udi-rhel8:3.16
memoryLimit: '3Gi'
memoryRequest: '2Gi'
cpuLimit: '4'
cpuRequest: '1'
endpoints:
- exposure: none
name: debug
protocol: tcp
targetPort: 5005
volumeMounts:
- name: m2
path: /home/user/.m2
- name: m2
volume:
size: 1G
commands:
- id: build
exec:
component: tools
workingDir: ${PROJECTS_ROOT}/lombok-project-sample
commandLine: mvn clean install
group:
kind: build
isDefault: true
projects:
- name: lombok-project-sample
zip:
location: CHE_DASHBOARD_INTERNAL_URL/dashboard/api/airgap-sample/project/download?id=java-lombok
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
schemaVersion: 2.2.2
metadata:
name: nodejs-mongodb
components:
- name: nodejs
container:
image: registry.redhat.io/devspaces/udi-rhel8:3.16
env:
- name: SECRET
value: 220fd770-c028-480d-8f95-f84353c7d55a
- name: NODE_ENV
value: production
endpoints:
- exposure: public
name: nodejs
targetPort: 8080
protocol: https
memoryLimit: '1Gi'
memoryRequest: '512Mi'
cpuLimit: '2'
cpuRequest: '1'
mountSources: true
volumeMounts:
- name: npm
path: /home/user/.npm
- name: npm
volume:
size: 1G
- name: mongo
container:
image: registry.redhat.io/rhscl/mongodb-36-rhel7:1-50
env:
- name: MONGODB_USER
value: user
- name: MONGODB_PASSWORD
value: password
- name: MONGODB_DATABASE
value: guestbook
- name: MONGODB_ADMIN_PASSWORD
value: password
endpoints:
- name: mongodb
exposure: internal
targetPort: 27017
memoryLimit: '512Mi'
memoryRequest: '256Mi'
cpuLimit: '1'
cpuRequest: '0.25'
mountSources: false
volumeMounts:
- name: mongo-storage
path: /var/lib/mongodb/data
- name: mongo-storage
volume:
size: 1G
commands:
- id: 1-run
exec:
label: "Run the application"
component: nodejs
workingDir: ${PROJECTS_ROOT}/nodejs-mongodb-sample
commandLine: "npm install && node --inspect=9229 app.js"
group:
kind: run
projects:
- name: nodejs-mongodb-sample
zip:
location: CHE_DASHBOARD_INTERNAL_URL/dashboard/api/airgap-sample/project/download?id=nodejs-mongodb
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
schemaVersion: 2.2.2
metadata:
name: php-hello-world
components:
- name: tools
container:
image: registry.redhat.io/devspaces/udi-rhel8:3.16
memoryLimit: '2Gi'
memoryRequest: '1Gi'
cpuLimit: '1'
cpuRequest: '0.5'
commands:
- id: run
exec:
label: "Run the application"
component: tools
workingDir: ${PROJECTS_ROOT}/php-hello-world
commandLine: php hello-world.php
group:
kind: run
projects:
- name: php-hello-world
zip:
location: CHE_DASHBOARD_INTERNAL_URL/dashboard/api/airgap-sample/project/download?id=php
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
schemaVersion: 2.2.2
metadata:
name: python-hello-world
components:
- name: python
container:
image: registry.redhat.io/devspaces/udi-rhel8:3.16
volumeMounts:
- name: venv
path: /home/user/.venv
memoryLimit: '2Gi'
memoryRequest: '1Gi'
cpuLimit: '2'
cpuRequest: '1'
mountSources: true
- name: venv
volume:
size: 1G
commands:
- id: run
exec:
label: "Run the application"
component: python
workingDir: ${PROJECTS_ROOT}/python-hello-world
commandLine: python -m venv .venv && . .venv/bin/activate && python hello-world.py
group:
kind: run
projects:
- name: python-hello-world
zip:
location: CHE_DASHBOARD_INTERNAL_URL/dashboard/api/airgap-sample/project/download?id=python
Binary file not shown.
Loading

0 comments on commit 5ace4a2

Please sign in to comment.