Skip to content

Commit b63dd25

Browse files
author
Abdullah Khawer
committed
fix: Add no cache options for package installers to reduce installation size.
1 parent 6a27fc4 commit b63dd25

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

installation/linux_install_packages.sh

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
#!/bin/bash
22
set -ex
33

4-
# update package lists
5-
apk update
6-
74
# install Git, jq, Bash, Make, wget, Python3, pip, Go (Golang)
8-
apk add git jq bash make wget python3 py3-pip go
5+
apk add --no-cache git jq bash make wget python3 py3-pip go
96
git --version && jq --version && bash --version && make --version && wget --version && python3 --version && pip --version && go version
107

118
# install "Python Atlassian REST API Wrapper", "World timezone definitions, modern and historical" and "Requests" Python libraries
12-
pip install atlassian-python-api pytz requests --break-system-packages
9+
pip install --no-cache-dir atlassian-python-api pytz requests || pip install atlassian-python-api pytz requests --break-system-packages
1310

1411
# install Gitleaks
1512
rm -rf /usr/local/gitleaks && git clone https://github.com/gitleaks/gitleaks.git /usr/local/gitleaks

installation/macos_install_packages.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ brew install git jq bash python python@3
66
git --version && jq --version && bash --version && pip --version && python3 --version
77

88
# install "Python Atlassian REST API Wrapper", "World timezone definitions, modern and historical" and "Requests" Python libraries
9-
pip install atlassian-python-api pytz requests || pip install atlassian-python-api pytz requests --break-system-packages
9+
pip install --no-cache-dir atlassian-python-api pytz requests || pip install atlassian-python-api pytz requests --break-system-packages
1010

1111
# install Gitleaks
1212
sudo rm -rf /usr/local/gitleaks && sudo git clone https://github.com/gitleaks/gitleaks.git /usr/local/gitleaks

0 commit comments

Comments
 (0)