-
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.
Merge pull request #1 from maZahaca/feature-improved-easyjson-generation
easyjson improvements
- Loading branch information
Showing
7 changed files
with
182 additions
and
203 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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1 +1,2 @@ | |||
.idea | .idea | ||
*_easyjson.go |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,28 @@ | |||
VERSION=`git rev-parse HEAD` | |||
BUILD=`date +%FT%T%z` | |||
LDFLAGS=-ldflags "-X main.Version=${VERSION} -X main.Build=${BUILD}" | |||
|
|||
.PHONY: help | |||
help: ## - Show help message | |||
@printf "\033[32m\xE2\x9c\x93 usage: make [target]\n\n\033[0m" | |||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | |||
|
|||
.PHONY: build | |||
build: ## - Build the smallest and secured golang docker image based on scratch | |||
@printf "\033[32m\xE2\x9c\x93 Build the smallest and secured golang docker image based on scratch\n\033[0m" | |||
@docker build -f Dockerfile -t exchange-rates-server . | |||
|
|||
.PHONY: build-no-cache | |||
build-no-cache: ## - Build the smallest and secured golang docker image based on scratch with no cache | |||
@printf "\033[32m\xE2\x9c\x93 Build the smallest and secured golang docker image based on scratch\n\033[0m" | |||
@docker build --no-cache -f Dockerfile -t exchange-rates-server . | |||
|
|||
.PHONY: ls | |||
ls: ## - List 'exchange-rates-server' docker images | |||
@printf "\033[32m\xE2\x9c\x93 Look at the size dude !\n\033[0m" | |||
@docker image ls exchange-rates-server | |||
|
|||
.PHONY: run | |||
run: ## - Run the smallest and secured golang docker image based on scratch | |||
@printf "\033[32m\xE2\x9c\x93 Run the smallest and secured golang docker image based on scratch\n\033[0m" | |||
@docker run -p 8000:8000 exchange-rates-server:latest |
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.
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
Oops, something went wrong.