Bartek Grzybowski | 007a4bd | 2021-02-01 10:13:03 +0100 | [diff] [blame] | 1 | # Molecule managed |
| 2 | |
| 3 | {% if item.registry is defined %} |
| 4 | FROM {{ item.registry.url }}/{{ item.image }} |
| 5 | {% else %} |
| 6 | FROM {{ item.image }} |
| 7 | {% endif %} |
| 8 | |
Bartek Grzybowski | dbd75bb | 2021-11-24 13:28:29 +0100 | [diff] [blame^] | 9 | RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y python sudo bash ca-certificates curl && apt-get clean; \ |
Bartek Grzybowski | 007a4bd | 2021-02-01 10:13:03 +0100 | [diff] [blame] | 10 | elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python sudo python-devel python*-dnf bash && dnf clean all; \ |
| 11 | elif [ $(command -v yum) ]; then yum makecache fast && yum install -y python sudo yum-plugin-ovl bash && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \ |
| 12 | elif [ $(command -v zypper) ]; then zypper refresh && zypper install -y python sudo bash python-xml && zypper clean -a; \ |
| 13 | elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; \ |
| 14 | elif [ $(command -v xbps-install) ]; then xbps-install -Syu && xbps-install -y python sudo bash ca-certificates && xbps-remove -O; fi |