barthr / identicon Goto Github PK
View Code? Open in Web Editor NEWIdenticon generator written in golang
License: MIT License
Identicon generator written in golang
License: MIT License
Maybe its not supported yet in Europe ?
log:
make cloud-deploy
cd /Users/apple/workspace/go/src/github.com/barthr/Identicon && gcloud beta run deploy --image gcr.io/winwisely-cloudrun/identicon-generator --platform managed
Service name (identicon-generator):
ERROR: (gcloud.beta.run.deploy) PERMISSION_DENIED: Permission denied on 'locations/europe-west3' (or it may not exist)
make: *** [cloud-deploy] Error 1
make:
# see: https://bartfokker.com/posts/cloud-run/
# code: https://github.com/barthr/Identicon/tree/feature/identicon-library
LIB_NAME=Identicon
LIB=github.com/barthr/$(LIB_NAME)
LIB_BRANCH=feature/identicon-library
LIB_FSPATH=$(GOPATH)/src/$(LIB)
GO111MODULE=on
CLOUD_PROJECT_ID=winwisely-cloudrun
help: ## Display this help
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
print: ## print
@echo
@echo LIB_NAME: $(LIB_NAME)
@echo LIB: $(LIB)
@echo LIB_BRANCH: $(LIB_BRANCH)
@echo LIB_FSPATH: $(LIB_FSPATH)
@echo
git-clone:
mkdir -p $(LIB_FSPATH)
cd $(LIB_FSPATH) && cd .. && rm -rf $(LIB_NAME) && git clone ssh://git@$(LIB).git
cd $(LIB_FSPATH) && git checkout $(LIB_BRANCH)
git-pull:
cd $(LIB_FSPATH) && git pull
git-clean:
rm -rf $(LIB_FSPATH)
code:
code $(LIB_FSPATH)
os-dep:
# Assume hover make file has ben run
export PORT=8080
run-api:
cd $(LIB_FSPATH)/cmd/api && go run .
run-cli:
cd $(LIB_FSPATH)/cmd/cli && go run . -name joe
cloud-auth:
gcloud auth login
gcloud config set project $(CLOUD_PROJECT_ID)
cloud-open:
# run
open https://console.cloud.google.com/run?project=$(CLOUD_PROJECT_ID)
# container
open https://console.cloud.google.com/cloud-build/builds?project=$(CLOUD_PROJECT_ID)
# store
open https://console.cloud.google.com/storage/browser?project=$(CLOUD_PROJECT_ID)
cloud-build:
echo $(CLOUD_PROJECT_ID)
cd $(LIB_FSPATH) && gcloud builds submit --tag gcr.io/$(CLOUD_PROJECT_ID)/identicon-generator
cloud-deploy:
cd $(LIB_FSPATH) && gcloud beta run deploy --image gcr.io/$(CLOUD_PROJECT_ID)/identicon-generator --platform managed
The CTL CLI can run tests against the cloud endpoint to validate the code is good.
This one is pretty good.
https://github.com/gavv/httpexpect
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.