Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
chore: 🔧 Changes that do not modify src or test files
Browse files Browse the repository at this point in the history
  • Loading branch information
tarampampam committed Feb 23, 2023
1 parent be77828 commit 2cc71c5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
21 changes: 10 additions & 11 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
test
.editorconfig
.git
.github
.idea
.vscode
temp
tmp
LICENSE
Makefile
mikrotik-hosts-parser
## Ignore everything
*

## Except the following files and directories
!/cmd
!/configs
!/internal
!/pkg
!/web
!/go.*
7 changes: 3 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
# EditorConfig docs: <https://editorconfig.org/>

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.{yml, yaml, sh, conf, json}]
indent_size = 2
trim_trailing_whitespace = true

[{Makefile, go.mod, *.go}]
indent_style = tab
7 changes: 6 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version: '3.8'
volumes:
tmp-data: {}
redis-data: {}
golint-go: {}
golint-cache: {}

services:
Expand All @@ -17,6 +18,7 @@ services:
- /etc/group:/etc/group:ro
- .:/src:rw
- tmp-data:/tmp:rw
security_opt: [no-new-privileges:true]

web:
<<: *app-service
Expand All @@ -36,12 +38,15 @@ services:
test: ['CMD', 'redis-cli', 'ping']
interval: 500ms
timeout: 1s
security_opt: [no-new-privileges:true]

golint:
image: golangci/golangci-lint:v1.51-alpine # Image page: <https://hub.docker.com/r/golangci/golangci-lint>
environment:
GOLANGCI_LINT_CACHE: /tmp/golint # <https://github.com/golangci/golangci-lint/blob/v1.33.0/internal/cache/default.go#L68>
volumes:
- .:/src:ro
- golint-go:/go:rw # go dependencies will be downloaded on each run without this
- golint-cache:/tmp/golint:rw
- .:/src:ro
working_dir: /src
security_opt: [no-new-privileges:true]

0 comments on commit 2cc71c5

Please sign in to comment.