Commit 1df5a27c authored by ale's avatar ale
Browse files

Introduce a buster-backports build image

parent 7f2b6043
......@@ -25,6 +25,13 @@ build_buster_amd64:
- docker-in-docker
<<: *build_dockerimage
# We need buster-backports temporarily for Go 1.14.
build_buster-backports_amd64:
tags:
- amd64
- docker-in-docker
<<: *build_dockerimage
build_bullseye_amd64:
tags:
- amd64
......
FROM debian:buster
MAINTAINER Autistici / Inventati
# Install package building scripts.
COPY ./scripts/ /usr/bin/
COPY ./docker/buster/build.sh /tmp/build.sh
RUN /tmp/build.sh && rm /tmp/build.sh
#!/bin/sh
# A mix of useful system-level packages for automation (including
# Python), and most importantly all the packages required to build
# Debian packages.
PACKAGES="
curl
gnupg
rsync
openssh-client
build-essential
autoconf
automake
libtool
git
git-buildpackage
equivs
dpkg-dev
devscripts
libwww-perl
debhelper
dh-python
dh-systemd
python
python-dev
python-setuptools
python3-dev
python3-setuptools
"
BACKPORTS_PACKAGES="
golang
"
export DEBIAN_FRONTEND=noninteractive
set -e
echo 'deb http://deb.debian.org/debian buster-backports main' \
> /etc/apt/sources.list.d/backports.list
apt-get -q update
apt-get install -y --no-install-recommends \
$PACKAGES
apt-get install -y --no-install-recommends -t buster-backports \
$PACKAGES
chmod 755 /usr/bin/build-dsc
chmod 755 /usr/bin/build-deb
apt-get clean
rm -fr /var/lib/apt/lists/*
exit 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment