diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 577bcdea0..000000000 --- a/Dockerfile +++ /dev/null @@ -1,34 +0,0 @@ -FROM centos:centos7 -RUN localedef -i en_US -f UTF-8 en_US.UTF-8 -ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' - -RUN yum install -y centos-release-scl \ - && yum install -y rh-python36 \ - && yum install -y python-virtualenv \ - && yum install -y openssl-devel git \ - && virtualenv /py2 && /py2/bin/pip install -U pip tox future wheel restructuredtext-lint -RUN /py2/bin/pip install https://github.com/ome/zeroc-ice-py-manylinux/releases/download/0.1.0/zeroc_ice-3.6.5-cp27-cp27mu-manylinux2010_x86_64.whl -ENV PATH=/opt/rh/rh-python36/root/bin/:$PATH -RUN python -m venv /py3 && /py3/bin/pip install -U pip tox future wheel restructuredtext-lint -RUN /py3/bin/pip install https://github.com/ome/zeroc-ice-py-manylinux/releases/download/0.1.0/zeroc_ice-3.6.5-cp36-cp36m-manylinux2010_x86_64.whl - -ENV VIRTUAL_ENV=/py3 -ENV PATH="$VIRTUAL_ENV/bin:$PATH" - -RUN useradd -ms /bin/bash tox -USER tox - -# Optimize for fixing tests -COPY --chown=tox:tox *.py /src/ -COPY --chown=tox:tox README.rst /src -COPY --chown=tox:tox src /src/src -COPY --chown=tox:tox bin /src/bin -WORKDIR /src - -# Copy test-related files and run -COPY --chown=tox:tox ice.config /src/ -COPY --chown=tox:tox *.ini /src/ -COPY --chown=tox:tox test /src/test - -ENV PIP_CACHE_DIR=/tmp/pip-cache -ENTRYPOINT ["/py3/bin/tox"] diff --git a/test.sh b/test.sh deleted file mode 100755 index d1328c986..000000000 --- a/test.sh +++ /dev/null @@ -1,9 +0,0 @@ -set -e -set -u -set -x -IMAGE=${IMAGE:-${USER}-py-test} -PIP_CACHE_DIR=${PIP_CACHE_DIR:-/tmp/pip-cache} -mkdir -m 777 -p ${PIP_CACHE_DIR} -chmod a+t ${PIP_CACHE_DIR} -docker build -t ${IMAGE} . -docker run -ti --rm -v ${PIP_CACHE_DIR}:/tmp/pip-cache ${IMAGE} "$@"