Commit 912baf57 authored by Hispanico's avatar Hispanico
Browse files

Merge branch 'develop' into 'master'

Created Dockerfile to build Debian 10 image

See merge request !5
parents a72925c0 09399f56
Loading
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
@@ -69,6 +69,13 @@ build_debian9:

  <<: *docker_build

build_debian10:
  variables:
    DISTRO: 'debian10'
    TAG: '10'

  <<: *docker_build

test_debian8:
  variables:
    DISTRO: 'debian8'
@@ -85,6 +92,14 @@ test_debian9:

  <<: *test_image

test_debian10:
  variables:
    DISTRO: 'debian10'
    INIT: /lib/systemd/systemd
    TAG: '10'

  <<: *test_image

release_image_debian8:
  variables:
    TAG: '8'
@@ -99,6 +114,13 @@ release_image_debian9:

  <<: *release_image

release_image_debian10:
  variables:
    TAG: '10'
    RELEASE_TAG: '10'

  <<: *release_image

release_image_latest:
  variables:
    TAG: '9'

Dockerfile.debian10

0 → 100644
+29 −0
Original line number Diff line number Diff line
FROM debian:buster
LABEL maintainer="Hispanico"

ENV DEBIAN_FRONTEND noninteractive

# Install dependencies.
RUN apt-get update \
    && apt-get install -y --no-install-recommends \
       sudo systemd curl git \
    && rm -rf /var/lib/apt/lists/* \
    && rm -Rf /usr/share/doc && rm -Rf /usr/share/man \
    && apt-get clean

# Install Ansible via pip.
RUN apt-get update \
    && apt-get install -y --no-install-recommends \
       build-essential libffi-dev libssl-dev \
       python-pip python-dev python-setuptools python-wheel \
    && rm -rf /var/lib/apt/lists/* \
    && rm -Rf /usr/share/doc && rm -Rf /usr/share/man \
    && apt-get clean
RUN pip install ansible cryptography

COPY initctl_faker .
RUN chmod +x initctl_faker && rm -fr /sbin/initctl && ln -s /initctl_faker /sbin/initctl

# Install Ansible inventory file
RUN mkdir -p /etc/ansible \
    && echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts