From 16668fd3cad85356e82360b82efcb6cf0e98ae20 Mon Sep 17 00:00:00 2001 From: Luis Johnstone <67982749+luisj1983@users.noreply.github.com> Date: Mon, 18 Sep 2023 07:28:20 +0100 Subject: [PATCH] Initial commit of dockerfiles which will be used to test netdata-ansible (#215) against using Ansible Molecule. Note that these dockerfiles/images are provisional as they should enable systemd support but have not been tested yet. --- ansible-docker/Dockerfile.ubuntu1804 | 43 ++++++++++++++++++++++++++++ ansible-docker/Dockerfile.ubuntu2004 | 43 ++++++++++++++++++++++++++++ ansible-docker/Dockerfile.ubuntu2204 | 43 ++++++++++++++++++++++++++++ 3 files changed, 129 insertions(+) create mode 100644 ansible-docker/Dockerfile.ubuntu1804 create mode 100644 ansible-docker/Dockerfile.ubuntu2004 create mode 100644 ansible-docker/Dockerfile.ubuntu2204 diff --git a/ansible-docker/Dockerfile.ubuntu1804 b/ansible-docker/Dockerfile.ubuntu1804 new file mode 100644 index 0000000..8444c28 --- /dev/null +++ b/ansible-docker/Dockerfile.ubuntu1804 @@ -0,0 +1,43 @@ +# This image is used to speed up the testing process for Netdata Ansible-docker images. +# This image is for testing purposes only and is not verified for production use. +# +# Copyright: 2023 and later Netdata Incorporated +# SPDX-License-Identifier: GPL-3.0-or-later +# +# Author : Netdata packaging team + +# This image is used to speed up test process for netdata ansible-docker images. + +FROM ubuntu:18.04 as builder + +LABEL org.opencontainers.image.authors="Netdatabot " +LABEL org.opencontainers.image.source="https://github.com/netdata/helper-images" +LABEL org.opencontainers.image.title="Netdata Ansible-Docker Base Image" +LABEL org.opencontainers.image.description="Base image for official Netdata Ansible-Docker images." +LABEL org.opencontainers.image.vendor="Netdata Inc." + +ARG RELEASE +ARG LAUNCHPAD_BUILD_ARCH +ARG DEBIAN_FRONTEND=noninteractive +ARG container=docker +ARG LANG=en_US.UTF-8 +ARG LC_ALL=en_US.UTF-8 + +RUN apt-get update && apt-get install -y --no-install-recommends \ + apt-utils \ + curl \ + gpg-agent \ + nano \ + python3 \ + software-properties-common \ + rsyslog \ + systemd \ + systemd-cron \ + sudo \ + && apt-get clean \ + && rm -Rf /var/lib/apt/lists/* \ + && rm -Rf /usr/share/doc \ + && rm -Rf /usr/share/man + +VOLUME [/sys/fs/cgroup] +CMD ["/lib/systemd/systemd"] diff --git a/ansible-docker/Dockerfile.ubuntu2004 b/ansible-docker/Dockerfile.ubuntu2004 new file mode 100644 index 0000000..12396c1 --- /dev/null +++ b/ansible-docker/Dockerfile.ubuntu2004 @@ -0,0 +1,43 @@ +# This image is used to speed up the testing process for Netdata Ansible-docker images. +# This image is for testing purposes only and is not verified for production use. +# +# Copyright: 2023 and later Netdata Incorporated +# SPDX-License-Identifier: GPL-3.0-or-later +# +# Author : Netdata packaging team + +# This image is used to speed up test process for netdata ansible-docker images. + +FROM ubuntu:20.04 as builder + +LABEL org.opencontainers.image.authors="Netdatabot " +LABEL org.opencontainers.image.source="https://github.com/netdata/helper-images" +LABEL org.opencontainers.image.title="Netdata Ansible-Docker Base Image" +LABEL org.opencontainers.image.description="Base image for official Netdata Ansible-Docker images." +LABEL org.opencontainers.image.vendor="Netdata Inc." + +ARG RELEASE +ARG LAUNCHPAD_BUILD_ARCH +ARG DEBIAN_FRONTEND=noninteractive +ARG container=docker +ARG LANG=en_US.UTF-8 +ARG LC_ALL=en_US.UTF-8 + +RUN apt-get update && apt-get install -y --no-install-recommends \ + apt-utils \ + curl \ + gpg-agent \ + nano \ + python3 \ + software-properties-common \ + rsyslog \ + systemd \ + systemd-cron \ + sudo \ + && apt-get clean \ + && rm -Rf /var/lib/apt/lists/* \ + && rm -Rf /usr/share/doc \ + && rm -Rf /usr/share/man + +VOLUME [/sys/fs/cgroup] +CMD ["/lib/systemd/systemd"] diff --git a/ansible-docker/Dockerfile.ubuntu2204 b/ansible-docker/Dockerfile.ubuntu2204 new file mode 100644 index 0000000..01528ca --- /dev/null +++ b/ansible-docker/Dockerfile.ubuntu2204 @@ -0,0 +1,43 @@ +# This image is used to speed up the testing process for Netdata Ansible-docker images. +# This image is for testing purposes only and is not verified for production use. +# +# Copyright: 2023 and later Netdata Incorporated +# SPDX-License-Identifier: GPL-3.0-or-later +# +# Author : Netdata packaging team + +# This image is used to speed up test process for netdata ansible-docker images. + +FROM ubuntu:22.04 as builder + +LABEL org.opencontainers.image.authors="Netdatabot " +LABEL org.opencontainers.image.source="https://github.com/netdata/helper-images" +LABEL org.opencontainers.image.title="Netdata Ansible-Docker Base Image" +LABEL org.opencontainers.image.description="Base image for official Netdata Ansible-Docker images." +LABEL org.opencontainers.image.vendor="Netdata Inc." + +ARG RELEASE +ARG LAUNCHPAD_BUILD_ARCH +ARG DEBIAN_FRONTEND=noninteractive +ARG container=docker +ARG LANG=en_US.UTF-8 +ARG LC_ALL=en_US.UTF-8 + +RUN apt-get update && apt-get install -y --no-install-recommends \ + apt-utils \ + curl \ + gpg-agent \ + nano \ + python3 \ + software-properties-common \ + rsyslog \ + systemd \ + systemd-cron \ + sudo \ + && apt-get clean \ + && rm -Rf /var/lib/apt/lists/* \ + && rm -Rf /usr/share/doc \ + && rm -Rf /usr/share/man + +VOLUME [/sys/fs/cgroup] +CMD ["/lib/systemd/systemd"]