Skip to content

Commit

Permalink
test: add Ubuntu 14 docker build files
Browse files Browse the repository at this point in the history
Based on the old docker-ubuntu14 branch.
  • Loading branch information
scop committed Oct 8, 2021
1 parent 69f68ee commit 020d403
Show file tree
Hide file tree
Showing 2 changed files with 105 additions and 0 deletions.
28 changes: 28 additions & 0 deletions test/docker/ubuntu14/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM ubuntu:14.04

RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get -y upgrade \
&& apt-get -y --no-install-recommends install \
autoconf \
automake \
make \
software-properties-common \
xvfb \
&& apt-add-repository -y ppa:deadsnakes/ppa \
&& apt-get update \
&& apt-get -y --no-install-recommends install \
python3.6 \
&& python3.6 -c "import urllib.request; urllib.request.urlretrieve('https://bootstrap.pypa.io/get-pip.py', '/tmp/get-pip.py')" \
&& python3.6 /tmp/get-pip.py --prefix /usr/local

ADD test-cmd-list.txt \
requirements.txt \
docker/ubuntu14/install-packages.sh \
/tmp/

RUN set -x \
&& python3.6 -m pip install --prefix /usr/local -Ir /tmp/requirements.txt

RUN /tmp/install-packages.sh </tmp/test-cmd-list.txt \
&& rm -r /tmp/* /root/.cache/pip /var/lib/apt/lists/*
77 changes: 77 additions & 0 deletions test/docker/ubuntu14/install-packages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
#!/bin/bash
set -xeuo pipefail

cd ${TMPDIR:-/tmp}

shopt -s extglob
export DEBIAN_FRONTEND=noninteractive

dpkg --add-architecture i386 # for wine

apt-get update
apt-get -y upgrade

apt-get -y --no-install-recommends install \
apt-file \
curl \
software-properties-common

apt-add-repository multiverse

curl -sL https://deb.nodesource.com/setup_8.x | bash -
apt-get -y --no-install-recommends install \
nodejs

npm install -g jshint
npm cache clean --force

apt-file update

excluded=$(
cat <<\EOF
arping
bcron-run
bison++
evince-gtk
gdb-minimal
gnat-4.6
gnuspool
heimdal
inetutils-ping
knot-dnsutils
knot-host
lpr
lprng
mariadb-client-5.5
mariadb-client-core-5.5
mplayer2
mysql-client-5.5
mysql-client-core-5.5
netscript-2.4
openresolv
percona-xtradb-cluster-client-5.5
postgres-xc-client
python3.5-venv
strongswan-starter
sudo-ldap
xserver-xorg-input-synaptics-lts-utopic
xserver-xorg-input-synaptics-lts-vivid
xserver-xorg-input-synaptics-lts-wily
xserver-xorg-input-synaptics-lts-xenial
EOF
)

while read -r file; do
case $file in
/*) printf "%s\n" "$file" ;;
*) printf "%s\n" {/usr,}/{,s}bin/"$file" ;;
esac
done |
apt-file -lFf search - |
grep -vF "$excluded" |
xargs apt-get -y --no-install-recommends install

# Required but not pulled in by dependencies:
apt-get -y --no-install-recommends install \
libwww-perl \
postgresql-client

0 comments on commit 020d403

Please sign in to comment.