Skip to content

Commit

Permalink
Replace default curl 7.68 on Ubuntu 20.04 with 7.75+ version to suppo…
Browse files Browse the repository at this point in the history
…rt aws-sigv4 (opensearch-project#406)

Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon authored Mar 21, 2024
1 parent cee156e commit d5f2e96
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packer/scripts/ubuntu2004/ubuntu2004-agent-setups.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ sudo apt-get update -y && sudo apt-get install -y binfmt-support qemu qemu-user
sudo apt-get install -y docker docker.io docker-compose ntp curl git gnupg2 tar zip unzip jq
sudo apt-get install -y build-essential

# Replace default curl 7.68 on Ubuntu 20.04 with 7.75+ version to support aws-sigv4
# https://github.com/curl/curl/commit/08e8455dddc5e48e58a12ade3815c01ae3da3b64
# https://curl.se/changes.html#7_75_0
sudo curl -SL https://github.com/stunnel/static-curl/releases/download/8.6.0-1/curl-linux-`uname -m`-8.6.0.tar.xz -o curl.tar.xz
sudo tar -xvf curl.tar.xz
mv -v curl /usr/local/bin/curl
rm -v curl.tar.xz

sudo systemctl restart ntp && sudo systemctl enable ntp && sudo systemctl status ntp
sudo systemctl restart docker && sudo systemctl enable docker && sudo systemctl status docker
sudo usermod -a -G docker `whoami`
Expand Down

0 comments on commit d5f2e96

Please sign in to comment.