Skip to content

Commit

Permalink
[jetbrains] Add PyCharm IDE
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliusludmann authored and roboquat committed Dec 2, 2021
1 parent 6f0f32e commit 64539bf
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 0 deletions.
7 changes: 7 additions & 0 deletions chart/templates/server-ide-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ options:
label: "EAP"
notes: ["While in beta, when you open a workspace with GoLand you will need to use the password “gitpod”."]
image: {{ (include "gitpod.comp.imageFull" (dict "root" $ "gp" $gp "comp" $gp.components.workspace.desktopIdeImages.goland)) }}
pycharm:
orderKey: "06"
title: "PyCharm"
type: "desktop"
logo: "https://upload.wikimedia.org/wikipedia/commons/1/1d/PyCharm_Icon.svg"
notes: ["While in beta, when you open a workspace with PyCharm you will need to use the password “gitpod”."]
image: {{ (include "gitpod.comp.imageFull" (dict "root" $ "gp" $gp "comp" $gp.components.workspace.desktopIdeImages.pycharm)) }}

defaultIde: "code"
defaultDesktopIde: "code-desktop"
Expand Down
2 changes: 2 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,8 @@ components:
imageName: "ide/intellij"
goland:
imageName: "ide/goland"
pycharm:
imageName: "ide/pycharm"
supervisor:
imageName: "supervisor"
dockerUp:
Expand Down
1 change: 1 addition & 0 deletions components/BUILD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ packages:
- components/ide/code-desktop:docker-insiders
- components/ide/jetbrains/image:intellij
- components/ide/jetbrains/image:goland
- components/ide/jetbrains/image:pycharm
- components/ide/theia:docker
- components/image-builder:docker
- components/image-builder-mk3:docker
Expand Down
22 changes: 22 additions & 0 deletions components/ide/jetbrains/image/BUILD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ packages:
deps:
- :intellij
- :goland
- :pycharm
- name: intellij
type: docker
srcs:
Expand Down Expand Up @@ -48,3 +49,24 @@ packages:
image:
- ${imageRepoBase}/ide/goland:${version}
- ${imageRepoBase}/ide/goland:commit-${__git_commit}
- name: pycharm
type: docker
srcs:
- "startup.sh"
- "supervisor-ide-config_pycharm.json"
- "status/go.mod"
- "status/main.go"
deps:
- components/ide/jetbrains/backend-plugin:plugin
argdeps:
- imageRepoBase
config:
dockerfile: leeway.Dockerfile
metadata:
helm-component: workspace.desktopIdeImages.pycharm
buildArgs:
JETBRAINS_BACKEND_URL: "https://download.jetbrains.com/python/pycharm-professional-2021.3.tar.gz"
SUPERVISOR_IDE_CONFIG: supervisor-ide-config_pycharm.json
image:
- ${imageRepoBase}/ide/pycharm:${version}
- ${imageRepoBase}/ide/pycharm:commit-${__git_commit}
11 changes: 11 additions & 0 deletions components/ide/jetbrains/image/supervisor-ide-config_pycharm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"entrypoint": "/ide-desktop/startup.sh",
"entrypointArgs": [ "Open in PyCharm" ],
"readinessProbe": {
"type": "http",
"http": {
"port": 24000,
"path": "/status"
}
}
}
8 changes: 8 additions & 0 deletions installer/pkg/components/server/ide-configmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ func ideconfigmap(ctx *common.RenderContext) ([]runtime.Object, error) {
Notes: []string{"While in beta, when you open a workspace with GoLand you will need to use the password “gitpod”."},
Image: common.ImageName(ctx.Config.Repository, workspace.GoLandDesktopIdeImage, ctx.VersionManifest.Components.Workspace.DesktopIdeImages.GoLandImage.Version),
},
"pycharm": {
OrderKey: pointer.String("06"),
Title: "PyCharm",
Type: typeDesktop,
Logo: "https://upload.wikimedia.org/wikipedia/commons/1/1d/PyCharm_Icon.svg", // TODO(clu): Serve logo from our own components instead of using this wikimedia URL.
Notes: []string{"While in beta, when you open a workspace with PyCharm you will need to use the password “gitpod”."},
Image: common.ImageName(ctx.Config.Repository, workspace.PyCharmDesktopIdeImage, ctx.VersionManifest.Components.Workspace.DesktopIdeImages.GoLandImage.Version),
},
},
DefaultIDE: "code",
DefaultDesktopIDE: "code-desktop",
Expand Down
1 change: 1 addition & 0 deletions installer/pkg/components/workspace/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const (
CodeDesktopInsidersIDEImage = "ide/code-desktop-insiders"
IntelliJDesktopIDEImage = "ide/intellij"
GoLandDesktopIdeImage = "ide/goland"
PyCharmDesktopIdeImage = "ide/pycharm"
DockerUpImage = "docker-up"
SupervisorImage = "supervisor"
SupervisorPort = 22999
Expand Down
1 change: 1 addition & 0 deletions installer/pkg/config/versions/versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ type Components struct {
CodeDesktopImageInsiders Versioned `json:"codeDesktopInsiders"`
IntelliJImage Versioned `json:"intellij"`
GoLandImage Versioned `json:"goland"`
PyCharmImage Versioned `json:"pycharm"`
} `json:"desktopIdeImages"`
} `json:"workspace"`
WSDaemon struct {
Expand Down

0 comments on commit 64539bf

Please sign in to comment.