Update nix and docker setups

This commit is contained in:
Eike Kettner 2020-09-08 00:32:17 +02:00
parent cc0416804b
commit 8e5e198098
6 changed files with 29 additions and 14 deletions

View File

@ -5,13 +5,13 @@ set -e
# Update the versions in joex.dockerfile and restserver.dockerfile,
# docker-compose.yml and joex/entrypoint.sh; update versions here
docker build -t eikek0/docspell:joex-0.10.0 -f joex.dockerfile .
docker build -t eikek0/docspell:restserver-0.10.0 -f restserver.dockerfile .
docker build -t eikek0/docspell:consumedir-0.10.0 -f consumedir.dockerfile .
docker build -t eikek0/docspell:joex-0.11.0 -f joex.dockerfile .
docker build -t eikek0/docspell:restserver-0.11.0 -f restserver.dockerfile .
docker build -t eikek0/docspell:consumedir-0.11.0 -f consumedir.dockerfile .
docker tag eikek0/docspell:restserver-0.10.0 eikek0/docspell:restserver-latest
docker tag eikek0/docspell:joex-0.10.0 eikek0/docspell:joex-latest
docker tag eikek0/docspell:consumedir-0.10.0 eikek0/docspell:consumedir-latest
docker tag eikek0/docspell:restserver-0.11.0 eikek0/docspell:restserver-latest
docker tag eikek0/docspell:joex-0.11.0 eikek0/docspell:joex-latest
docker tag eikek0/docspell:consumedir-0.11.0 eikek0/docspell:consumedir-latest

View File

@ -6,10 +6,10 @@ RUN apk add --no-cache unzip curl bash inotify-tools
RUN mkdir -p /opt \
&& cd /opt \
&& curl -L -o docspell.zip https://github.com/eikek/docspell/releases/download/v0.10.0/docspell-tools-0.10.0.zip \
&& curl -L -o docspell.zip https://github.com/eikek/docspell/releases/download/v0.11.0/docspell-tools-0.11.0.zip \
&& unzip docspell.zip \
&& rm docspell.zip \
&& apk del unzip \
&& chmod 755 /opt/docspell-tools-0.10.0/*.sh
&& chmod 755 /opt/docspell-tools-0.11.0/*.sh
ENTRYPOINT ["/opt/docspell-tools-0.10.0/consumedir.sh"]
ENTRYPOINT ["/opt/docspell-tools-0.11.0/consumedir.sh"]

View File

@ -3,4 +3,4 @@
echo "Starting unoconv listener"
unoconv -l &
/opt/docspell-joex-0.10.0/bin/docspell-joex "$@"
/opt/docspell-joex-0.11.0/bin/docspell-joex "$@"

View File

@ -37,7 +37,7 @@ RUN apk add --no-cache openjdk11-jre \
&& chmod +x /usr/local/bin/unoconv \
&& mkdir -p /opt \
&& cd /opt \
&& curl -L -o docspell.zip https://github.com/eikek/docspell/releases/download/v0.10.0/docspell-joex-0.10.0.zip \
&& curl -L -o docspell.zip https://github.com/eikek/docspell/releases/download/v0.11.0/docspell-joex-0.11.0.zip \
&& unzip docspell.zip \
&& rm docspell.zip \
&& apk del curl unzip libxml2-dev libxslt-dev zlib-dev g++ python3-dev libffi-dev qpdf-dev openssl-dev

View File

@ -6,11 +6,11 @@ RUN apk add --no-cache openjdk11-jre unzip curl bash
RUN mkdir -p /opt \
&& cd /opt \
&& curl -L -o docspell.zip https://github.com/eikek/docspell/releases/download/v0.10.0/docspell-restserver-0.10.0.zip \
&& curl -L -o docspell.zip https://github.com/eikek/docspell/releases/download/v0.11.0/docspell-restserver-0.11.0.zip \
&& unzip docspell.zip \
&& rm docspell.zip \
&& apk del unzip curl
EXPOSE 7880
ENTRYPOINT ["/opt/docspell-restserver-0.10.0/bin/docspell-restserver"]
ENTRYPOINT ["/opt/docspell-restserver-0.11.0/bin/docspell-restserver"]

View File

@ -1,5 +1,20 @@
rec {
cfg = {
v0_11_0 = rec {
version = "0.11.0";
server = {
url = "https://github.com/eikek/docspell/releases/download/v${version}/docspell-restserver-${version}.zip";
sha256 = "1cxwca69bxha1p8bfgkmg2qx0gwai6r1nz8ymhwah32x1mmvp2cf";
};
joex = {
url = "https://github.com/eikek/docspell/releases/download/v${version}/docspell-joex-${version}.zip";
sha256 = "133vd9rsi9lwf8mrk9yfwbp0w2s8xyavmlkz8acl43zncxnzlb2b";
};
tools = {
url = "https://github.com/eikek/docspell/releases/download/v${version}/docspell-tools-${version}.zip";
sha256 = "0hj2dxk09lrhnr9ph9zr117xf61ql7snkdp86gpap46a7rwlasap";
};
};
v0_10_0 = rec {
version = "0.10.0";
server = {
@ -152,7 +167,7 @@ rec {
};
};
pkg = v: import ./pkg.nix v;
currentPkg = pkg cfg.v0_10_0;
currentPkg = pkg cfg.v0_11_0;
module-joex = ./module-joex.nix;
module-restserver = ./module-server.nix;
module-consumedir = ./module-consumedir.nix;