dumb-init/ci/docker
2017-02-24 16:46:55 -08:00

29 lines
703 B
Bash

if grep -qE '\<lucid\>' /etc/apt/sources.list; then
# lucid was archived, breaking the base image
# https://github.com/docker-library/official-images/issues/1902
sed -i 's/archive\.ubuntu\.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
else
# The default mirrors are too flaky to run reliably in CI.
sed -E \
'/security\.debian/! s@http://[^/]+/@http://mirrors.kernel.org/@' \
-i /etc/apt/sources.list
fi
apt-get update
apt-get install -y --no-install-recommends \
build-essential \
procps \
python \
python-dev \
python-pip \
python-setuptools
pip install --upgrade pip
hash -r
pip --version
cp -r /mnt/ /test
cd /test
# vim: ft=sh