Skip to content

Commit

Permalink
Push tar.gz to GCS (#69)
Browse files Browse the repository at this point in the history
* Push tar.gz to GCS

* Rename envoy_esp
  • Loading branch information
kyessenov authored Feb 6, 2017
1 parent eb8bfcc commit 89f0fbf
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
10 changes: 6 additions & 4 deletions script/release-binary
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,20 @@
#
################################################################################
#
set -ex

# Make sure to this script on x86_64 Ubuntu Xenial

# The bucket name to store proxy binary
BUCKET_NAME="istio-build/proxy"

# The proxy binary name.
BINARY_FORMAT='proxy-alpha-%H'
BINARY_FORMAT='envoy-alpha-%H.tar.gz'
BINARY_NAME="$(git show -q HEAD --pretty=format:"${BINARY_FORMAT}")"

# Build the binary
bazel build --config=release //src/envoy/mixer:envoy_esp

SRC="bazel-bin/src/envoy/mixer/envoy_esp"
bazel build --config=release //src/envoy/mixer:envoy_tar
SRC="bazel-bin/src/envoy/mixer/envoy_tar.tar.gz"
DST="gs://${BUCKET_NAME}/${BINARY_NAME}"

# Copy it to the bucket.
Expand Down
12 changes: 10 additions & 2 deletions src/envoy/mixer/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
################################################################################
#

package(default_visibility = ["//visibility:public"])
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")

cc_library(
name = "filter_lib",
Expand All @@ -32,10 +32,18 @@ cc_library(
)

cc_binary(
name = "envoy_esp",
name = "envoy",
linkstatic = 1,
deps = [
":filter_lib",
"@envoy_git//:envoy-main",
],
)

pkg_tar(
name = "envoy_tar",
extension = "tar.gz",
files = [":envoy"],
mode = "0755",
package_dir = "/usr/local/bin/",
)
6 changes: 3 additions & 3 deletions src/envoy/mixer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ This Proxy will use Envoy and talk to Mixer server.

## Build Envoy proxy

* Build target envoy_esp:
* Build target envoy:

```
bazel build //src/envoy/mixer:envoy_esp
bazel build //src/envoy/mixer:envoy
```

## How to run it
Expand All @@ -38,7 +38,7 @@ This Proxy will use Envoy and talk to Mixer server.
* Start Envoy proxy, run

```
bazel-bin/src/envoy/mixer/envoy_esp -c src/envoy/prototype/envoy-mixer.conf
bazel-bin/src/envoy/mixer/envoy -c src/envoy/prototype/envoy-mixer.conf
```

* Then issue HTTP request to proxy.
Expand Down

0 comments on commit 89f0fbf

Please sign in to comment.