tests can be run in a dockercontainer now. (just start ./tests/run_tests_docker to magically do it) changed time patching during testing to use mocktime() instead. fixed alpine issues. fixed #206
This commit is contained in:
17
tests/Dockerfile
Normal file
17
tests/Dockerfile
Normal file
@ -0,0 +1,17 @@
|
||||
FROM alpine:3.18
|
||||
|
||||
|
||||
#base packages
|
||||
RUN apk update
|
||||
RUN apk add py3-pip
|
||||
|
||||
#zfs autobackup tests dependencies
|
||||
RUN apk add zfs openssh lzop pigz zstd gzip xz lz4 mbuffer udev zfs-udev
|
||||
|
||||
|
||||
#python modules
|
||||
COPY requirements.txt /
|
||||
RUN pip3 install -r requirements.txt
|
||||
|
||||
#git repo should be mounted in /app:
|
||||
ENTRYPOINT [ "/app/tests/tests_docker" ]
|
||||
Reference in New Issue
Block a user