Skip to content

Commit

Permalink
Initial commit of dockerfiles which will be used to test netdata-ansi…
Browse files Browse the repository at this point in the history
…ble (#215)

against using Ansible Molecule.
Note that these dockerfiles/images are provisional as they should
enable systemd support but have not been tested yet.
  • Loading branch information
luisj1983 authored Sep 18, 2023
1 parent 97483ed commit 16668fd
Show file tree
Hide file tree
Showing 3 changed files with 129 additions and 0 deletions.
43 changes: 43 additions & 0 deletions ansible-docker/Dockerfile.ubuntu1804
Original file line number Diff line number Diff line change
@@ -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 <agent-sre@netdata.cloud>

# 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 <bot@netdata.cloud>"
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"]
43 changes: 43 additions & 0 deletions ansible-docker/Dockerfile.ubuntu2004
Original file line number Diff line number Diff line change
@@ -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 <agent-sre@netdata.cloud>

# 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 <bot@netdata.cloud>"
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"]
43 changes: 43 additions & 0 deletions ansible-docker/Dockerfile.ubuntu2204
Original file line number Diff line number Diff line change
@@ -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 <agent-sre@netdata.cloud>

# 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 <bot@netdata.cloud>"
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"]

0 comments on commit 16668fd

Please sign in to comment.