-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 parent
a0cee8f
commit 28c42b8
Showing
13 changed files
with
101 additions
and
146 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 |
---|---|---|
@@ -1,49 +1,21 @@ | ||
### Go template | ||
# If you prefer the allow list template instead of the deny list, see community template: | ||
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore | ||
# | ||
# Binaries for programs and plugins | ||
*.exe | ||
*.exe~ | ||
*.dll | ||
*.so | ||
*.dylib | ||
|
||
# Test binary, built with `go test -c` | ||
*.test | ||
|
||
# Output of the go coverage tool, specifically when used with LiteIDE | ||
*.out | ||
|
||
# Dependency directories (remove the comment below to include it) | ||
# vendor/ | ||
|
||
# Go workspace file | ||
go.work | ||
sqlite.db | ||
db.sqlite3 | ||
.idea | ||
config.yml | ||
logs | ||
plugins | ||
uploads | ||
/media/ | ||
/assets/ | ||
/config/ | ||
/configs/* | ||
/application.json | ||
/signature.json | ||
/platform.json | ||
/k8s-config.yml | ||
/ca/ | ||
/configs/ | ||
/db/ | ||
/build/ | ||
/captures/ | ||
test.go | ||
dist | ||
_PgsHub.exe | ||
_Cloudsdale.exe | ||
signature.json | ||
config.json | ||
|
||
__pycache__ | ||
/dist/ |
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
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,36 @@ | ||
BINARY := cloudsdale | ||
PACKAGE := github.com/elabosak233/cloudsdale | ||
|
||
GOOS := $(shell go env GOOS) | ||
GOARCH := $(shell go env GOARCH) | ||
|
||
export TERM := xterm-256color | ||
export CGO_ENABLED := 1 | ||
|
||
GIT_TAG := $(shell git describe --tags --always) | ||
GIT_COMMIT := $(shell git rev-parse HEAD) | ||
GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD) | ||
|
||
LDFLAGS := -X $(PACKAGE)/internal/global.GitTag=$(GIT_TAG) -X $(PACKAGE)/internal/global.GitCommitID=$(GIT_COMMIT) -X $(PACKAGE)/internal/global.GitBranch=$(GIT_BRANCH) | ||
|
||
.PHONY: all build run clean swag | ||
|
||
all: build | ||
|
||
clean: | ||
@rm -rf ./build | ||
|
||
swag: | ||
@echo Generating swagger docs... | ||
swag init -g ./cloudsdale.go -o ./api | ||
@echo Swagger docs generated. | ||
|
||
build: swag | ||
@echo Building $(PACKAGE)... | ||
@go build -ldflags "-linkmode external -w -s $(LDFLAGS)" -o ./build/$(BINARY) | ||
@echo Build finished. | ||
|
||
run: swag | ||
@echo Running $(PACKAGE)... | ||
go run -ldflags "$(LDFLAGS)" $(PACKAGE) | ||
@echo Run finished. |
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,26 @@ | ||
version: "3.0" | ||
services: | ||
core: | ||
image: elabosak233/cloudsdale:main | ||
restart: always | ||
ports: | ||
- "8888:8888" | ||
volumes: | ||
- "/var/run/docker.sock:/var/run/docker.sock" | ||
- "./configs:/app/configs" | ||
- "./media:/app/media" | ||
- "./logs:/app/logs" | ||
depends_on: | ||
- db | ||
|
||
db: | ||
image: postgres:alpine | ||
restart: always | ||
ports: | ||
- "5432:5432" | ||
environment: | ||
POSTGRES_USER: cloudsdale | ||
POSTGRES_PASSWORD: cloudsdale | ||
POSTGRES_DB: cloudsdale | ||
volumes: | ||
- "./db:/var/lib/postgresql/data" |
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
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
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
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
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
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
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
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
This file was deleted.
Oops, something went wrong.