Skip to content

Commit

Permalink
Create a workspace for use with Eclipse Che/OpenShift Dev Spaces (#1145)
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Sauer <[email protected]>
  • Loading branch information
etsauer authored Jul 25, 2024
1 parent f438a16 commit 5883f9b
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ dmypy.json

# Ignore vscode meta
*.code-workspace
!pelorus.code-workspace
.vscode/

### JetBrains template
Expand Down
39 changes: 39 additions & 0 deletions devfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
schemaVersion: 2.2.0
metadata:
name: pelorus
components:
- name: dev-tools
container:
image: quay.io/redhat-cop/devspaces-python-311:pr-d076f5c2cc3a41caa54a9b964ee54f425f09f350
memoryLimit: 6Gi
mountSources: true
env:
- name: SHELL
value: "/bin/zsh"
- name: VSCODE_DEFAULT_WORKSPACE
value: "/projects/pelorus/pelorus.code-workspace"
- name: GOPATH
value: /projects/home/go
- volume:
size: 10Gi
name: projects
- name: oc-cli
container:
args:
- '-c'
- >-
mkdir -p /projects/bin && cp /usr/bin/oc /projects/bin/oc && cp /usr/bin/kubectl /projects/bin/kubectl
command:
- /bin/bash
image: image-registry.openshift-image-registry.svc:5000/openshift/cli:latest
sourceMapping: /projects
mountSources: true
memoryLimit: 256M
commands:
- apply:
component: oc-cli
label: Copy OpenShift CLI
id: cp-oc-cli
events:
preStart:
- cp-oc-cli
28 changes: 28 additions & 0 deletions pelorus.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"folders": [
{
"name": "pelorus",
"path": "/projects/pelorus"
},
{
"path": "../pelorus-api"
}
],
"extensions": {
"recommendations": [
"redhat.vscode-yaml",
"mhutchie.git-graph",
"eamodio.gitlens",
"streetsidesoftware.code-spell-checker",
"johnpapa.winteriscoming",
"cnshenj.vscode-task-manager"
]
},
"settings": {
"workbench.colorTheme": "Winter is Coming (Dark Blue)",
"workbench.preferredDarkColorTheme": "Winter is Coming (Dark Blue)",
"workbench.preferredLightColorTheme": "Winter is Coming (Light)",
"editor.wordWrap": "on",
"files.autoSave": "off"
}
}

0 comments on commit 5883f9b

Please sign in to comment.