Skip to content

Commit

Permalink
Remove run-from atomic feature.
Browse files Browse the repository at this point in the history
Largely replaced by ADEPT:
https://github.com/cevich/autotest-docker-enabled-product-testing

Signed-off-by: Chris Evich <[email protected]>
  • Loading branch information
cevich committed Jun 24, 2015
1 parent 52d2313 commit 52086c4
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 221 deletions.
58 changes: 1 addition & 57 deletions Dockerfile
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"
60 changes: 0 additions & 60 deletions atomic/atomic_install.sh

This file was deleted.

18 changes: 0 additions & 18 deletions atomic/control_config.sh

This file was deleted.

32 changes: 0 additions & 32 deletions atomic/defaults_config.sh

This file was deleted.

27 changes: 0 additions & 27 deletions atomic/switch_version.sh

This file was deleted.

27 changes: 0 additions & 27 deletions atomic/tests_config.sh

This file was deleted.

2 changes: 2 additions & 0 deletions atomic/config_value.py → config_value.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env python

"""Simple utility to extract a value from a set of ini-files"""

import sys
from ConfigParser import SafeConfigParser

Expand Down

0 comments on commit 52086c4

Please sign in to comment.