Skip to content

Commit f0b51ae

Browse files
Remove Gitpod setup in favor of DevContainer setup
1 parent 2b9dca9 commit f0b51ae

File tree

3 files changed

+10
-22
lines changed

3 files changed

+10
-22
lines changed

.gitpod.Dockerfile renamed to .devcontainer/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,11 @@ RUN go install -v github.com/uudashr/gopkgs/cmd/gopkgs@v2 \
5050
ENV SHFMT_VERSION=3.10.0
5151
RUN curl -sSL -o /usr/local/bin/shfmt "https://github.com/mvdan/sh/releases/download/v${SHFMT_VERSION}/shfmt_v${SHFMT_VERSION}_linux_amd64" && \
5252
chmod 755 /usr/local/bin/shfmt
53+
54+
# Install latest Leeway release
55+
RUN . /tmp/go_platform.env && \
56+
LATEST_LEEWAY_VERSION=$(curl -s https://api.github.com/repos/gitpod-io/leeway/releases/latest | grep '"tag_name"' | sed 's/.*"tag_name": "v\([^"]*\)".*/\1/') && \
57+
curl -L -o /tmp/leeway.tar.gz https://github.com/gitpod-io/leeway/releases/download/v${LATEST_LEEWAY_VERSION}/leeway_Linux_${GO_PLATFORM#linux-}.tar.gz && \
58+
tar -xzf /tmp/leeway.tar.gz -C /tmp && \
59+
install -m 755 /tmp/leeway /usr/local/bin/ && \
60+
rm /tmp/leeway.tar.gz

.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
"name": "leeway",
33
"build": {
44
"context": "..",
5-
"dockerfile": "../.gitpod.Dockerfile"
5+
"dockerfile": "Dockerfile"
66
},
77
"runArgs": [
88
"--privileged",
99
"--security-opt=seccomp=unconfined",
1010
"--network=host"
1111
],
1212
"containerUser": "root"
13-
}
13+
}

.gitpod.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)