Skip to content

Commit

Permalink
Install pigz and unpigz to speed up docker image extraction (#471)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon authored Jul 15, 2024
1 parent e3d777c commit 482509e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packer/scripts/al2/al2-agent-setups.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ EOF
# Install Temurin JDK 21
sudo yum install -y temurin-21-jdk

sudo yum install -y which curl git gnupg2 tar net-tools procps-ng python3 python3-devel python3-pip zip unzip jq
sudo yum install -y which curl git gnupg2 tar net-tools procps-ng python3 python3-devel python3-pip zip unzip jq pigz
sudo yum install -y docker ntp
sudo yum groupinstall -y "Development Tools"

Expand Down
4 changes: 2 additions & 2 deletions packer/scripts/al2023/al2023-agent-setups.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ fi
sudo dnf clean all
sudo rm -rf /var/cache/dnf
sudo dnf repolist
sudo dnf update --skip-broken --exclude=openssh* --exclude=docker* -y
sudo dnf update --skip-broken --exclude=openssh* --exclude=docker* --releasever=latest -y

sudo dnf install -y java-21-amazon-corretto java-21-amazon-corretto-devel
sudo dnf install -y which git tar net-tools procps-ng python3 python3-devel python3-pip zip unzip jq
sudo dnf install -y which git tar net-tools procps-ng python3 python3-devel python3-pip zip unzip jq pigz
sudo dnf install -y docker
sudo dnf groupinstall -y "Development Tools"

Expand Down
2 changes: 1 addition & 1 deletion packer/scripts/ubuntu2004/ubuntu2004-agent-setups.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ whoami
sudo apt-get update -y && (sudo killall -9 apt-get apt 2>&1 || echo)
sudo apt-get upgrade -y && sudo apt-get install -y software-properties-common && sudo add-apt-repository ppa:jacob/virtualisation -y
sudo apt-get update -y && sudo apt-get install -y binfmt-support qemu qemu-user qemu-user-static docker.io curl python3-pip && sudo pip3 install awscli
sudo apt-get install -y docker docker.io docker-compose ntp curl git gnupg2 tar zip unzip jq
sudo apt-get install -y docker docker.io docker-compose ntp curl git gnupg2 tar zip unzip jq pigz
sudo apt-get install -y build-essential

# Replace default curl 7.68 on Ubuntu 20.04 with 7.75+ version to support aws-sigv4
Expand Down

0 comments on commit 482509e

Please sign in to comment.