Commit 09399f56 authored by Hispanico's avatar Hispanico

Created Dockerfile to build Debian 10 image

parent 6903fe62
Pipeline #591 passed with stages
in 16 minutes and 54 seconds
......@@ -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'
......
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
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