Samuli Silvius | 8fd2314 | 2019-04-17 19:42:59 +0300 | [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 | |
| 9 | RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y python sudo bash ca-certificates && apt-get clean; \ |
| 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 |