-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Largely replaced by ADEPT: https://github.com/cevich/autotest-docker-enabled-product-testing Signed-off-by: Chris Evich <[email protected]>
- Loading branch information
Showing
7 changed files
with
3 additions
and
221 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,3 @@ | ||
FROM docker.io/stackbrew/centos:7 | ||
MAINTAINER [email protected] | ||
################################################################################ | ||
# Configuration Options | ||
################################################################################ | ||
ENV AUTOTEST_PATH="/usr/local/autotest" \ | ||
DOCKER_AUTOTEST_PATH="/usr/local/autotest/client/tests/docker" \ | ||
AUTOTEST_URL="https://github.com/autotest/autotest.git" \ | ||
PROTECT_IMAGES="stackbrew/centos:7, stackbrew/centos:latest" \ | ||
PROTECT_CONTAINERS="" \ | ||
REPO_INSTALL="yum install -y \ | ||
http://linux.mirrors.es.net/fedora-epel/7/x86_64/e/epel-release-7-5.noarch.rpm" \ | ||
INSTALL_RPMS="procps tar findutils bzip2 gdb bridge-utils \ | ||
nfs-utils git glibc-devel python-sphinx python-bugzilla which pylint \ | ||
make python-pep8 python-sphinxcontrib-httpdomain" \ | ||
SWITCH_VERSION="yes" \ | ||
TESTS_CONFIG="yes" \ | ||
DEFAULTS_CONFIG="yes" \ | ||
LC_ALL="C" \ | ||
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin" | ||
################################################################################ | ||
LABEL INSTALL="/usr/bin/docker run \ | ||
--interactive \ | ||
--rm \ | ||
--privileged \ | ||
--net=host \ | ||
--ipc=host \ | ||
--pid=host \ | ||
--env HOST=/host \ | ||
--env NAME=NAME \ | ||
--env IMAGE=IMAGE \ | ||
--volume /run:/run \ | ||
--volume /var/log:/var/log \ | ||
--volume /:/host \ | ||
--read-only \ | ||
--name NAME \ | ||
IMAGE \ | ||
/usr/local/autotest/client/tests/docker/atomic/atomic_install.sh" | ||
LABEL RUN="/usr/local/autotest/client/autotest-local run docker" | ||
LABEL UNINSTALL="rm -rf /usr/local/autotest" | ||
################################################################################ | ||
RUN yum --disablerepo="*-eus-*" --disablerepo="*-htb-*" --disablerepo="*-ha-*" \ | ||
--disablerepo="*-rt-*" --disablerepo="*-lb-*" --disablerepo="*-rs-*" \ | ||
--disablerepo="*-sap-*" --disablerepo="*beta*" \ | ||
install -y deltarpm yum-utils && \ | ||
yum-config-manager --disable "*-eus-*" "*-htb-*" "*-ha-*" "*-rt-*" \ | ||
"*-lb-*" "*-rs-*" "*-sap-*" "*beta*" &> /dev/null && \ | ||
yum-config-manager --enable "*-optional-rpms" &> /dev/null && \ | ||
yum update -y && \ | ||
${REPO_INSTALL} && \ | ||
yum install -y ${INSTALL_RPMS} && \ | ||
yum clean all && \ | ||
rm -rf /usr/share/doc/* && \ | ||
rm -rf /usr/share/man/* | ||
RUN git clone --single-branch ${AUTOTEST_URL} ${AUTOTEST_PATH} | ||
################################################################################ | ||
ADD / /${DOCKER_AUTOTEST_PATH}/ | ||
WORKDIR ${AUTOTEST_PATH}/client | ||
RUN echo -e "\nComplete installation with 'atomic install IMAGE'\n" | ||
RUN echo -e "\nIt works!\n" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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