Skip to content

Commit

Permalink
[jb] split backend and plugin images
Browse files Browse the repository at this point in the history
  • Loading branch information
akosyakov committed Aug 26, 2022
1 parent ed1458a commit 87c9dc1
Show file tree
Hide file tree
Showing 20 changed files with 266 additions and 80 deletions.
2 changes: 2 additions & 0 deletions components/BUILD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ packages:
- components/ide/code-desktop:docker
- components/ide/code-desktop:docker-insiders
- components/ide/code:docker
- components/ide/jetbrains/backend-plugin:stable
- components/ide/jetbrains/backend-plugin:latest
- components/ide/jetbrains/image:goland
- components/ide/jetbrains/image:goland-latest
- components/ide/jetbrains/image:intellij
Expand Down
36 changes: 36 additions & 0 deletions components/ide/jetbrains/backend-plugin/BUILD.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,40 @@
packages:
- name: docker
type: generic
argdeps:
- version
deps:
- :stable
- :latest
- name: stable
type: docker
deps:
- :plugin-stable
argdeps:
- imageRepoBase
config:
dockerfile: leeway.Dockerfile
metadata:
helm-component: workspace.desktopIdeImages.jbBackendPlugin
buildArgs:
JETBRAINS_BACKEND_QUALIFIER: stable
image:
- ${imageRepoBase}/ide/jb-backend-plugin:commit-${__git_commit}
- name: latest
type: docker
deps:
- :plugin-latest
argdeps:
- imageRepoBase
config:
dockerfile: leeway.Dockerfile
metadata:
helm-component: workspace.desktopIdeImages.jbBackendPluginLatest
buildArgs:
JETBRAINS_BACKEND_QUALIFIER: latest
image:
- ${imageRepoBase}/ide/jb-backend-plugin:${version}
- ${imageRepoBase}/ide/jb-backend-plugin:commit-${__git_commit}-latest
- name: plugin-stable
type: generic
deps:
Expand Down
5 changes: 4 additions & 1 deletion components/ide/jetbrains/backend-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ plugins {
}

group = properties("pluginGroup")
version = properties("version")
var version = properties("version")

val environmentName = properties("environmentName")
if (!environmentName.isNullOrBlank()) {
version += "-" + environmentName
}

