From 4ed6b038ba8acd59ed58c888fbd18355b8955eba Mon Sep 17 00:00:00 2001 From: Adam Hupp Date: Thu, 3 Jun 2021 06:43:08 -0700 Subject: fix alpine library loading --- test/docker/alpine | 4 ++++ test/docker/archlinux | 5 +++++ test/docker/bionic | 8 ++++++++ test/docker/centos7 | 5 +++++ test/docker/centos8 | 9 +++++++++ test/docker/focal | 8 ++++++++ test/docker/xenial | 8 ++++++++ 7 files changed, 47 insertions(+) create mode 100755 test/docker/alpine create mode 100755 test/docker/archlinux create mode 100755 test/docker/bionic create mode 100644 test/docker/centos7 create mode 100644 test/docker/centos8 create mode 100755 test/docker/focal create mode 100755 test/docker/xenial (limited to 'test/docker') 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 -- cgit v1.2.1