Skip to content

Commit

Permalink
dbld: add support for Debian stretch
Browse files Browse the repository at this point in the history
Signed-off-by: Balazs Scheidler <balazs.scheidler@oneidentity.com>
  • Loading branch information
bazsi committed Jul 18, 2018
1 parent 928e4c5 commit f9eaab1
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 1 deletion.
1 change: 1 addition & 0 deletions dbld/images/required-apt/all.txt
Expand Up @@ -52,3 +52,4 @@ dh-systemd
docbook
docbook-xsl
dh-exec
gnupg
13 changes: 13 additions & 0 deletions dbld/images/required-apt/stretch.txt
@@ -0,0 +1,13 @@
# required for autogen

# required for configure
libsystemd-dev
openjdk-8-jdk

# required for make

# required for make check

# other tools

# debian packaging tools
5 changes: 5 additions & 0 deletions dbld/images/required-obs/stretch.txt
@@ -0,0 +1,5 @@
libbson-dev
libmongoc-dev
librabbitmq-dev
libriemann-client-dev
python-pep8
6 changes: 6 additions & 0 deletions dbld/images/required-pip/stretch.txt
@@ -0,0 +1,6 @@
nose
ply
pep8
pylint
astroid
logilab-common
40 changes: 40 additions & 0 deletions dbld/images/stretch.dockerfile
@@ -0,0 +1,40 @@
FROM debian:stretch
ARG DISTRO=stretch
ARG OBS_REPO=Debian_9.0

LABEL maintainer="Andras Mitzki <andras.mitzki@balabit.com>, Laszlo Szemere <laszlo.szemere@balabit.com>"

COPY helpers/* /helpers/

# Install packages
RUN apt-get update -qq && apt-get install --no-install-recommends -y \
python-pip \
python-setuptools \
wget

COPY required-pip/all.txt required-pip/${DISTRO}*.txt /required-pip/
RUN cat /required-pip/* | grep -v '^$\|^#' | xargs pip install

COPY required-apt/all.txt required-apt/${DISTRO}*.txt /required-apt/
RUN cat /required-apt/* | grep -v '^$\|^#' | xargs apt-get install --no-install-recommends -y

RUN /helpers/functions.sh add_obs_repo ${OBS_REPO}
COPY required-obs/all.txt required-obs/${DISTRO}*.txt /required-obs/
RUN cat /required-obs/* | grep -v '^$\|^#' | xargs apt-get install --no-install-recommends -y


# grab gosu for easy step-down from root
RUN /helpers/functions.sh step_down_from_root_with_gosu $(dpkg --print-architecture)


# add a fake sudo command
RUN mv /helpers/fake-sudo.sh /usr/bin/sudo


# mount points for source code
RUN mkdir /source
VOLUME /source
VOLUME /build


ENTRYPOINT ["/helpers/entrypoint.sh"]
2 changes: 1 addition & 1 deletion requirements.txt

0 comments on commit f9eaab1

Please sign in to comment.