squashed old attempt

Refactor

Improved test

Revert "Use SimpleWorker for the job test"

This reverts commit f7ea07d19a43ba0455d3a251c216c50f94a1ac66.

Force job to run

Empty queue before bursting jobs

Added test

Updated test

Switched json encoder

Removed call to doveadm on user login

Fixed issues, updated doc

Reduce doveadm calls
This commit is contained in:
Spitap
2023-11-07 19:43:44 +01:00
committed by Spitfireap
parent cd85b5a725
commit 7da3017745
26 changed files with 413 additions and 50 deletions
+4 -2
View File
@@ -1,4 +1,4 @@
FROM python:3.9-alpine as base
FROM python:3.12-alpine as base
MAINTAINER Antoine Nguyen <tonio@ngyn.org>
ENV VIRTUAL_ENV=/opt/venv
@@ -17,8 +17,10 @@ RUN python -m pip install -U pip
RUN pip install -r requirements.txt -r test-requirements.txt
FROM base as run
COPY docker/doveadm /usr/local/bin
RUN chmod +x /usr/local/bin/doveadm
COPY --from=build $VIRTUAL_ENV $VIRTUAL_ENV
RUN apk add --no-cache --update openssl librrd libxslt libjpeg libressl git rrdtool libmagic \
RUN apk add --no-cache --update openssl librrd libxslt libjpeg libressl git rrdtool libmagic sudo \
&& rm -rf /var/cache/apk/*
RUN mkdir /code
WORKDIR /code