From c7d2da3d72ab77f67f16d359e6b572b131c38d7b Mon Sep 17 00:00:00 2001 From: Peter Schiffer <3899107+pschiffe@users.noreply.github.com> Date: Sun, 17 Dec 2023 02:38:00 +0100 Subject: [PATCH] Fix broken PyYAML dep for pdns-admin Fixes #116 --- pdns-admin-base-ngoduykhanh/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pdns-admin-base-ngoduykhanh/Dockerfile b/pdns-admin-base-ngoduykhanh/Dockerfile index e16d892..ea462c9 100644 --- a/pdns-admin-base-ngoduykhanh/Dockerfile +++ b/pdns-admin-base-ngoduykhanh/Dockerfile @@ -3,10 +3,12 @@ FROM fedora:38 RUN curl -sSL -o /etc/yum.repos.d/yarn.repo https://dl.yarnpkg.com/rpm/yarn.repo \ && dnf -y --setopt=install_weak_deps=False install \ nodejs-npm \ + python3-cffi \ python3-ldap \ python3-lxml \ python3-mysql \ python3-pip \ + python3-pyyaml \ python3-saml \ python3-setuptools \ python3-wheel \ @@ -18,11 +20,13 @@ RUN curl -sSL -o /etc/yum.repos.d/yarn.repo https://dl.yarnpkg.com/rpm/yarn.repo RUN mkdir -p /opt/powerdns-admin \ && curl -sSL https://github.com/PowerDNS-Admin/PowerDNS-Admin/archive/refs/tags/v0.4.1.tar.gz \ | tar -xzC /opt/powerdns-admin --strip 1 \ + && sed -i '/cffi/d' /opt/powerdns-admin/requirements.txt \ && sed -i '/lxml/d' /opt/powerdns-admin/requirements.txt \ && sed -i '/mysqlclient/d' /opt/powerdns-admin/requirements.txt \ && sed -i '/psycopg2/d' /opt/powerdns-admin/requirements.txt \ && sed -i '/python-ldap/d' /opt/powerdns-admin/requirements.txt \ && sed -i '/python3-saml/d' /opt/powerdns-admin/requirements.txt \ + && sed -i '/PyYAML/d' /opt/powerdns-admin/requirements.txt \ && chown -R root: /opt/powerdns-admin WORKDIR /opt/powerdns-admin