devcontainer: add doc, user to match host machine, and scripts to build/start
This commit is contained in:
12
ops/devcontainer/start.sh
Executable file
12
ops/devcontainer/start.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
sudo docker run --rm -it \
|
||||
-v "$(pwd)":/code \
|
||||
-v "$(go env GOCACHE):/gocache-vol" \
|
||||
-e GOCACHE=/gocache-vol \
|
||||
-v "$(go env GOMODCACHE):/gocache-vol/mod-cache" \
|
||||
-e GOMODCACHE=/gocache-vol/mod-cache \
|
||||
-e GOLANGCI_LINT_CACHE=/gocache-vol/lint-cache \
|
||||
--workdir /code \
|
||||
--net host \
|
||||
gas
|
||||
Reference in New Issue
Block a user