-
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.
Signed-off-by: Ryan Cole <ryan@localhost.localdomain>
- Loading branch information
Showing
26 changed files
with
178 additions
and
22 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 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,47 @@ | ||
FROM centos:8 | ||
LABEL maintainer "https://github.com/CentOS-PaaS-SIG/linchpin" | ||
LABEL description "This container will verify linchpin works under Centos8" | ||
|
||
ENV HOME=/root | ||
WORKDIR $HOME | ||
|
||
RUN dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm | ||
RUN dnf -y install python3 platform-python-pip \ | ||
&& dnf -y install python3 platform-python-pip curl gcc python3-devel openssl-devel \ | ||
libvirt-daemon-driver-* libvirt-daemon libvirt-daemon-kvm \ | ||
qemu-kvm libvirt-daemon-config-network libvirt-python3 \ | ||
libvirt-devel virt-install file openssh mkisofs \ | ||
libvirt-client net-tools git make \ | ||
python3-lxml krb5-workstation \ | ||
python3-requests jq buildah git which \ | ||
&& pip3 install -U pip \ | ||
&& pip3 install -U setuptools \ | ||
&& pip3 install -U pygithub \ | ||
&& pip3 install -U openstackclient boto>=2.49.0 \ | ||
&& pip3 install ansible; \ | ||
(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 sed -i "/Service/a ExecStartPost=\/bin\/chmod 666 /dev/kvm" /usr/lib/systemd/system/libvirtd.service | ||
|
||
#RUN curl -o /etc/yum.repos.d/beaker-client.repo \ | ||
# https://beaker-project.org/yum/beaker-client-CentOS.repo; \ | ||
# dnf -y install beaker-client \ | ||
RUN dnf clean all && rm -rf /var/cache/dnf; | ||
|
||
RUN mkdir -p $HOME/.config | ||
|
||
# /wordir should include the source code of linchpin | ||
VOLUME [ "/workdir" , "/sys/fs/cgroup"] | ||
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
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
2 changes: 1 addition & 1 deletion
2
config/Dockerfiles/tests.d/libvirt/06_libvirt-multi-node-network
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
2 changes: 1 addition & 1 deletion
2
config/Dockerfiles/tests.d/openshift/01_openshift-create-template
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
apiVersion: v1 | ||
kind: Template | ||
labels: | ||
template: centos8-builder | ||
metadata: | ||
annotations: | ||
description: centos8 container | ||
iconClass: centos8 | ||
tags: instant-app | ||
name: centos8-builder | ||
objects: | ||
- apiVersion: v1 | ||
kind: ImageStream | ||
metadata: | ||
annotations: | ||
labels: | ||
name: centos8 | ||
spec: {} | ||
- apiVersion: v1 | ||
kind: BuildConfig | ||
metadata: | ||
name: centos8 | ||
spec: | ||
output: | ||
to: | ||
kind: ImageStreamTag | ||
name: centos8:latest | ||
resources: {} | ||
source: | ||
contextDir: ${REPO_CONTEXTDIR} | ||
git: | ||
ref: ${REPO_REF} | ||
uri: ${REPO_URL} | ||
type: Git | ||
strategy: | ||
dockerStrategy: | ||
dockerfilePath: centos8/Dockerfile | ||
env: | ||
- name: CONTAINER_NAME | ||
value: centos8 | ||
type: Docker | ||
triggers: | ||
- type: ConfigChange | ||
parameters: | ||
- description: Git repository with Dockerfile and slave entrypoint. | ||
displayName: Repository URL | ||
name: REPO_URL | ||
value: https://github.com/CentOS-PaaS-SIG/linchpin.git | ||
- description: The sub-directory inside the repository. | ||
displayName: Context Directory | ||
name: REPO_CONTEXTDIR | ||
value: config/Dockerfiles | ||
- description: The git ref or tag to use for customization. | ||
displayName: Git Reference | ||
name: REPO_REF | ||
value: develop |
Oops, something went wrong.