-
Notifications
You must be signed in to change notification settings - Fork 167
/
packages.sh
41 lines (38 loc) · 1.11 KB
/
packages.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env bash
set -euo pipefail
############################################################
# Speedup DPKG and don't use cache for packages
############################################################
# Taken from here: https://gist.github.com/kwk/55bb5b6a4b7457bef38d
#
# this forces dpkg not to call sync() after package extraction and speeds up
# install
echo "force-unsafe-io" > /etc/dpkg/dpkg.cfg.d/02apt-speedup
# we don't need and apt cache in a container
echo "Acquire::http {No-Cache=True;};" > /etc/apt/apt.conf.d/no-cache
echo 'APT::Install-Recommends "false";' > /etc/apt/apt.conf
export DEBIAN_FRONTEND=noninteractive
dpkg-reconfigure -f noninteractive tzdata \
&& apt-get update \
&& apt-get install -yq \
apt-transport-https \
apt-utils \
ca-certificates \
&& apt-get install -yq \
build-essential \
curl \
git \
gnupg2 \
jq \
libc-client-dev \
mariadb-client \
mongo-tools \
openssh-client \
python \
python-dev \
rsync \
sudo \
unzip \
zip \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*