project(":") {
kotlin {
Expand Down
9 changes: 9 additions & 0 deletions components/ide/jetbrains/backend-plugin/leeway.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2021 Gitpod GmbH. All rights reserved.
# Licensed under the GNU Affero General Public License (AGPL).
# See License-AGPL.txt in the project root for license information.

# for debugging
# FROM alpine:3.16
FROM scratch
ARG JETBRAINS_BACKEND_QUALIFIER
COPY --chown=33333:33333 components-ide-jetbrains-backend-plugin--plugin-${JETBRAINS_BACKEND_QUALIFIER}/build/gitpod-remote /ide-desktop/backend/plugins/gitpod-remote
8 changes: 0 additions & 8 deletions components/ide/jetbrains/image/BUILD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ packages:
- "startup.sh"
- "supervisor-ide-config_intellij.json"
deps:
- components/ide/jetbrains/backend-plugin:plugin-stable
- components/ide/jetbrains/image/status:app
- components/ide/jetbrains/image/download:intellij
- components/ide/jetbrains/cli:app
Expand All @@ -40,7 +39,6 @@ packages:
- "startup.sh"
- "supervisor-ide-config_intellij.json"
deps:
- components/ide/jetbrains/backend-plugin:plugin-latest
- components/ide/jetbrains/image/status:app
- components/ide/jetbrains/image/download:intellij-latest
- components/ide/jetbrains/cli:app
Expand All @@ -63,7 +61,6 @@ packages:
- "startup.sh"
- "supervisor-ide-config_goland.json"
deps:
- components/ide/jetbrains/backend-plugin:plugin-stable
- components/ide/jetbrains/image/status:app
- components/ide/jetbrains/image/download:goland
- components/ide/jetbrains/cli:app
Expand All @@ -85,7 +82,6 @@ packages:
- "startup.sh"
- "supervisor-ide-config_goland.json"
deps:
- components/ide/jetbrains/backend-plugin:plugin-latest
- components/ide/jetbrains/image/status:app
- components/ide/jetbrains/image/download:goland-latest
- components/ide/jetbrains/cli:app
Expand All @@ -108,7 +104,6 @@ packages:
- "startup.sh"
- "supervisor-ide-config_pycharm.json"
deps:
- components/ide/jetbrains/backend-plugin:plugin-stable
- components/ide/jetbrains/image/status:app
- components/ide/jetbrains/image/download:pycharm
- components/ide/jetbrains/cli:app
Expand All @@ -130,7 +125,6 @@ packages:
- "startup.sh"
- "supervisor-ide-config_pycharm.json"
deps:
- components/ide/jetbrains/backend-plugin:plugin-latest
- components/ide/jetbrains/image/status:app
- components/ide/jetbrains/image/download:pycharm-latest
- components/ide/jetbrains/cli:app
Expand All @@ -153,7 +147,6 @@ packages:
- "startup.sh"
- "supervisor-ide-config_phpstorm.json"
deps:
- components/ide/jetbrains/backend-plugin:plugin-stable
- components/ide/jetbrains/image/status:app
- components/ide/jetbrains/image/download:phpstorm
- components/ide/jetbrains/cli:app
Expand All @@ -175,7 +168,6 @@ packages:
- "startup.sh"
- "supervisor-ide-config_phpstorm.json"
deps:
- components/ide/jetbrains/backend-plugin:plugin-latest
- components/ide/jetbrains/image/status:app
- components/ide/jetbrains/image/download:phpstorm-latest
- components/ide/jetbrains/cli:app
Expand Down
1 change: 0 additions & 1 deletion components/ide/jetbrains/image/leeway.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ ARG SUPERVISOR_IDE_CONFIG
COPY --chown=33333:33333 ${SUPERVISOR_IDE_CONFIG} /ide-desktop/supervisor-ide-config.json
COPY --chown=33333:33333 startup.sh /ide-desktop/
COPY --chown=33333:33333 components-ide-jetbrains-image-download--${JETBRAINS_DOWNLOAD_QUALIFIER}/backend /ide-desktop/backend
COPY --chown=33333:33333 components-ide-jetbrains-backend-plugin--plugin-${JETBRAINS_BACKEND_QUALIFIER}/build/gitpod-remote /ide-desktop/backend/plugins/gitpod-remote
COPY --chown=33333:33333 components-ide-jetbrains-image-status--app/status /ide-desktop

ARG JETBRAINS_BACKEND_QUALIFIER
Expand Down
22 changes: 18 additions & 4 deletions install/installer/cmd/testdata/render/aws-setup/output.golden
Original file line number Diff line number Diff line change
Expand Up @@ -1445,6 +1445,12 @@ data:
},
"phpstormLatest": {
"version": "test"
},
"jbBackendPlugin": {
"version": "test"
},
"jbBackendPluginLatest": {
"version": "test"
}
}
},
Expand Down Expand Up @@ -3546,31 +3552,39 @@ data:
"type": "desktop",
"logo": "https://ide.gitpod.example.com/image/ide-logo/golandLogo.svg",
"image": "eu.gcr.io/gitpod-core-dev/build/ide/goland:test",
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/goland:latest"
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/goland:latest",
"pluginImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:test",
"pluginLatestImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:latest"
},
"intellij": {
"orderKey": "04",
"title": "IntelliJ IDEA",
"type": "desktop",
"logo": "https://ide.gitpod.example.com/image/ide-logo/intellijIdeaLogo.svg",
"image": "eu.gcr.io/gitpod-core-dev/build/ide/intellij:test",
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/intellij:latest"
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/intellij:latest",
"pluginImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:test",
"pluginLatestImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:latest"
},
"phpstorm": {
"orderKey": "07",
"title": "PhpStorm",
"type": "desktop",
"logo": "https://ide.gitpod.example.com/image/ide-logo/phpstormLogo.svg",
"image": "eu.gcr.io/gitpod-core-dev/build/ide/phpstorm:test",
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/phpstorm:latest"
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/phpstorm:latest",
"pluginImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:test",
"pluginLatestImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:latest"
},
"pycharm": {
"orderKey": "06",
"title": "PyCharm",
"type": "desktop",
"logo": "https://ide.gitpod.example.com/image/ide-logo/pycharmLogo.svg",
"image": "eu.gcr.io/gitpod-core-dev/build/ide/pycharm:test",
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/pycharm:latest"
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/pycharm:latest",
"pluginImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:test",
"pluginLatestImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:latest"
}
},
"defaultIde": "code",
Expand Down
22 changes: 18 additions & 4 deletions install/installer/cmd/testdata/render/azure-setup/output.golden
Original file line number Diff line number Diff line change
Expand Up @@ -1403,6 +1403,12 @@ data:
},
"phpstormLatest": {
"version": "test"
},
"jbBackendPlugin": {
"version": "test"
},
"jbBackendPluginLatest": {
"version": "test"
}
}
},
Expand Down Expand Up @@ -3410,31 +3416,39 @@ data:
"type": "desktop",
"logo": "https://ide.gitpod.example.com/image/ide-logo/golandLogo.svg",
"image": "eu.gcr.io/gitpod-core-dev/build/ide/goland:test",
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/goland:latest"
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/goland:latest",
"pluginImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:test",
"pluginLatestImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:latest"
},
"intellij": {
"orderKey": "04",
"title": "IntelliJ IDEA",
"type": "desktop",
"logo": "https://ide.gitpod.example.com/image/ide-logo/intellijIdeaLogo.svg",
"image": "eu.gcr.io/gitpod-core-dev/build/ide/intellij:test",
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/intellij:latest"
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/intellij:latest",
"pluginImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:test",
"pluginLatestImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:latest"
},
"phpstorm": {
"orderKey": "07",
"title": "PhpStorm",
"type": "desktop",
"logo": "https://ide.gitpod.example.com/image/ide-logo/phpstormLogo.svg",
"image": "eu.gcr.io/gitpod-core-dev/build/ide/phpstorm:test",
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/phpstorm:latest"
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/phpstorm:latest",
"pluginImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:test",
"pluginLatestImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:latest"
},
"pycharm": {
"orderKey": "06",
"title": "PyCharm",
"type": "desktop",
"logo": "https://ide.gitpod.example.com/image/ide-logo/pycharmLogo.svg",
"image": "eu.gcr.io/gitpod-core-dev/build/ide/pycharm:test",
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/pycharm:latest"
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/pycharm:latest",
"pluginImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:test",
"pluginLatestImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:latest"
}
},
"defaultIde": "code",
Expand Down
22 changes: 18 additions & 4 deletions install/installer/cmd/testdata/render/customization/output.golden
Original file line number Diff line number Diff line change
Expand Up @@ -1655,6 +1655,12 @@ data:
},
"phpstormLatest": {
"version": "test"
},
"jbBackendPlugin": {
"version": "test"
},
"jbBackendPluginLatest": {
"version": "test"
}
}
},
Expand Down Expand Up @@ -4322,31 +4328,39 @@ data:
"type": "desktop",
"logo": "https://ide.gitpod.example.com/image/ide-logo/golandLogo.svg",
"image": "eu.gcr.io/gitpod-core-dev/build/ide/goland:test",
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/goland:latest"
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/goland:latest",
"pluginImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:test",
"pluginLatestImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:latest"
},
"intellij": {
"orderKey": "04",
"title": "IntelliJ IDEA",
"type": "desktop",
"logo": "https://ide.gitpod.example.com/image/ide-logo/intellijIdeaLogo.svg",
"image": "eu.gcr.io/gitpod-core-dev/build/ide/intellij:test",
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/intellij:latest"
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/intellij:latest",
"pluginImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:test",
"pluginLatestImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:latest"
},
"phpstorm": {
"orderKey": "07",
"title": "PhpStorm",
"type": "desktop",
"logo": "https://ide.gitpod.example.com/image/ide-logo/phpstormLogo.svg",
"image": "eu.gcr.io/gitpod-core-dev/build/ide/phpstorm:test",
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/phpstorm:latest"
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/phpstorm:latest",
"pluginImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:test",
"pluginLatestImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:latest"
},
"pycharm": {
"orderKey": "06",
"title": "PyCharm",
"type": "desktop",
"logo": "https://ide.gitpod.example.com/image/ide-logo/pycharmLogo.svg",
"image": "eu.gcr.io/gitpod-core-dev/build/ide/pycharm:test",
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/pycharm:latest"
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/pycharm:latest",
"pluginImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:test",
"pluginLatestImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:latest"
}
},
"defaultIde": "code",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1450,6 +1450,12 @@ data:
},
"phpstormLatest": {
"version": "test"
},
"jbBackendPlugin": {
"version": "test"
},
"jbBackendPluginLatest": {
"version": "test"
}
}
},
Expand Down Expand Up @@ -3597,31 +3603,39 @@ data:
"type": "desktop",
"logo": "https://ide.gitpod.example.com/image/ide-logo/golandLogo.svg",
"image": "eu.gcr.io/gitpod-core-dev/build/ide/goland:test",
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/goland:latest"
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/goland:latest",
"pluginImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:test",
"pluginLatestImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:latest"
},
"intellij": {
"orderKey": "04",
"title": "IntelliJ IDEA",
"type": "desktop",
"logo": "https://ide.gitpod.example.com/image/ide-logo/intellijIdeaLogo.svg",
"image": "eu.gcr.io/gitpod-core-dev/build/ide/intellij:test",
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/intellij:latest"
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/intellij:latest",
"pluginImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:test",
"pluginLatestImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:latest"
},
"phpstorm": {
"orderKey": "07",
"title": "PhpStorm",
"type": "desktop",
"logo": "https://ide.gitpod.example.com/image/ide-logo/phpstormLogo.svg",
"image": "eu.gcr.io/gitpod-core-dev/build/ide/phpstorm:test",
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/phpstorm:latest"
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/phpstorm:latest",
"pluginImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:test",
"pluginLatestImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:latest"
},
"pycharm": {
"orderKey": "06",
"title": "PyCharm",
"type": "desktop",
"logo": "https://ide.gitpod.example.com/image/ide-logo/pycharmLogo.svg",
"image": "eu.gcr.io/gitpod-core-dev/build/ide/pycharm:test",
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/pycharm:latest"
"latestImage": "eu.gcr.io/gitpod-core-dev/build/ide/pycharm:latest",
"pluginImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:test",
"pluginLatestImage": "eu.gcr.io/gitpod-core-dev/build/ide/jb-backend-plugin:latest"
}
},
"defaultIde": "code",
Expand Down
Loading

0 comments on commit 87c9dc1

Please sign in to comment.