Skip to content

Commit

Permalink
Add sample using pod spec overrides
Browse files Browse the repository at this point in the history
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
  • Loading branch information
amisevsk committed Jun 16, 2022
1 parent 4c08ed1 commit 163d8cd
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions samples/pod-spec-overrides.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
kind: DevWorkspace
apiVersion: workspace.devfile.io/v1alpha2
metadata:
name: theia-next
spec:
started: true
pods:
metadata:
annotations:
io.openshift.userns: "true"
io.kubernetes.cri-o.userns-mode: "auto:size=65536;map-to-root=true" # <-- user namespace
openshift.io/scc: container-build
spec:
runtimeClassName: kata
schedulerName: stork
template:
projects:
- name: web-nodejs-sample
git:
remotes:
origin: "https://github.com/che-samples/web-nodejs-sample.git"
components:
- name: theia
plugin:
uri: https://che-plugin-registry-main.surge.sh/v3/plugins/eclipse/che-theia/next/devfile.yaml
components:
- name: theia-ide
container:
env:
- name: THEIA_HOST
value: 0.0.0.0
commands:
- id: say-hello
exec:
component: theia-ide
commandLine: echo "Hello from $(pwd)"
workingDir: ${PROJECTS_ROOT}/project/app

0 comments on commit 163d8cd

Please sign in to comment.