Skip to content

Commit 0bc4e7a

Browse files
committed
Update Gitpod config files
1 parent 42a7372 commit 0bc4e7a

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

.gitpod.Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM gitpod/workspace-go:latest
2+
3+
USER gitpod
4+
5+
RUN sudo apt update -q && \
6+
rm -rf /home/gitpod/tmp && \
7+
mkdir -p /home/gitpod/tmp && \
8+
cd /home/gitpod/tmp && \
9+
wget -q -O go.tar.gz https://go.dev/dl/go1.20.1.linux-amd64.tar.gz && \
10+
tar zxf go.tar.gz && \
11+
mv /home/gitpod/go /home/gitpod/go-old && \
12+
mv go /home/gitpod

.gitpod.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
1-
image: gitpod/workspace-go:latest
1+
image:
2+
file: .gitpod.Dockerfile
23

34
tasks:
4-
- name: update apt
5-
init: sudo apt update -q
65
- name: update go and tools
7-
command:
8-
rm -rf /home/gitpod/tmp &&
9-
mkdir -p /home/gitpod/tmp &&
10-
cd /home/gitpod/tmp &&
11-
wget -q -O go.tar.gz https://go.dev/dl/go1.20.1.linux-amd64.tar.gz &&
12-
tar zxf go.tar.gz &&
13-
mv /home/gitpod/go /home/gitpod/go-old &&
14-
mv go /home/gitpod &&
6+
init:
157
go install github.com/go-task/task/v3/cmd/task@latest &&
168
go install honnef.co/go/tools/cmd/staticcheck@latest &&
179
go install golang.org/x/tools/cmd/goimports@latest &&
1810
go install github.com/mgechev/revive@latest &&
19-
exit
2011

2112
vscode:
2213
extensions:

0 commit comments

Comments
 (0)