forked from lucperkins/colossus
-
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.
- Loading branch information
1 parent
4a4c823
commit 121eef6
Showing
385 changed files
with
208,133 additions
and
16 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package(default_visibility = ["//visibility:public"]) | ||
|
||
load("@io_bazel_rules_go//go:def.bzl", "gazelle", "go_path", "go_prefix") | ||
load("@bazel_gazelle//:def.bzl", "gazelle") | ||
load("@io_bazel_rules_docker//go:image.bzl", "go_image") | ||
load("@io_bazel_rules_docker//docker:docker.bzl", "docker_push") | ||
load("@io_bazel_rules_docker//java:image.bzl", "java_image") | ||
|
||
go_prefix("github.com/lucperkins/colossus") | ||
|
||
gazelle( | ||
name = "gazelle", | ||
command = "fix", | ||
external = "vendored", | ||
) | ||
|
||
go_path( | ||
name = "all_srcs", | ||
mode = "link", | ||
deps = [ | ||
"//proto/auth:auth_go_proto", | ||
], | ||
) | ||
|
||
go_image( | ||
name = "colossus-web", | ||
binary = "//web:web_docker", | ||
) | ||
|
||
go_image( | ||
name = "colossus-auth", | ||
binary = "//auth:auth_docker", | ||
) | ||
|
||
java_image( | ||
name = "colossus-data", | ||
main_class = "colossus.DataHandler", | ||
runtime_deps = ["//data:data_java_lib"], | ||
) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,7 +1,52 @@ | ||
BAZEL = bazel | ||
BAZEL = /usr/local/bin/bazel | ||
KCTL = kubectl | ||
|
||
all: gazelle | ||
clean: | ||
$(BAZEL) clean | ||
|
||
.PHONY: build | ||
build: clean gazelle | ||
$(BAZEL) build //... | ||
|
||
gazelle: | ||
$(BAZEL) run //:gazelle | ||
gazelle-repos: | ||
$(BAZEL) run //:gazelle -- update-repos -from_file=Gopkg.lock | ||
|
||
gazelle: gazelle-repos | ||
$(BAZEL) run //:gazelle | ||
|
||
dev: gazelle build | ||
|
||
docker-registry: | ||
docker run -d -p 5000:5000 --restart=always --name registry registry:2 | ||
|
||
minikube-start: | ||
minikube start --insecure-registry localhost:5000 | ||
|
||
minikube-setup: | ||
eval $(minikube docker-env) | ||
minikube addons enable ingress | ||
|
||
run-cli: gazelle | ||
$(BAZEL) run //cli -- foo bar baz | ||
|
||
run-web: gazelle | ||
$(BAZEL) run //web | ||
|
||
run-auth: gazelle | ||
$(BAZEL) run //auth | ||
|
||
docker-local-push: | ||
$(BAZEL) run //:colossus-web -- --norun | ||
$(BAZEL) run //:colossus-auth -- --norun | ||
$(BAZEL) run //:colossus-data -- --norun | ||
|
||
deploy: docker-local-push | ||
$(KCTL) apply -f k8s/web.yaml | ||
|
||
teardown: | ||
$(KCTL) delete svc,deployment,ing --all | ||
|
||
restart: teardown deploy | ||
|
||
busybox-run: | ||
$(KCTL) run curl --image=radial/busyboxplus:curl -i --tty |
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,3 @@ | ||
# Grip | ||
|
||
Coming soon. |
Oops, something went wrong.