-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1493 from samvarankashyap/add_fedora31_container
Merged by Jenkins
- Loading branch information
Showing
30 changed files
with
229 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
FROM fedora:31 | ||
LABEL maintainer "https://github.com/CentOS-PaaS-SIG/linchpin" | ||
LABEL description "This container will verify linchpin works under Fedora-30" | ||
|
||
ENV HOME=/root | ||
WORKDIR $HOME | ||
|
||
|
||
RUN dnf -y install python3-pip ansible curl gcc python3-devel \ | ||
openssl-devel libvirt-daemon-driver-* libvirt-daemon \ | ||
libvirt-daemon-kvm qemu-kvm libvirt-daemon-config-network \ | ||
python3-libvirt libvirt-devel redhat-rpm-config file \ | ||
openssh genisoimage libvirt-client virt-install net-tools \ | ||
make libxslt-python krb5-workstation jq buildah \ | ||
python3-libselinux git \ | ||
&& dnf clean all; \ | ||
(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/*; \ | ||
rm -f /usr/sbin/vgs; \ | ||
rm -f /usr/sbin/lvs; \ | ||
rm -f /usr/sbin/pvs; \ | ||
systemctl enable libvirtd; \ | ||
systemctl enable virtlockd | ||
|
||
RUN export GIT_PYTHON_GIT_EXECUTABLE=/usr/bin/git | ||
|
||
RUN curl -o /etc/yum.repos.d/beaker-client.repo \ | ||
https://beaker-project.org/yum/beaker-client-Fedora.repo; \ | ||
dnf -y install beaker-client; \ | ||
dnf clean all | ||
|
||
COPY init_libvirt.sh $HOME/ | ||
|
||
RUN pip3 install -U setuptools; \ | ||
sed -i "/Service/a ExecStartPost=\/bin\/chmod 666 /dev/kvm" \ | ||
/usr/lib/systemd/system/libvirtd.service | ||
|
||
RUN echo "namespaces = []" >> /etc/libvirt/qemu.conf | ||
|
||
# /workdir should include the source code of linchpin | ||
VOLUME [ "/workdir" ] | ||
CMD ["/usr/sbin/init"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash -x | ||
|
||
WORKDIR=$(pwd) | ||
|
||
pip install . --ignore-installed | ||
pip install .[tests] | ||
pip install .[libvirt] | ||
pip install .[beaker] | ||
pip install .[docker] | ||
pip install .[azure] | ||
pip install .[openshift] | ||
|
||
# If duffy.key is available then install duffy ansible module. | ||
if [ -e "keys/duffy.key" ]; then | ||
# duffy key needs to be in home dir by default | ||
#cp duffy ~/duffy,key | ||
|
||
# Link duffy module linchpin library | ||
pushd ~ | ||
linchpin_path=$(python -c 'import os, linchpin; print(os.path.dirname(linchpin.__file__))') | ||
popd | ||
if [ -n "$linchpin_path" ]; then | ||
pushd $linchpin_path/provision/library | ||
ln -s $WORKDIR/duffy-ansible-module/library/duffy.py . | ||
popd | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.