mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-05 22:55:58 +00:00
Update docker setup
This commit is contained in:
parent
45ff865ed1
commit
8f46f6b57b
11
docker/build-images.sh
Executable file
11
docker/build-images.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
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.5.0 -f joex.dockerfile .
|
||||||
|
docker build -t eikek0/docspell:restserver-0.5.0 -f restserver.dockerfile .
|
||||||
|
|
||||||
|
# test with docker-compose up
|
@ -1,7 +1,7 @@
|
|||||||
version: '3.7'
|
version: '3.7'
|
||||||
services:
|
services:
|
||||||
restserver:
|
restserver:
|
||||||
image: eikek0/docspell:restserver-0.4.0
|
image: eikek0/docspell:restserver-0.5.0
|
||||||
container_name: docspell-restserver
|
container_name: docspell-restserver
|
||||||
command: /opt/docspell.conf
|
command: /opt/docspell.conf
|
||||||
ports:
|
ports:
|
||||||
@ -20,7 +20,7 @@ services:
|
|||||||
- POSTGRES_PASSWORD=dbpass
|
- POSTGRES_PASSWORD=dbpass
|
||||||
- POSTGRES_DB=dbname
|
- POSTGRES_DB=dbname
|
||||||
joex:
|
joex:
|
||||||
image: eikek0/docspell:joex-0.4.0
|
image: eikek0/docspell:joex-0.5.0
|
||||||
container_name: docspell-joex
|
container_name: docspell-joex
|
||||||
command: /opt/docspell.conf
|
command: /opt/docspell.conf
|
||||||
ports:
|
ports:
|
||||||
|
@ -24,7 +24,7 @@ RUN apk add --no-cache openjdk11-jre \
|
|||||||
&& ln -s /usr/bin/python3 /usr/bin/python \
|
&& ln -s /usr/bin/python3 /usr/bin/python \
|
||||||
&& mkdir -p /opt \
|
&& mkdir -p /opt \
|
||||||
&& cd /opt \
|
&& cd /opt \
|
||||||
&& curl -L -o docspell.zip https://github.com/eikek/docspell/releases/download/v0.4.0/docspell-joex-0.4.0.zip \
|
&& curl -L -o docspell.zip https://github.com/eikek/docspell/releases/download/v0.5.0/docspell-joex-0.5.0.zip \
|
||||||
&& unzip docspell.zip \
|
&& unzip docspell.zip \
|
||||||
&& rm docspell.zip \
|
&& rm docspell.zip \
|
||||||
&& apk del curl unzip
|
&& apk del curl unzip
|
||||||
|
@ -3,4 +3,4 @@
|
|||||||
echo "Starting unoconv listener"
|
echo "Starting unoconv listener"
|
||||||
unoconv -l &
|
unoconv -l &
|
||||||
|
|
||||||
/opt/docspell-joex-0.4.0/bin/docspell-joex "$@"
|
/opt/docspell-joex-0.5.0/bin/docspell-joex "$@"
|
||||||
|
@ -6,11 +6,11 @@ RUN apk add --no-cache openjdk11-jre unzip curl bash
|
|||||||
|
|
||||||
RUN mkdir -p /opt \
|
RUN mkdir -p /opt \
|
||||||
&& cd /opt \
|
&& cd /opt \
|
||||||
&& curl -L -o docspell.zip https://github.com/eikek/docspell/releases/download/v0.4.0/docspell-restserver-0.4.0.zip \
|
&& curl -L -o docspell.zip https://github.com/eikek/docspell/releases/download/v0.5.0/docspell-restserver-0.5.0.zip \
|
||||||
&& unzip docspell.zip \
|
&& unzip docspell.zip \
|
||||||
&& rm docspell.zip \
|
&& rm docspell.zip \
|
||||||
&& apk del unzip curl
|
&& apk del unzip curl
|
||||||
|
|
||||||
EXPOSE 7880
|
EXPOSE 7880
|
||||||
|
|
||||||
ENTRYPOINT ["/opt/docspell-restserver-0.4.0/bin/docspell-restserver"]
|
ENTRYPOINT ["/opt/docspell-restserver-0.5.0/bin/docspell-restserver"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user