Skip to content

Commit

Permalink
Use Bazel to build the entire backend and perform API code generation (
Browse files Browse the repository at this point in the history
…#609)

* Use Bazel to build the entire backend.

This also uses Bazel to generate code from the API definition in the
proto files.

The Makefile is replaced with a script that uses Bazel to first generate
the code, and then copy them back into the source tree.

Most of the BUILD files were generated automatically using Gazelle.

* Fix indentation in generate_api.sh

* Clean up WORKSPACE

* Add README for building/testing backend.

Also fix the missing licenses in the generated proto files.

* Add license to files under go_http_client
  • Loading branch information
neuromage authored and k8s-ci-robot committed Jan 5, 2019
1 parent 2158d23 commit 163545b
Show file tree
Hide file tree
Showing 208 changed files with 3,876 additions and 1,737 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,7 @@ ml.iml
*.egg-info

# go vendor
vendor
vendor

# Bazel output artifacts
bazel-*
7 changes: 7 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
load("@bazel_gazelle//:def.bzl", "gazelle")

# gazelle:prefix github.com/kubeflow/pipelines
# gazelle:resolve proto protoc-gen-swagger/options/annotations.proto @com_github_grpc_ecosystem_grpc_gateway//protoc-gen-swagger/options:options_proto
# gazelle:resolve proto go protoc-gen-swagger/options/annotations.proto @com_github_grpc_ecosystem_grpc_gateway//protoc-gen-swagger/options:go_default_library
# gazelle:resolve go github.com/kubeflow/pipelines/backend/api/go_client //backend/api:go_default_library
gazelle(name = "gazelle")
Loading

0 comments on commit 163545b

Please sign in to comment.