feat: tests
This commit is contained in:
parent
dffaa00d9f
commit
aa3c0a5191
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
test*/
|
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
FROM docker.io/debian:12-slim
|
||||||
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y --no-install-recommends \
|
||||||
|
imagemagick \
|
||||||
|
zenity \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
COPY compress /usr/local/bin/
|
||||||
|
CMD ["compress", "/images/"]
|
12
compose.yaml
Normal file
12
compose.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
build: .
|
||||||
|
environment:
|
||||||
|
- DISPLAY=$DISPLAY
|
||||||
|
- XAUTHORITY=/.Xauthority
|
||||||
|
volumes:
|
||||||
|
- ./test/:/images/:ro
|
||||||
|
- ./test_1080p/:/images_1080p/
|
||||||
|
- "$XAUTHORITY:/.Xauthority:ro"
|
||||||
|
- "/tmp/.X11-unix/:/tmp/.X11-unix/"
|
Loading…
Reference in New Issue
Block a user