wip
This commit is contained in:
7
Makefile
7
Makefile
@@ -43,18 +43,13 @@ local-format: ## format locally all files
|
|||||||
gofmt -s -l -w .
|
gofmt -s -l -w .
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build: sources-image ## Build the docker image with application binary
|
build: ## Build the docker image with application binary
|
||||||
@echo "+ $@"
|
@echo "+ $@"
|
||||||
docker build --no-cache \
|
docker build --no-cache \
|
||||||
-f containers/Dockerfile \
|
-f containers/Dockerfile \
|
||||||
--build-arg SOURCES_IMAGE=$(NAME)-sources:$(VERSION) \
|
|
||||||
-t poketools:$(VERSION) .
|
-t poketools:$(VERSION) .
|
||||||
|
|
||||||
GIT_CREDENTIALS?=$(shell cat ~/.git-credentials 2> /dev/null)
|
GIT_CREDENTIALS?=$(shell cat ~/.git-credentials 2> /dev/null)
|
||||||
.PHONY: sources-image
|
|
||||||
sources-image: ## Generate a Docker image with only the sources
|
|
||||||
@echo "+ $@"
|
|
||||||
docker build -t $(NAME)-sources:$(VERSION) -f containers/Dockerfile.sources .
|
|
||||||
|
|
||||||
|
|
||||||
.PHONY: local-run-dependencies
|
.PHONY: local-run-dependencies
|
||||||
|
|||||||
12
go.mod
12
go.mod
@@ -1,8 +1,8 @@
|
|||||||
module nos-comptes
|
module nos-comptes
|
||||||
|
|
||||||
go 1.17
|
go 1.17
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/gin-contrib/cors v1.3.1
|
github.com/gin-contrib/cors v1.3.1
|
||||||
github.com/gin-gonic/gin v1.7.4
|
github.com/gin-gonic/gin v1.7.4
|
||||||
github.com/lib/pq v1.10.3
|
github.com/lib/pq v1.10.3
|
||||||
@@ -11,9 +11,9 @@ require (
|
|||||||
github.com/spf13/viper v1.9.0
|
github.com/spf13/viper v1.9.0
|
||||||
google.golang.org/api v0.59.0
|
google.golang.org/api v0.59.0
|
||||||
gopkg.in/go-playground/validator.v9 v9.31.0
|
gopkg.in/go-playground/validator.v9 v9.31.0
|
||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
cloud.google.com/go v0.97.0 // indirect
|
cloud.google.com/go v0.97.0 // indirect
|
||||||
github.com/fsnotify/fsnotify v1.5.1 // indirect
|
github.com/fsnotify/fsnotify v1.5.1 // indirect
|
||||||
github.com/gin-contrib/sse v0.1.0 // indirect
|
github.com/gin-contrib/sse v0.1.0 // indirect
|
||||||
@@ -52,4 +52,4 @@ require (
|
|||||||
google.golang.org/protobuf v1.27.1 // indirect
|
google.golang.org/protobuf v1.27.1 // indirect
|
||||||
gopkg.in/ini.v1 v1.63.2 // indirect
|
gopkg.in/ini.v1 v1.63.2 // indirect
|
||||||
gopkg.in/yaml.v2 v2.4.0 // indirect
|
gopkg.in/yaml.v2 v2.4.0 // indirect
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user