Browse Source

Add debian image

master
peter 4 years ago
parent
commit
c75d07a20e
  1. 9
      README.md
  2. 31
      debian/base/Dockerfile
  3. 29
      debian/dev/Dockerfile
  4. 0
      ubuntu/base/Dockerfile
  5. 3
      ubuntu/dev/Dockerfile

9
README.md

@ -1,6 +1,9 @@
This is a Ubuntu 16.10 based Image with the main software development tools included, e.g. GCC, Java-8 JDK, Git, Mercurial etc.
This is a new project merging the old debian-dev & ubuntu-dev projects.
This image is not for use in production but when you need to build applications from source.
This provides a suite of docker images based on various linux distributions.
Full documentation: https://area51.onl/Docker/UbuntuDev
Each one has a base image which is based on the applicable standard build by docker.
There's then multiple images based on that one, right now -dev which includes the
main development packages required to compile C/C++ and other common languages
to make it easier to build new packages.

31
debian/base/Dockerfile vendored

@ -0,0 +1,31 @@
ARG debVersion=10
FROM docker.ceres.area51.dev/mirror/library/debian:${debVersion}
MAINTAINER Peter Mount <peter@retep.org>
## for apt to be noninteractive
ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true
# Update apt. Unlike most builds we will keep this in place
#
# Force timezone as this hangs builds waiting for a response
# See https://stackoverflow.com/a/47909037
#
# Add an alternate sources.list for the area51-apt-get wrapper
RUN echo "tzdata tzdata/Areas select Europe" > /tmp/preseed.txt; \
echo "tzdata tzdata/Zones/Europe select London" >> /tmp/preseed.txt; \
debconf-set-selections /tmp/preseed.txt && \
rm -rf /etc/timezone /etc/localtime && \
apt-get update &&\
apt-get install -y \
tzdata \
apt-transport-https \
ca-certificates &&\
cp -p /etc/apt/sources.list /etc/apt/sources.list.orig &&\
sed \
-e "s|http://deb.debian.org/debian|https://nexus.ceres.area51.dev/repository/apt-debian-main/|g" \
-e "s|http://security.debian.org/debian-security|https://nexus.ceres.area51.dev/repository/apt-debian-security/|g" \
/etc/apt/sources.list >/etc/apt/sources.list.area51
# Copy our additional scripts
ADD bin/* /usr/local/bin/

29
debian/dev/Dockerfile vendored

@ -0,0 +1,29 @@
ARG debVersion=10
FROM docker.ceres.area51.dev/debian-base:${debVersion}
MAINTAINER Peter Mount <peter@retep.org>
## for apt to be noninteractive
ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true
RUN area51-apt-get install -y \
man \
curl \
libcurl4-openssl-dev \
unzip \
vim \
zip \
aufs-tools \
autoconf \
automake \
build-essential \
cvs \
git \
mercurial \
reprepro \
subversion \
make \
gcc \
g++ \
python3 \
paxctl

0
ubuntu-base/Dockerfile → ubuntu/base/Dockerfile

3
ubuntu-dev/Dockerfile → ubuntu/dev/Dockerfile

@ -6,9 +6,6 @@ MAINTAINER Peter Mount <peter@retep.org>
ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true
# Update apt. Unlike most builds we will keep this in place
# Force timezone as this hangs builds waiting for a response
# See https://stackoverflow.com/a/47909037
RUN area51-apt-get install -y \
curl \
libcurl4-openssl-dev \
Loading…
Cancel
Save