feat: Iniital commit with pre-commit integrated
This commit is contained in:
7
.devcontainer/Dockerfile
Normal file
7
.devcontainer/Dockerfile
Normal file
@@ -0,0 +1,7 @@
|
||||
FROM mcr.microsoft.com/devcontainers/go:1-1.21-bullseye
|
||||
RUN sudo apt update && sudo apt install -y python3 python3-pip
|
||||
|
||||
RUN go install -v github.com/go-critic/go-critic/cmd/gocritic@latest \
|
||||
&& go install github.com/fzipp/gocyclo/cmd/gocyclo@latest\
|
||||
&& go install golang.org/x/tools/cmd/goimports@latest\
|
||||
&& sudo pip3 install pre-commit
|
||||
@@ -3,23 +3,21 @@
|
||||
{
|
||||
"name": "Go",
|
||||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
||||
"image": "mcr.microsoft.com/devcontainers/go:1-1.21-bullseye",
|
||||
"build": {
|
||||
// Path is relative to the devcontainer.json file.
|
||||
"dockerfile": "Dockerfile"
|
||||
},
|
||||
"features": {
|
||||
"ghcr.io/guiyomh/features/gotestsum:0": {}
|
||||
}
|
||||
|
||||
// Features to add to the dev container. More info: https://containers.dev/features.
|
||||
// "features": {},
|
||||
|
||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||
// "forwardPorts": [],
|
||||
|
||||
// Use 'postCreateCommand' to run commands after the container is created.
|
||||
// "postCreateCommand": "go version",
|
||||
|
||||
// Configure tool-specific properties.
|
||||
// "customizations": {},
|
||||
|
||||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
||||
// "remoteUser": "root"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user