Update space images
Follow the https://helpserver.labs.jb.gg/help/space/internal/set-up-a-dev-evnvironment.html#warm-up-dev-environment guide
This commit is contained in:
@@ -1 +0,0 @@
|
||||
FROM registry.jetbrains.team/p/kt/containers/kotlin-build-env:v1
|
||||
@@ -1 +0,0 @@
|
||||
FROM registry.jetbrains.team/p/kt/containers/kotlin-build-env:v1
|
||||
+4
-5
@@ -3,9 +3,7 @@
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
import circlet.pipelines.config.dsl.api.Ide
|
||||
|
||||
fun warmupJob(ide: Ide) {
|
||||
fun warmupJob(ide: Ide, devfilePath: String) {
|
||||
job("Kotlin project warmup for ${ide.name}") {
|
||||
startOn {
|
||||
schedule { cron("0 2 * * *") } // 5 am GMT +3
|
||||
@@ -13,6 +11,7 @@ fun warmupJob(ide: Ide) {
|
||||
|
||||
warmup(ide = ide) {
|
||||
scriptLocation = "./dev-env-warmup.sh"
|
||||
devfile = devfilePath
|
||||
}
|
||||
|
||||
git {
|
||||
@@ -24,5 +23,5 @@ fun warmupJob(ide: Ide) {
|
||||
}
|
||||
}
|
||||
|
||||
warmupJob(Ide.Idea)
|
||||
warmupJob(Ide.Fleet)
|
||||
warmupJob(Ide.Idea, ".space/idea.yaml")
|
||||
warmupJob(Ide.Fleet, ".space/fleet.yaml")
|
||||
@@ -0,0 +1,10 @@
|
||||
schemaVersion: 2.2.0
|
||||
attributes:
|
||||
space:
|
||||
instanceType: regular
|
||||
editor:
|
||||
type: Fleet
|
||||
components:
|
||||
- name: kotlin-build-env
|
||||
container:
|
||||
image: registry.jetbrains.team/p/kt/containers/kotlin-build-env:v1
|
||||
@@ -0,0 +1,10 @@
|
||||
schemaVersion: 2.2.0
|
||||
attributes:
|
||||
space:
|
||||
instanceType: regular
|
||||
editor:
|
||||
type: Idea
|
||||
components:
|
||||
- name: kotlin-build-env
|
||||
container:
|
||||
image: registry.jetbrains.team/p/kt/containers/kotlin-build-env:v1
|
||||
Reference in New Issue
Block a user