From 2d499fdcc21407d2805595013e617f0c2fafc476 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorben=20G=C3=BCnther?= Date: Wed, 1 Sep 2021 00:56:26 +0200 Subject: [PATCH] CI: Enable molecule again Tried to fix 'cannot create temporary directory' bug. --- .build.yml | 22 +++++++++++----------- misc/Dockerfile | 1 - molecule/default/molecule.yml | 2 -- 3 files changed, 11 insertions(+), 14 deletions(-) diff --git a/.build.yml b/.build.yml index 231878e..c1264b3 100644 --- a/.build.yml +++ b/.build.yml @@ -2,10 +2,10 @@ image: archlinux packages: - ansible - ansible-lint - # - docker - # - molecule - # - molecule-docker - # - python-dnspython + - docker + - molecule + - molecule-docker + - python-dnspython - yamllint - terraform sources: @@ -30,10 +30,10 @@ tasks: cd ../terraform_keycloak terraform init -backend=false terraform validate - # - build-docker: | - # cd ansible/misc - # sudo systemctl start docker - # docker build -f Dockerfile -t archlinux-docker . - # - molecule: | - # cd ansible - # molecule test + - build-docker: | + cd ansible/misc + sudo systemctl start docker + docker build -f Dockerfile -t archlinux-docker . + - molecule: | + cd ansible + molecule test diff --git a/misc/Dockerfile b/misc/Dockerfile index bfa37ce..67f8dc3 100644 --- a/misc/Dockerfile +++ b/misc/Dockerfile @@ -21,5 +21,4 @@ RUN pacman -Syu --noconfirm \ RUN mkdir -p /etc/ansible RUN echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts -VOLUME ["/sys/fs/cgroup", "/tmp", "/run"] CMD ["/usr/lib/systemd/systemd"] diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index 8fe8c57..e2b9839 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -13,8 +13,6 @@ platforms: - archlinux image: archlinux-docker command: "" - volumes: - - /sys/fs/cgroup:/sys/fs/cgroup:ro privileged: true pre_build_image: true -- 2.44.0