-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4af8e81
Showing
5 changed files
with
112 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.dockerignore | ||
devcontainer.json | ||
docker-compose.yml | ||
Dockerfile | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FROM qmcgaw/godevcontainer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
"name": "project-dev", | ||
"dockerComposeFile": [ | ||
"docker-compose.yml" | ||
], | ||
"service": "vscode", | ||
"runServices": [ | ||
"vscode" | ||
], | ||
"shutdownAction": "stopCompose", | ||
"postCreateCommand": "~/.windows.sh && go mod download && go mod tidy", | ||
"workspaceFolder": "/workspace", | ||
// "overrideCommand": "", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"golang.go", | ||
"eamodio.gitlens", // IDE Git information | ||
"davidanson.vscode-markdownlint", | ||
"ms-azuretools.vscode-docker", // Docker integration and linting | ||
"shardulm94.trailing-spaces", // Show trailing spaces | ||
"Gruntfuggly.todo-tree", // Highlights TODO comments | ||
"bierner.emojisense", // Emoji sense for markdown | ||
"stkb.rewrap", // rewrap comments after n characters on one line | ||
"vscode-icons-team.vscode-icons", // Better file extension icons | ||
"github.vscode-pull-request-github", // Github interaction | ||
"redhat.vscode-yaml", // Kubernetes, Drone syntax highlighting | ||
"bajdzis.vscode-database", // Supports connections to mysql or postgres, over SSL, socked | ||
"IBM.output-colorizer", // Colorize your output/test logs | ||
"github.copilot" // AI code completion | ||
// "mohsen1.prettify-json", // Prettify JSON data | ||
// "zxh404.vscode-proto3", // Supports Proto syntax | ||
// "jrebocho.vscode-random", // Generates random values | ||
// "alefragnani.Bookmarks", // Manage bookmarks | ||
// "quicktype.quicktype", // Paste JSON as code | ||
// "spikespaz.vscode-smoothtype", // smooth cursor animation | ||
], | ||
"settings": { | ||
"files.eol": "\n", | ||
"editor.formatOnSave": true, | ||
"go.buildTags": "", | ||
"go.toolsEnvVars": { | ||
"CGO_ENABLED": "0" | ||
}, | ||
"go.useLanguageServer": true, | ||
"go.testEnvVars": { | ||
"CGO_ENABLED": "1" | ||
}, | ||
"go.testFlags": [ | ||
"-v", | ||
"-race" | ||
], | ||
"go.testTimeout": "10s", | ||
"go.coverOnSingleTest": true, | ||
"go.coverOnSingleTestFile": true, | ||
"go.coverOnTestPackage": true, | ||
"go.lintTool": "golangci-lint", | ||
"go.lintOnSave": "package", | ||
"[go]": { | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": "always" | ||
} | ||
}, | ||
"gopls": { | ||
"usePlaceholders": false, | ||
"staticcheck": true | ||
}, | ||
"remote.extensionKind": { | ||
"ms-azuretools.vscode-docker": "workspace" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
version: "3.8" | ||
|
||
services: | ||
vscode: | ||
build: . | ||
volumes: | ||
- ../:/workspace | ||
# Docker socket to access Docker server | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
# SSH directory for Linux, OSX and WSL | ||
# On Linux and OSX, a symlink /mnt/ssh <-> ~/.ssh is | ||
# created in the container. On Windows, files are copied | ||
# from /mnt/ssh to ~/.ssh to fix permissions. | ||
- ~/.ssh:/mnt/ssh | ||
# Shell history persistence | ||
- ~/.zsh_history:/root/.zsh_history | ||
# Git config | ||
- ~/.gitconfig:/root/.gitconfig | ||
environment: | ||
- TZ= | ||
cap_add: | ||
# For debugging with dlv | ||
- SYS_PTRACE | ||
security_opt: | ||
# For debugging with dlv | ||
- seccomp:unconfined | ||
entrypoint: [ "zsh", "-c", "while sleep 1000; do :; done" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Untitled TTRPG discord bot service thingie | ||
|
||
## .devcontainer | ||
|
||
See <https://github.com/qdm12/godevcontainer/tree/master> |