#! /bin/sh

# Quality of Life utilities:
qol='
	nvi
	nano
	less
	procps
	strace
	wget
	curl
	unzip
'

# Required for building Debian packages (tools/make-dist):
building='
	ca-certificates
	git
	build-essential
	devscripts
'

# Services necessary for hosting the application inside Docker:
hosting='
'

# Build-Depends from debian/control:
build_depends='
	debhelper
	dh-python
	python3-setuptools
'

# For running the Django unit tests:
test_depends='
'

# Depends from debian/control
depends='
'

# Packages to bootstrap and test Vue:
vue='
'

set -ex

export UCF_FORCE_CONFFOLD=1 DEBIAN_FRONTEND=noninteractive

# Always update: due to docker caching there can be a lot of time between
# the RUN statements in Dockerfile!
apt-get update

apt-get -o Dpkg::Options::=--force-confold -y install apt-utils eatmydata
eatmydata apt-get -o Dpkg::Options::=--force-confold -y upgrade

adduser --gecos "Eloquent"  --home /nonexistent         --uid 500     --system --group --no-create-home  eloquent
adduser --gecos Developer           --home /home/dash           --uid 1000    --disabled-password                dash

eatmydata apt-get -o Dpkg::Options::=--force-confold -y install $qol $building $hosting $build_depends $test_depends $depends $vue

apt-get clean
