Skip to content

Commit

Permalink
etc: add --no-install-recommends to apt install
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Bandeira <vvbandeira@precisioninno.com>
  • Loading branch information
Vitor Bandeira committed Jul 8, 2024
1 parent 74bf492 commit 7bd5147
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions etc/DependencyInstaller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,22 @@ _installCentosCleanUp() {
}

_installCentosPackages() {
yum update -y
yum install -y \
yum -y update
yum -y install \
time \
ruby \
ruby-devel

if ! [ -x "$(command -v klayout)" ]; then
yum install -y https://www.klayout.org/downloads/CentOS_7/klayout-${klayoutVersion}-0.x86_64.rpm
yum -y install https://www.klayout.org/downloads/CentOS_7/klayout-${klayoutVersion}-0.x86_64.rpm
else
currentVersion=$(klayout -v | grep -o '[0-9]\+\.[0-9]\+\.[0-9]\+')
if _versionCompare $currentVersion -ge $klayoutVersion; then
echo "KLayout version greater than or equal to ${klayoutVersion}"
else
echo "KLayout version less than ${klayoutVersion}"
sudo yum remove -y klayout
yum install -y https://www.klayout.org/downloads/CentOS_7/klayout-${klayoutVersion}-0.x86_64.rpm
yum -y install https://www.klayout.org/downloads/CentOS_7/klayout-${klayoutVersion}-0.x86_64.rpm
fi
fi
}
Expand All @@ -84,7 +84,7 @@ _installUbuntuPackages() {

# install KLayout
if _versionCompare $1 -ge 23.04; then
apt-get install -y klayout python3-pandas
apt-get -y install --no-install-recommends klayout python3-pandas
else
if [[ $1 == 20.04 ]]; then
klayoutChecksum=15a26f74cf396d8a10b7985ed70ab135
Expand Down Expand Up @@ -113,25 +113,24 @@ _installDarwinPackages() {

_installCI() {
apt-get -y update

#docker
apt install -y \
apt-get -y install --no-install-recommends \
apt-transport-https \
ca-certificates \
coreutils \
curl \
python3 \
software-properties-common

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get -y update
apt-get install -y docker-ce docker-ce-cli containerd.io
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null

# python
apt-get install -y python3
apt-get -y update
apt-get -y install --no-install-recommends \
docker-ce \
docker-ce-cli \
containerd.io

# stdbuf
apt-get install -y coreutils
}

_help() {
Expand Down

0 comments on commit 7bd5147

Please sign in to comment.