Skip to content

Commit

Permalink
feat(windows): apply patch to windows binary (#104)
Browse files Browse the repository at this point in the history
Signed-off-by: Lukasz Dziedziak <[email protected]>
  • Loading branch information
lukidzi authored Jul 17, 2024
1 parent 769d873 commit ee4590f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion terraform/build-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,21 @@ check_build_status(){
fi
}

command_id=$(aws ssm send-command \
--instance-id $instance_id \
--document-name "AWS-RunPowerShellScript" \
--parameters commands="'cd C:/envoy-builds; C:\tools\git\bin\bash.exe -c \\'cd /c/envoy-builds && GOOS=windows ENVOY_TAG=$version SOURCE_DIR=/c/envoy ./scripts/fetch_sources.sh\\'; cd C:/envoy; C:\tools\git\bin\git.exe config --global --add safe.directory C:/envoy;'" \
--no-cli-pager \
--query 'Command.CommandId' \
--output text)
echo $command_id
wait_for_command $command_id

# execute Envoy build command
command_id=$(aws ssm send-command \
--instance-id $instance_id \
--document-name "AWS-RunPowerShellScript" \
--parameters commands="'cd C:/envoy; C:\tools\git\bin\git.exe checkout $version; C:\tools\git\bin\bash.exe -c \\'TEMP=C: /c/envoy/ci/run_envoy_docker.sh ./ci/windows_ci_steps.sh //source/exe:envoy-static\\''" \
--parameters commands="'cd C:/envoy; C:\tools\git\bin\bash.exe -c \\'TEMP=C: /c/envoy/ci/run_envoy_docker.sh ./ci/windows_ci_steps.sh //source/exe:envoy-static\\''" \
--no-cli-pager \
--query 'Command.CommandId' \
--output text \
Expand Down
2 changes: 1 addition & 1 deletion terraform/windows.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ locals {
# Install Git using Chocolatey
choco install -y git.portable
C:\tools\git\bin\git.exe clone https://github.com/envoyproxy/envoy.git C:/envoy
C:\tools\git\bin\git.exe clone https://github.com/kumahq/envoy-builds.git C:/envoy-builds
# Install Docker
Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/Windows-Containers/Main/helpful_tools/Install-DockerCE/install-docker-ce.ps1" -o "C:/install-docker-ce.ps1"
Expand Down

0 comments on commit ee4590f

Please sign in to comment.