Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"golang.go"
]
}
12 changes: 12 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@
"request": "launch",
"name": "Bash-Debug (simplest configuration)",
"program": "${file}"
},
{
"name": "Remote debug che-machine-exec",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}",
"cwd": "${workspaceFolder}",
"args": [
"--url", "0.0.0.0:3130",
"--static", "${workspaceFolder}/cloud-shell"
]
}
]
}
8 changes: 4 additions & 4 deletions build/dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2022 Red Hat, Inc.
# Copyright (c) 2012-2026 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
Expand Down Expand Up @@ -44,11 +44,11 @@ COPY . .
ENV CGO_ENABLED=1
RUN GOOS=linux go build -mod=vendor -a -ldflags '-w -s' -a -installsuffix cgo -o /go/bin/che-machine-exec .

# NOTE: could not compile with node:18-alpine, so for now stick with node:16-alpine
FROM docker.io/node:16-alpine as cloud_shell_builder
FROM docker.io/node:22-alpine as cloud_shell_builder
RUN corepack enable && corepack prepare yarn@4.0.0 --activate
COPY --from=go_builder /che-machine-exec/cloud-shell cloud-shell-src
WORKDIR cloud-shell-src
RUN yarn && \
RUN yarn install --immutable && \
yarn run build && \
mkdir /app && \
cp -rf index.html dist node_modules /app
Expand Down
7 changes: 7 additions & 0 deletions cloud-shell/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
dist
node_modules

.yarn/*
!.yarn/releases
!.yarn/plugins
!.yarn/patches
!.yarn/sdks
!.yarn/versions
13 changes: 13 additions & 0 deletions cloud-shell/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#
# Copyright (c) 2026 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
# Red Hat, Inc. - initial API and implementation
#

nodeLinker: node-modules
3 changes: 2 additions & 1 deletion cloud-shell/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@
"resolutions": {
"cipher-base": "^1.0.6",
"sha.js": "^2.4.12"
}
},
"packageManager": "yarn@4.12.0"
}
Loading