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

Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon committed Mar 21, 2024
1 parent cee156e commit 15e8656
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 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,13 @@ 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/apparentorder/hurl/commit/56d4fa44855ab7aef883adf1e0645769beb4afc2
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 15e8656

Please sign in to comment.