mirror of
https://github.com/roles-ansible/ansible_role_dotfiles.git
synced 2024-08-16 16:09:49 +02:00
26 lines
929 B
Text
26 lines
929 B
Text
|
FROM fedora:28
|
||
|
|
||
|
RUN dnf -y update
|
||
|
|
||
|
RUN dnf -y install systemd && \
|
||
|
(cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
|
||
|
rm -f /lib/systemd/system/multi-user.target.wants/*;\
|
||
|
rm -f /etc/systemd/system/*.wants/*;\
|
||
|
rm -f /lib/systemd/system/local-fs.target.wants/*; \
|
||
|
rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
|
||
|
rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
|
||
|
rm -f /lib/systemd/system/basic.target.wants/*;\
|
||
|
rm -f /lib/systemd/system/anaconda.target.wants/*;
|
||
|
|
||
|
RUN dnf -y install python2 python-pip libffi-devel redhat-rpm-config python-devel openssl-devel sudo git @development-tools
|
||
|
|
||
|
RUN pip install ansible
|
||
|
|
||
|
RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers
|
||
|
|
||
|
RUN mkdir -p /etc/ansible && echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts
|
||
|
|
||
|
VOLUME ["/sys/fs/cgroup"]
|
||
|
|
||
|
CMD ["/usr/sbin/init"]
|