Skip to content

Commit

Permalink
[CONSUL-397] Copy envoy binary from Image (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
cocolavayen authored and joselo85 committed Dec 21, 2022
1 parent 35aab92 commit 32fce35
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions Dockerfile-windows
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN ["powershell", "Set-ExecutionPolicy", "Bypass", "-Scope", "Process", "-Force
RUN ["powershell", "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))"]

RUN choco install git.install -yf
RUN SETX /M path "%PATH%;C:\Program Files\Git\bin"

RUN mkdir C:\\consul
RUN mkdir C:\\consul\\data
Expand Down
12 changes: 7 additions & 5 deletions build-support-windows/Dockerfile-consul-dev-windows
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
ARG ENVOY_VERSION=v1.19.5
ARG CONSUL_IMAGE_VERSION=latest

FROM envoyproxy/envoy-windows:${ENVOY_VERSION} as envoy
FROM windows/consul:${CONSUL_IMAGE_VERSION}
COPY dist/ C:\\consul

Expand All @@ -8,10 +11,8 @@ ENV FORTIO_URL=https://github.com/fortio/fortio/releases/download/v1.33.0/fortio
RUN curl %FORTIO_URL% -L -o fortio.zip
RUN tar -xf fortio.zip -C fortio

# FROM envoyproxy/envoy-windows:v1.19.5 as envoy
# COPY --from=envoy ["Program Files\envoy", "C:\envoy"]
RUN mkdir C:\\envoy
COPY envoy.exe envoy/envoy.exe
# Copy envoy.exe from FROM envoyproxy/envoy-windows:${ENVOY_VERSION}
COPY --from=envoy ["C:/Program Files/envoy/", "C:/envoy/"]

EXPOSE 8300
EXPOSE 8301 8301/udp 8302 8302/udp
Expand All @@ -20,5 +21,6 @@ EXPOSE 8502

EXPOSE 19000 19001 19002 19003 19004
EXPOSE 21000 21001 21002 21003 21004
EXPOSE 5000 1234 2345

ENV PATH C:\\Program Files\\Git\\bin;C:\\consul;C:\\Windows\\System32;C:\\fortio;C:\\envoy;C:\\Program Files\\OpenSSL-Win64\\bin;C:\\ProgramData\\chocolatey\\lib\\jq\\tools;%PATH%
RUN SETX /M path "%PATH%;C:\consul;C:\envoy;C:\fortio;C:\Program Files\Git\bin"
2 changes: 1 addition & 1 deletion test/integration/connect/envoy/Dockerfile-bats-windows
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ FROM docker.mirror.hashicorp.services/windows/bats:1.7.0
RUN choco install openssl -yf
RUN choco install jq -yf

ENV PATH C:\\Windows\\System32;C:\\ProgramData\\chocolatey\\lib\\jq\\tools;C:\\Program Files\\OpenSSL-Win64\\bin;%PATH%
RUN SETX /M path "%PATH%;C:\ProgramData\chocolatey\lib\jq\tools;C:\Program Files\OpenSSL-Win64\bin"

0 comments on commit 32fce35

Please sign in to comment.