summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Hupp <adam@hupp.org>2021-02-16 14:53:52 -0800
committerAdam Hupp <adam@hupp.org>2021-02-16 15:00:58 -0800
commitfc28c87e010eed27fce37615202280feebaa1fc0 (patch)
tree102be8903060158816971d856d8a8f12252d41ba
parentcc4c21ceb62b506aed017449b3d251c6e65924e8 (diff)
downloadpython-magic-fc28c87e010eed27fce37615202280feebaa1fc0.tar.gz
add docker test for alpine linux
-rw-r--r--test.ps111
-rwxr-xr-xtest/Dockerfile_alpine4
-rwxr-xr-xtest_docker.sh2
3 files changed, 5 insertions, 12 deletions
diff --git a/test.ps1 b/test.ps1
deleted file mode 100644
index 14a7070..0000000
--- a/test.ps1
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-function TestInContainer($name) {
- $TAG="python_magic/${name}:latest"
- docker build -t $TAG -f "test/Dockerfile_${name}" .
- docker run "python_magic/${name}:latest"
-}
-
-TestInContainer "xenial"
-TestInContainer "bionic"
-TestInContainer "focal" \ No newline at end of file
diff --git a/test/Dockerfile_alpine b/test/Dockerfile_alpine
new file mode 100755
index 0000000..f8ec79e
--- /dev/null
+++ b/test/Dockerfile_alpine
@@ -0,0 +1,4 @@
+FROM alpine:latest
+RUN apk add python3 python2 libmagic
+COPY . /python-magic
+CMD cd /python-magic/test && python3 ./run.py
diff --git a/test_docker.sh b/test_docker.sh
index 7858f33..57d5328 100755
--- a/test_docker.sh
+++ b/test_docker.sh
@@ -18,4 +18,4 @@ TestInContainer "focal"
TestInContainer "centos7"
TestInContainer "centos8"
TestInContainer "archlinux"
-
+TestInContainer "alpine"