Skip to content

Commit

Permalink
Fix tests and build issues
Browse files Browse the repository at this point in the history
* Readd python for rpl
* Fix tests
  • Loading branch information
mblaschke committed Mar 28, 2017
1 parent 065056f commit 0c68574
Show file tree
Hide file tree
Showing 41 changed files with 198 additions and 76 deletions.
1 change: 1 addition & 0 deletions docker/base/alpine-3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ RUN /usr/local/bin/apk-install \
# Install services
RUN chmod +x /opt/docker/bin/* \
&& /usr/local/bin/apk-install \
python \
supervisor \
syslog-ng \
wget \
Expand Down
1 change: 1 addition & 0 deletions docker/base/centos-7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ RUN /usr/local/bin/yum-install \
# Install services
RUN chmod +x /opt/docker/bin/* \
&& /usr/local/bin/yum-install \
python \
cronie \
supervisor \
syslog-ng \
Expand Down
1 change: 1 addition & 0 deletions docker/base/debian-7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ RUN /usr/local/bin/apt-install \
# Install packages
RUN chmod +x /opt/docker/bin/* \
&& /usr/local/bin/apt-install \
python-minimal \
supervisor \
syslog-ng \
syslog-ng-core \
Expand Down
1 change: 1 addition & 0 deletions docker/base/debian-8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ RUN /usr/local/bin/apt-install \
# Install packages
RUN chmod +x /opt/docker/bin/* \
&& /usr/local/bin/apt-install \
python-minimal \
supervisor \
syslog-ng \
syslog-ng-core \
Expand Down
1 change: 1 addition & 0 deletions docker/base/debian-9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ RUN /usr/local/bin/apt-install \
# Install packages
RUN chmod +x /opt/docker/bin/* \
&& /usr/local/bin/apt-install \
python-minimal \
supervisor \
syslog-ng \
syslog-ng-core \
Expand Down
1 change: 1 addition & 0 deletions docker/base/ubuntu-12.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ RUN /usr/local/bin/apt-install \
# Install services
RUN chmod +x /opt/docker/bin/* \
&& /usr/local/bin/apt-install \
python-minimal \
supervisor \
syslog-ng \
syslog-ng-core \
Expand Down
1 change: 1 addition & 0 deletions docker/base/ubuntu-14.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ RUN /usr/local/bin/apt-install \
# Install services
RUN chmod +x /opt/docker/bin/* \
&& /usr/local/bin/apt-install \
python-minimal \
supervisor \
syslog-ng \
syslog-ng-core \
Expand Down
1 change: 1 addition & 0 deletions docker/base/ubuntu-15.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ RUN /usr/local/bin/apt-install \
# Install services
RUN chmod +x /opt/docker/bin/* \
&& /usr/local/bin/apt-install \
python-minimal \
supervisor \
syslog-ng \
syslog-ng-core \
Expand Down
1 change: 1 addition & 0 deletions docker/base/ubuntu-15.10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ RUN /usr/local/bin/apt-install \
# Install services
RUN chmod +x /opt/docker/bin/* \
&& /usr/local/bin/apt-install \
python-minimal \
supervisor \
syslog-ng \
syslog-ng-core \
Expand Down
1 change: 1 addition & 0 deletions docker/base/ubuntu-16.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ RUN /usr/local/bin/apt-install \
# Install services
RUN chmod +x /opt/docker/bin/* \
&& /usr/local/bin/apt-install \
python-minimal \
supervisor \
syslog-ng \
syslog-ng-core \
Expand Down
1 change: 1 addition & 0 deletions docker/base/ubuntu-16.10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ RUN /usr/local/bin/apt-install \
# Install services
RUN chmod +x /opt/docker/bin/* \
&& /usr/local/bin/apt-install \
python-minimal \
supervisor \
syslog-ng \
syslog-ng-core \
Expand Down
2 changes: 1 addition & 1 deletion docker/bootstrap/alpine-3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ENV LC_ALL "en_US.UTF-8"

ADD baselayout.tar /

# Init bootstrap (and install ansible)
# Init bootstrap
RUN set -x \
# Fix root terminal
&& echo "export TERM=xterm" >> /root/.bashrc \
Expand Down
3 changes: 1 addition & 2 deletions docker/bootstrap/centos-7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ ENV LC_ALL "en_US.UTF-8"

ADD baselayout.tar /

# Init bootstrap (and install ansible)
# Init bootstrap
RUN set -x \
# Fix root terminal
&& echo "export TERM=xterm" >> /root/.bashrc \
# System update
&& /usr/local/bin/yum-upgrade \
# Install ansible
&& /usr/local/bin/yum-install \
epel-release \
&& /usr/local/bin/generate-dockerimage-info \
Expand Down
2 changes: 1 addition & 1 deletion docker/bootstrap/debian-7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ENV LC_ALL "en_US.UTF-8"

ADD baselayout.tar /

# Init bootstrap (and install ansible)
# Init bootstrap
RUN set -x \
# Fix root terminal
&& echo "export TERM=xterm" >> /root/.bashrc \
Expand Down
2 changes: 1 addition & 1 deletion docker/bootstrap/debian-8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ENV LC_ALL "en_US.UTF-8"

ADD baselayout.tar /

# Init bootstrap (and install ansible)
# Init bootstrap
RUN set -x \
# Fix root terminal
&& echo "export TERM=xterm" >> /root/.bashrc \
Expand Down
2 changes: 1 addition & 1 deletion docker/bootstrap/debian-9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ENV LC_ALL "en_US.UTF-8"

ADD baselayout.tar /

# Init bootstrap (and install ansible)
# Init bootstrap
RUN set -x \
# Fix root terminal
&& echo "export TERM=xterm" >> /root/.bashrc \
Expand Down
2 changes: 1 addition & 1 deletion docker/bootstrap/ubuntu-12.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ENV LC_ALL "en_US.UTF-8"

ADD baselayout.tar /

# Init bootstrap (and install ansible)
# Init bootstrap
RUN set -x \
# Add multiverse
&& echo "deb http://archive.ubuntu.com/ubuntu/ precise-security multiverse" >> /etc/apt/sources.list \
Expand Down
2 changes: 1 addition & 1 deletion docker/bootstrap/ubuntu-14.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ENV LC_ALL "en_US.UTF-8"

ADD baselayout.tar /

# Init bootstrap (and install ansible)
# Init bootstrap
RUN set -x \
&& apt-update \
# Fix root terminal
Expand Down
2 changes: 1 addition & 1 deletion docker/bootstrap/ubuntu-15.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ENV LC_ALL "en_US.UTF-8"

ADD baselayout.tar /

# Init bootstrap (and install ansible)
# Init bootstrap
RUN set -x \
&& apt-update \
# Fix root terminal
Expand Down
2 changes: 1 addition & 1 deletion docker/bootstrap/ubuntu-15.10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ENV LC_ALL "en_US.UTF-8"

ADD baselayout.tar /

# Init bootstrap (and install ansible)
# Init bootstrap
RUN set -x \
&& apt-update \
# Fix root terminal
Expand Down
2 changes: 1 addition & 1 deletion docker/bootstrap/ubuntu-16.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ENV LC_ALL "en_US.UTF-8"

ADD baselayout.tar /

# Init bootstrap (and install ansible)
# Init bootstrap
RUN set -x \
&& apt-update \
# Fix root terminal
Expand Down
2 changes: 1 addition & 1 deletion docker/bootstrap/ubuntu-16.10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ENV LC_ALL "en_US.UTF-8"

ADD baselayout.tar /

# Init bootstrap (and install ansible)
# Init bootstrap
RUN set -x \
&& apt-update \
# Fix root terminal
Expand Down
8 changes: 7 additions & 1 deletion docker/certbot/latest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,11 @@ VOLUME /etc/letsencrypt
VOLUME /var/www

RUN /usr/local/bin/apk-install \
python \
py-crypto \
py2-pip \
certbot \
&& pip install pyRFC3339 configobj ConfigArgParse
&& pip install --upgrade pip \
&& hash -r \
&& pip install pyRFC3339 configobj ConfigArgParse \
&& /usr/local/bin/docker-image-cleanup
27 changes: 26 additions & 1 deletion docker/samson-deployment/latest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ENV LC_ALL "en_US.UTF-8"

ADD baselayout.tar /

# Init bootstrap (and install ansible)
# Init bootstrap
RUN set -x \
# Fix root terminal
&& echo "export TERM=xterm" >> /root/.bashrc \
Expand Down Expand Up @@ -63,9 +63,34 @@ ENV DOCKER_CONF_HOME /opt/docker/

COPY conf/ /opt/docker/

# Install ansible
RUN /usr/local/bin/apt-install \
# Install ansible
python-minimal \
python-setuptools \
python-pip \
python-paramiko \
python-jinja2 \
python-dev \
libffi-dev \
libssl-dev \
build-essential \
&& pip install --upgrade pip \
&& hash -r \
&& pip install --no-cache-dir ansible \
&& chmod 750 /usr/local/bin/ansible* \
# Cleanup
&& apt-get purge -y -f --force-yes \
python-dev \
build-essential \
libssl-dev \
libffi-dev \
&& /usr/local/bin/docker-image-cleanup

# Install packages
RUN chmod +x /opt/docker/bin/* \
&& /usr/local/bin/apt-install \
python-minimal \
supervisor \
syslog-ng \
syslog-ng-core \
Expand Down
2 changes: 2 additions & 0 deletions docker/samson-deployment/latest/Dockerfile.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

{{ docker.copy('conf/', '/opt/docker/') }}

{{ ansible.debian() }}

{{ base.debian() }}

###############################################################################
Expand Down
6 changes: 6 additions & 0 deletions docker/sphinx/latest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ LABEL io.webdevops.layout=8
LABEL io.webdevops.version=1.5.0

RUN /usr/local/bin/apk-install \
# General python
python \
py-crypto \
py2-pip \
# General sphinx
py-pillow \
py-yaml \
Expand All @@ -19,6 +23,8 @@ RUN /usr/local/bin/apk-install \
# GRAPHVIZ
graphviz \
ttf-dejavu \
&& pip install --upgrade pip \
&& hash -r \
&& pip install --upgrade sphinxcontrib-googlechart \
&& pip install --upgrade sphinxcontrib-googlemaps \
&& pip install --upgrade sphinxcontrib-httpdomain \
Expand Down
4 changes: 4 additions & 0 deletions template/Dockerfile/images/base.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# Install services
RUN chmod +x /opt/docker/bin/* \
&& /usr/local/bin/apk-install \
python \
supervisor \
syslog-ng \
wget \
Expand All @@ -21,6 +22,7 @@ RUN chmod +x /opt/docker/bin/* \
# Install services
RUN chmod +x /opt/docker/bin/* \
&& /usr/local/bin/yum-install \
python \
cronie \
supervisor \
syslog-ng \
Expand All @@ -38,6 +40,7 @@ RUN chmod +x /opt/docker/bin/* \
# Install packages
RUN chmod +x /opt/docker/bin/* \
&& /usr/local/bin/apt-install \
python-minimal \
supervisor \
syslog-ng \
syslog-ng-core \
Expand All @@ -56,6 +59,7 @@ RUN chmod +x /opt/docker/bin/* \
# Install services
RUN chmod +x /opt/docker/bin/* \
&& /usr/local/bin/apt-install \
python-minimal \
supervisor \
syslog-ng \
syslog-ng-core \
Expand Down
11 changes: 5 additions & 6 deletions template/Dockerfile/images/bootstrap.jinja2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% import 'Dockerfile/docker.jinja2' as docker %}

{% macro alpine() -%}
# Init bootstrap (and install ansible)
# Init bootstrap
RUN set -x \
# Fix root terminal
&& echo "export TERM=xterm" >> /root/.bashrc \
Expand Down Expand Up @@ -36,13 +36,12 @@ RUN set -x \


{% macro centos() -%}
# Init bootstrap (and install ansible)
# Init bootstrap
RUN set -x \
# Fix root terminal
&& echo "export TERM=xterm" >> /root/.bashrc \
# System update
&& /usr/local/bin/yum-upgrade \
# Install ansible
&& /usr/local/bin/yum-install \
epel-release \
&& /usr/local/bin/generate-dockerimage-info \
Expand All @@ -64,7 +63,7 @@ RUN set -x \


{% macro debian(distribution) -%}
# Init bootstrap (and install ansible)
# Init bootstrap
RUN set -x \
# Fix root terminal
&& echo "export TERM=xterm" >> /root/.bashrc \
Expand Down Expand Up @@ -101,7 +100,7 @@ RUN set -x \


{% macro ubuntu12() -%}
# Init bootstrap (and install ansible)
# Init bootstrap
RUN set -x \
# Add multiverse
&& echo "deb http://archive.ubuntu.com/ubuntu/ precise-security multiverse" >> /etc/apt/sources.list \
Expand Down Expand Up @@ -140,7 +139,7 @@ RUN set -x \


{% macro ubuntu() -%}
# Init bootstrap (and install ansible)
# Init bootstrap
RUN set -x \
&& apt-update \
# Fix root terminal
Expand Down
8 changes: 7 additions & 1 deletion template/Dockerfile/images/certbot.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ ENV CERTBOT_DOMAIN ""

{% macro alpine() -%}
RUN /usr/local/bin/apk-install \
python \
py-crypto \
py2-pip \
certbot \
&& pip install pyRFC3339 configobj ConfigArgParse
&& pip install --upgrade pip \
&& hash -r \
&& pip install pyRFC3339 configobj ConfigArgParse \
{{ docker.cleanup() }}
{%- endmacro %}
6 changes: 6 additions & 0 deletions template/Dockerfile/images/sphinx.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

{% macro alpine() -%}
RUN /usr/local/bin/apk-install \
# General python
python \
py-crypto \
py2-pip \
# General sphinx
py-pillow \
py-yaml \
Expand All @@ -11,6 +15,8 @@ RUN /usr/local/bin/apk-install \
# GRAPHVIZ
graphviz \
ttf-dejavu \
&& pip install --upgrade pip \
&& hash -r \
&& pip install --upgrade sphinxcontrib-googlechart \
&& pip install --upgrade sphinxcontrib-googlemaps \
&& pip install --upgrade sphinxcontrib-httpdomain \
Expand Down

0 comments on commit 0c68574

Please sign in to comment.