Skip to content

Commit

Permalink
Optimtize installs
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxxstorm committed May 12, 2020
1 parent 7eff602 commit d247356
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/install-dotnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ rm packages-microsoft-prod.deb

apt-get update

apt-get install -y \
apt-get install --no-install-recommends -y \
"dotnet-sdk-${DOTNET_SDK_VERSION}" \
"aspnetcore-runtime-${DOTNET_SDK_VERSION}"
2 changes: 1 addition & 1 deletion scripts/install-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ echo "deb https://deb.nodesource.com/${NODE_REPO} ${NODE_DISTRO} main" > /etc/ap
echo "deb-src https://deb.nodesource.com/${NODE_REPO} ${NODE_DISTRO} main" >> /etc/apt/sources.list.d/nodesource.list

apt-get update
apt-get install -y nodejs
apt-get install -y nodejs --no-install-recommends

curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version "${YARN_VERSION}"
4 changes: 4 additions & 0 deletions scripts/install-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ set -o errexit
set -o pipefail
set -o xtrace

# Reduce apt deps
echo 'APT::Install-Recommends "0";' >> /etc/apt/apt.conf
echo 'APT::Install-Suggests "0";' >> /etc/apt/apt.conf

SCRIPT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
#shellcheck source=utils.sh
source "${SCRIPT_ROOT}/utils.sh"
Expand Down
8 changes: 4 additions & 4 deletions scripts/install-python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ ensureSet "${TWINE_VERSION}" "TWINE_VERSION" || exit 1
export DEBIAN_FRONTEND=noninteractive

apt-get update
apt-get install -y "python${PYTHON_VERSION}" python3-pip
apt-get install -y "python${PYTHON_VERSION}" python3-pip python3-setuptools --no-install-recommends
update-alternatives --install /usr/bin/python3 python3 "/usr/bin/python${PYTHON_VERSION}" 1
python3 --version

pip3 install --user "pipenv==${PIPENV_VERSION}"
pip3 install --user "awscli==${AWSCLI_VERSION}"
pip3 install --user "wheel==${WHEEL_VERSION}" "twine==${TWINE_VERSION}"
pip3 install --no-cache --user "pipenv==${PIPENV_VERSION}"
pip3 install --no-cache --user "awscli==${AWSCLI_VERSION}"
pip3 install --no-cache --user "wheel==${WHEEL_VERSION}" "twine==${TWINE_VERSION}"

0 comments on commit d247356

Please sign in to comment.