File tree 7 files changed +484
-68
lines changed
components/ide/jetbrains/image
7 files changed +484
-68
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,9 @@ packages:
13
13
srcs :
14
14
- " startup.sh"
15
15
- " supervisor-ide-config_intellij.json"
16
- - " status/go.mod"
17
- - " status/main.go"
18
16
deps :
19
17
- components/ide/jetbrains/backend-plugin:plugin
18
+ - components/ide/jetbrains/image/status:app
20
19
argdeps :
21
20
- imageRepoBase
22
21
config :
@@ -34,10 +33,9 @@ packages:
34
33
srcs :
35
34
- " startup.sh"
36
35
- " supervisor-ide-config_goland.json"
37
- - " status/go.mod"
38
- - " status/main.go"
39
36
deps :
40
37
- components/ide/jetbrains/backend-plugin:plugin
38
+ - components/ide/jetbrains/image/status:app
41
39
argdeps :
42
40
- imageRepoBase
43
41
config :
@@ -55,10 +53,9 @@ packages:
55
53
srcs :
56
54
- " startup.sh"
57
55
- " supervisor-ide-config_pycharm.json"
58
- - " status/go.mod"
59
- - " status/main.go"
60
56
deps :
61
57
- components/ide/jetbrains/backend-plugin:plugin
58
+ - components/ide/jetbrains/image/status:app
62
59
argdeps :
63
60
- imageRepoBase
64
61
config :
@@ -76,10 +73,9 @@ packages:
76
73
srcs :
77
74
- " startup.sh"
78
75
- " supervisor-ide-config_phpstorm.json"
79
- - " status/go.mod"
80
- - " status/main.go"
81
76
deps :
82
77
- components/ide/jetbrains/backend-plugin:plugin
78
+ - components/ide/jetbrains/image/status:app
83
79
argdeps :
84
80
- imageRepoBase
85
81
config :
Original file line number Diff line number Diff line change 2
2
# Licensed under the GNU Affero General Public License (AGPL).
3
3
# See License-AGPL.txt in the project root for license information.
4
4
5
- FROM golang:1.17 AS build
6
- WORKDIR /app
7
- COPY status/* /app/
8
- RUN go build -o status
9
-
10
5
FROM alpine:3.15 as download
11
6
ARG JETBRAINS_BACKEND_URL
12
7
WORKDIR /workdir
@@ -19,5 +14,5 @@ FROM scratch
19
14
ARG SUPERVISOR_IDE_CONFIG
20
15
COPY --chown=33333:33333 ${SUPERVISOR_IDE_CONFIG} /ide-desktop/supervisor-ide-config.json
21
16
COPY --chown=33333:33333 startup.sh /ide-desktop/
22
- COPY --chown=33333:33333 --from=build /app/status /ide-desktop/
23
17
COPY --chown=33333:33333 --from=download /workdir/ /ide-desktop/backend/
18
+ COPY --chown=33333:33333 components-ide-jetbrains-image-status--app/status /ide-desktop/
Original file line number Diff line number Diff line change @@ -9,16 +9,7 @@ set -euo pipefail
9
9
trap " jobs -p | xargs -r kill" SIGINT SIGTERM EXIT
10
10
11
11
/ide-desktop/status " $1 " " $2 " &
12
-
13
- echo " Desktop IDE: Waiting for the content initializer ..."
14
- until curl -sS " $SUPERVISOR_ADDR " /_supervisor/v1/status/content/wait/true | grep ' "available":true' > /dev/null; do
15
- sleep 1
16
- done
17
- echo " Desktop IDE: Content available."
18
-
19
- export CWM_NON_INTERACTIVE=1
20
- export CWM_HOST_PASSWORD=gitpod
21
12
export CWM_HOST_STATUS_OVER_HTTP_TOKEN=gitpod
22
- /ide-desktop/backend/bin/remote-dev-server.sh cwmHost " $GITPOD_REPO_ROOT " > >( sed ' s/^/JetBrains remote-dev-server.sh (out): /' ) 2> >( sed ' s/^/JetBrains remote-dev-server.sh (err): /' >&2 )
13
+ /ide-desktop/backend/bin/remote-dev-server.sh run " $GITPOD_REPO_ROOT " > >( sed ' s/^/JetBrains remote-dev-server.sh (out): /' ) 2> >( sed ' s/^/JetBrains remote-dev-server.sh (err): /' >&2 )
23
14
24
- echo " Desktop IDE startup script exited"
15
+ echo " Desktop IDE startup script exited"
Original file line number Diff line number Diff line change
1
+ packages :
2
+ - name : app
3
+ type : go
4
+ srcs :
5
+ - " **/*.go"
6
+ - " go.mod"
7
+ - " go.sum"
8
+ env :
9
+ - CGO_ENABLED=0
10
+ - GOOS=linux
11
+ deps :
12
+ - components/supervisor-api/go:lib
13
+ config :
14
+ packaging : app
Original file line number Diff line number Diff line change 1
1
module github.com/gitpod-io/gitpod/jetbrains/status
2
2
3
3
go 1.17
4
+
5
+
6
+ require google.golang.org/grpc v1.42.0
7
+
8
+ require github.com/grpc-ecosystem/grpc-gateway/v2 v2.5.0 // indirect
9
+
10
+ require (
11
+ github.com/gitpod-io/gitpod/supervisor/api v0.0.0-00010101000000-000000000000
12
+ github.com/golang/protobuf v1.5.2 // indirect
13
+ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 // indirect
14
+ golang.org/x/sys v0.0.0-20210510120138-977fb7262007 // indirect
15
+ golang.org/x/text v0.3.5 // indirect
16
+ golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
17
+ google.golang.org/genproto v0.0.0-20210617175327-b9e0b3197ced // indirect
18
+ google.golang.org/protobuf v1.27.1 // indirect
19
+ )
20
+
21
+ replace github.com/gitpod-io/gitpod/supervisor/api => ../../../../supervisor-api/go // leeway
You can’t perform that action at this time.
0 commit comments