summaryrefslogtreecommitdiff
path: root/test/docker
diff options
context:
space:
mode:
Diffstat (limited to 'test/docker')
-rwxr-xr-xtest/docker/alpine4
-rwxr-xr-xtest/docker/archlinux5
-rwxr-xr-xtest/docker/bionic8
-rw-r--r--test/docker/centos75
-rw-r--r--test/docker/centos89
-rwxr-xr-xtest/docker/focal8
-rwxr-xr-xtest/docker/xenial8
7 files changed, 47 insertions, 0 deletions
diff --git a/test/docker/alpine b/test/docker/alpine
new file mode 100755
index 0000000..eb511d7
--- /dev/null
+++ b/test/docker/alpine
@@ -0,0 +1,4 @@
+FROM python:3.8-alpine3.12
+RUN apk add python3 python2 libmagic
+COPY . /python-magic
+CMD cd /python-magic/test && python3 ./run.py
diff --git a/test/docker/archlinux b/test/docker/archlinux
new file mode 100755
index 0000000..fc96c44
--- /dev/null
+++ b/test/docker/archlinux
@@ -0,0 +1,5 @@
+FROM archlinux:latest
+RUN yes | pacman -Syyu --overwrite '*'
+RUN yes | pacman -S python python2 file which
+COPY . /python-magic
+CMD cd /python-magic/test && python3 ./run.py
diff --git a/test/docker/bionic b/test/docker/bionic
new file mode 100755
index 0000000..e335b8e
--- /dev/null
+++ b/test/docker/bionic
@@ -0,0 +1,8 @@
+FROM ubuntu:bionic
+RUN apt-get update
+RUN apt-get -y install python
+RUN apt-get -y install python3
+RUN apt-get -y install locales
+RUN locale-gen en_US.UTF-8
+COPY . /python-magic
+CMD cd /python-magic/test && python3 ./run.py
diff --git a/test/docker/centos7 b/test/docker/centos7
new file mode 100644
index 0000000..f2ac6e4
--- /dev/null
+++ b/test/docker/centos7
@@ -0,0 +1,5 @@
+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
diff --git a/test/docker/centos8 b/test/docker/centos8
new file mode 100644
index 0000000..968f6b6
--- /dev/null
+++ b/test/docker/centos8
@@ -0,0 +1,9 @@
+FROM centos:8
+RUN yum -y update
+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
diff --git a/test/docker/focal b/test/docker/focal
new file mode 100755
index 0000000..74e4d78
--- /dev/null
+++ b/test/docker/focal
@@ -0,0 +1,8 @@
+FROM ubuntu:focal
+RUN apt-get update
+RUN apt-get -y install python2
+RUN apt-get -y install python3
+RUN apt-get -y install locales
+RUN locale-gen en_US.UTF-8
+COPY . /python-magic
+CMD cd /python-magic/test && python3 ./run.py
diff --git a/test/docker/xenial b/test/docker/xenial
new file mode 100755
index 0000000..bc0440b
--- /dev/null
+++ b/test/docker/xenial
@@ -0,0 +1,8 @@
+FROM ubuntu:xenial
+RUN apt-get update
+RUN apt-get -y install python
+RUN apt-get -y install python3
+RUN apt-get -y install locales
+RUN locale-gen en_US.UTF-8
+COPY . /python-magic
+CMD cd /python-magic/test && python3 ./run.py