diff options
Diffstat (limited to 'test/docker')
| -rwxr-xr-x | test/docker/alpine | 7 | ||||
| -rwxr-xr-x | test/docker/bionic | 11 | ||||
| -rw-r--r-- | test/docker/centos7 | 8 | ||||
| -rw-r--r-- | test/docker/centos8 | 8 | ||||
| -rwxr-xr-x | test/docker/focal | 11 | ||||
| -rwxr-xr-x | test/docker/xenial | 11 |
6 files changed, 34 insertions, 22 deletions
diff --git a/test/docker/alpine b/test/docker/alpine index eb511d7..c36b720 100755 --- a/test/docker/alpine +++ b/test/docker/alpine @@ -1,4 +1,7 @@ FROM python:3.8-alpine3.12 RUN apk add python3 python2 libmagic -COPY . /python-magic -CMD cd /python-magic/test && python3 ./run.py +WORKDIR /python-magic +COPY . . +RUN python3 -m pip install tox +CMD python3 -m tox + diff --git a/test/docker/bionic b/test/docker/bionic index e335b8e..2fe482c 100755 --- a/test/docker/bionic +++ b/test/docker/bionic @@ -1,8 +1,9 @@ FROM ubuntu:bionic +WORKDIR /python-magic +COPY . . RUN apt-get update -RUN apt-get -y install python -RUN apt-get -y install python3 -RUN apt-get -y install locales +RUN apt-get -y install python python3 locales python3-pip libmagic1 RUN locale-gen en_US.UTF-8 -COPY . /python-magic -CMD cd /python-magic/test && python3 ./run.py +RUN python3 -m pip install tox +CMD python3 -m tox + diff --git a/test/docker/centos7 b/test/docker/centos7 index f2ac6e4..10f170a 100644 --- a/test/docker/centos7 +++ b/test/docker/centos7 @@ -1,5 +1,9 @@ FROM centos:7 RUN yum -y update RUN yum -y install file-devel python3 python2 which -COPY . /python-magic -CMD cd /python-magic/test && SKIP_FROM_DESCRIPTOR=1 python3 ./run.py +WORKDIR /python-magic +COPY . . +RUN python3 -m pip install tox +ENV SKIP_FROM_DESCRIPTOR=1 +CMD python3 -m tox + diff --git a/test/docker/centos8 b/test/docker/centos8 index 968f6b6..3b3da0a 100644 --- a/test/docker/centos8 +++ b/test/docker/centos8 @@ -4,6 +4,8 @@ RUN yum -y install file-libs python3 python2 which glibc-locale-source RUN yum reinstall glibc-common -y && \ localedef -i en_US -f UTF-8 en_US.UTF-8 && \ echo "LANG=en_US.UTF-8" > /etc/locale.conf -ENV LANG en_US.UTF-8 -COPY . /python-magic -CMD cd /python-magic/test && python3 ./run.py +WORKDIR /python-magic +COPY . . +RUN python3 -m pip install tox +CMD python3 -m tox + diff --git a/test/docker/focal b/test/docker/focal index 74e4d78..b35040b 100755 --- a/test/docker/focal +++ b/test/docker/focal @@ -1,8 +1,9 @@ FROM ubuntu:focal +WORKDIR /python-magic +COPY . . RUN apt-get update -RUN apt-get -y install python2 -RUN apt-get -y install python3 -RUN apt-get -y install locales +RUN apt-get -y install python python3 locales python3-pip libmagic1 RUN locale-gen en_US.UTF-8 -COPY . /python-magic -CMD cd /python-magic/test && python3 ./run.py +RUN python3 -m pip install tox +CMD python3 -m tox + diff --git a/test/docker/xenial b/test/docker/xenial index bc0440b..e3c0433 100755 --- a/test/docker/xenial +++ b/test/docker/xenial @@ -1,8 +1,9 @@ FROM ubuntu:xenial +WORKDIR /python-magic +COPY . . RUN apt-get update -RUN apt-get -y install python -RUN apt-get -y install python3 -RUN apt-get -y install locales +RUN apt-get -y install python python3 locales python3-pip libmagic1 RUN locale-gen en_US.UTF-8 -COPY . /python-magic -CMD cd /python-magic/test && python3 ./run.py +RUN python3 -m pip install tox +CMD python3 -m tox + |
