Skip to content
Browse files

[gitpod] Improve .gitpod.yml for a better Go setup

Signed-off-by: Christian Weichel <>
  • Loading branch information
32leaves authored and alexellis committed Nov 13, 2019
1 parent f7295d8 commit 6e522ff3bde5aa84d647f5c99e38afde45124da1
Showing with 19 additions and 2 deletions.
  1. +19 −2 .gitpod.yml
@@ -1,3 +1,20 @@
checkoutLocation: go/src/
workspaceLocation: go/src/
- port: 8090
onOpen: ignore
- init: go get -u
command: cd $GOPATH/src/
- init: go get -v ./...
command: |
head -c 16 /dev/urandom | shasum | cut -d" " -f1 > /tmp/inlets-token
inlets server --port=8090 --token="$(cat /tmp/inlets-token)"
- command: |
gp await-port 8090 &&
remote=$(gp url 8090)
echo "Inlets server is running on $(gp url 8090)."
echo "$(tput setaf 7)You can tunnel to it using $(tput setaf 2)inlets client --remote=${remote/https/wss} --token $(cat /tmp/inlets-token) --upstream=$(tput sgr0)"
echo "Once you have an inlet client connected, head over to $(tput setaf 4)$(gp url 8090)$(tput sgr0) to access that service."
openMode: split-right

0 comments on commit 6e522ff

Please sign in to comment.
You can’t perform that action at this time.