Created
June 20, 2018 16:28
-
-
Save incfly/da54141c12347e3738c2fe83c3cc1575 to your computer and use it in GitHub Desktop.
Build istio proxyv2 image
This file contains hidden or 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
git clone https://github.com/istio/proxy | |
git clone https://github.com/istio/istio | |
pushd istio | |
# Build the binary and docker first | |
make && make docker | |
# Get the command line to build proxyv2 image, this shows the artifact path for proxyv2 docker image | |
# say it's /golang/out/linux_amd64/release/docker_build/proxyv2 | |
make docker.push --dry-run | grep proxyv2 | |
popd | |
pushd proxy | |
# Build the Envoy binary, the output contains the envoy binary path in | |
make | |
# replace the bazel output path with yours. | |
cp /usr/local/google/home/userfoo/.cache/bazel/_bazel_jianfeih/78021adfdd9053c17567af83bdabdf42/execroot/__main__/bazel-out/k8-fastbuild/bin/src/envoy/envoy \ | |
/golang/out/linux_amd64/release/docker_build/proxyv2 | |
popd | |
pushd /golang/out/linux_amd64/release/docker_build/proxyv2 | |
docker build -t gcr.io/gcp-project/proxyv2:20180620 -f Dockerfile.proxyv2 . | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment