Skip to content
Permalink
Browse files

Added a symlink creation instruction to make sure testinfra detects s…

…ystemd.
  • Loading branch information...
Frzk committed Mar 22, 2019
1 parent df7d5b9 commit dd8dca5dc70ec10ca41709caea17199bac8611f3
Showing with 8 additions and 2 deletions.
  1. +8 −2 Dockerfile
@@ -3,15 +3,21 @@
FROM archlinux/base:latest
LABEL maintainer="François KUBLER"

RUN pacman -Syu --noconfirm \
&& pacman -S --noconfirm \
RUN pacman -Sy --noconfirm \
archlinux-keyring \
&& pacman -Syu --noconfirm \
&& pacman -Sy --noconfirm \
git \
python-pip

RUN pip install --upgrade setuptools \
&& pip install wheel \
&& pip install ansible

# Make sure /sbin/init points to /usr/lib/systemd/systemd
# so that testinfra detects the container as 'systemd'.
RUN ln -s /usr/lib/systemd/systemd /sbin/init

RUN mkdir -p /etc/ansible
ADD hosts /etc/ansible

0 comments on commit dd8dca5

Please sign in to comment.
You can’t perform that action at this time.