mirror of https://github.com/hashicorp/consul
[CONSUL-424] Replace pkill in kill_envoy function (#52)
parent
146347f31b
commit
2a3b325824
@ -1,45 +0,0 @@
|
||||
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
|
||||
|
||||
# Fortio binary downloaded
|
||||
RUN mkdir fortio
|
||||
ENV FORTIO_URL=https://github.com/fortio/fortio/releases/download/v1.33.0/fortio_win_1.33.0.zip
|
||||
RUN curl %FORTIO_URL% -L -o fortio.zip
|
||||
RUN tar -xf fortio.zip -C fortio
|
||||
|
||||
# Copy envoy.exe from FROM envoyproxy/envoy-windows:${ENVOY_VERSION}
|
||||
COPY --from=envoy ["C:/Program Files/envoy/", "C:/envoy/"]
|
||||
|
||||
RUN choco install openssl -yf
|
||||
RUN choco install jq -yf
|
||||
|
||||
# Install Bats
|
||||
ENV BATS_URL=https://github.com/bats-core/bats-core/archive/refs/tags/v1.7.0.zip
|
||||
RUN curl %BATS_URL% -L -o bats.zip
|
||||
RUN mkdir bats-core
|
||||
RUN tar -xf bats.zip -C bats-core --strip-components=1
|
||||
RUN cd "C:\\Program Files\\Git\\bin" && bash.exe -c "/c/bats-core/install.sh /c/bats"
|
||||
|
||||
# Install Jaeger
|
||||
ENV JAEGER_URL=https://github.com/jaegertracing/jaeger/releases/download/v1.11.0/jaeger-1.11.0-windows-amd64.tar.gz
|
||||
RUN curl %JAEGER_URL% -L -o jaeger.tar.gz
|
||||
RUN mkdir jaeger
|
||||
RUN tar -xf jaeger.tar.gz -C jaeger --strip-components=1
|
||||
|
||||
# Copy test-sds-server binary and certs
|
||||
COPY --from=test-sds-server ["C:/go/src/", "C:/test-sds-server/"]
|
||||
|
||||
EXPOSE 8300
|
||||
EXPOSE 8301 8301/udp 8302 8302/udp
|
||||
EXPOSE 8500 8600 8600/udp
|
||||
EXPOSE 8502
|
||||
|
||||
EXPOSE 19000 19001 19002 19003 19004
|
||||
EXPOSE 21000 21001 21002 21003 21004
|
||||
EXPOSE 5000 1234 2345
|
||||
|
||||
RUN SETX /M path "%PATH%;C:\consul;C:\envoy;C:\fortio;C:\jaeger;C:\Program Files\Git\bin;C:\Program Files\OpenSSL-Win64\bin;C:\bats\bin\bats;C:\ProgramData\chocolatey\lib\jq\tools;"
|
@ -1,14 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd ../
|
||||
rm -rf dist
|
||||
|
||||
export GOOS=windows GOARCH=amd64
|
||||
CONSUL_VERSION=1.12.0
|
||||
CONSUL_BUILDDATE=$(date +"%Y-%m-%dT%H:%M:%SZ")
|
||||
GIT_IMPORT=github.com/hashicorp/consul/version
|
||||
GOLDFLAGS=" -X $GIT_IMPORT.Version=$CONSUL_VERSION -X $GIT_IMPORT.VersionPrerelease=local -X $GIT_IMPORT.BuildDate=$CONSUL_BUILDDATE "
|
||||
|
||||
go build -ldflags "$GOLDFLAGS" -o ./dist/ .
|
||||
|
||||
docker build -t windows/consul-dev -f ./build-support-windows/Dockerfile-consul-dev-windows .
|
Loading…
Reference in new issue