meta-protocol-proxy icon indicating copy to clipboard operation
meta-protocol-proxy copied to clipboard

Dockerfile for building proxy

Open 2011aad opened this issue 2 years ago • 8 comments

Same as https://github.com/aeraki-mesh/meta-protocol-proxy/issues/112. Is there any instructions? I'm also stuck here.

2011aad avatar Jan 31 '24 09:01 2011aad

@2011aad

Did you try this? https://github.com/aeraki-mesh/meta-protocol-proxy?tab=readme-ov-file#build-metaprotocol-proxy-using-docker

zhaohuabing avatar Jan 31 '24 11:01 zhaohuabing

Following this guide, I build the envoy binary success. But I don’t know what should put into the image, only the envoy binary? Or with some dependencies and configurations. Really appreciate for the reply^_^

2011aad avatar Jan 31 '24 13:01 2011aad

You mean how to build istio-proxy?

zhaohuabing avatar Jan 31 '24 13:01 zhaohuabing

Yes. I see when using istio with aeraki, I need change proxy image to meta-protocol-proxy:1.4.2. I want to know how to build a new version.

2011aad avatar Jan 31 '24 14:01 2011aad

Is the following method the right way? https://discuss.istio.io/t/building-istio-with-custom-envoy/7239

2011aad avatar Jan 31 '24 14:01 2011aad

@2011aad Sorry this hasn't been written down in docs. You can find the script here: https://github.com/aeraki-mesh/istio/blob/aeraki-1.18.1/build-proxy.sh

zhaohuabing avatar Feb 01 '24 09:02 zhaohuabing

Thanks. I'm building istio-proxy with my own envoy binary. After build istio docker.proxyv2, I use the following dockerfile content to replace envoy binary within the image and works. ^_^

Dockerfile

FROM localhost:5000/proxyv2:latest COPY envoy /usr/local/bin/envoy ENTRYPOINT ["/usr/local/bin/pilot-agent"]

2011aad avatar Feb 02 '24 03:02 2011aad

Yes, that would also work, but the image will be larger.

zhaohuabing avatar Feb 02 '24 10:02 zhaohuabing