Skip to content

Commit

Permalink
prepare docker files for 1.5.0.rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
ciur committed Oct 11, 2020
1 parent 2573163 commit a808896
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docker/1.4/app.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ RUN echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && locale-gen
ENV LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8


RUN git clone https://github.com/ciur/papermerge --branch v1.4.5 -q --depth 1 /opt/app
RUN git clone https://github.com/ciur/papermerge --branch v1.5.0.rc1 -q --depth 1 /opt/app

RUN mkdir -p /opt/media

Expand Down Expand Up @@ -64,6 +64,6 @@ ENV DJANGO_SETTINGS_MODULE=config.settings.production

RUN pip3 install -r requirements/base.txt --no-cache-dir
RUN pip3 install -r requirements/production.txt --no-cache-dir
RUN pip3 install -r requirements/extra.txt --no-cache-dir
RUN pip3 install -r requirements/extra/pg.txt --no-cache-dir

CMD ["/opt/app/startup.sh"]
6 changes: 5 additions & 1 deletion docker/1.4/config/papermerge.config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,9 @@

OCR_LANGUAGES = {
"deu": "Deutsch",
"spa": "Spanish",
"spa": "Español",
"eng": "English",
"fra": "Français",
"rus": "Русский",
"ron": "Română"
}
4 changes: 2 additions & 2 deletions docker/1.4/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.7'
services:
app:
image: eugenci/papermerge:1.4.5
image: eugenci/papermerge:1.5.0.rc1
build:
context: .
dockerfile: app.dockerfile
Expand Down Expand Up @@ -30,7 +30,7 @@ services:
- POSTGRES_PASSWORD=dbpass
- POSTGRES_DB=dbname
worker:
image: eugenci/papermerge-worker:1.4.5
image: eugenci/papermerge-worker:1.5.0.rc1
build:
context: .
dockerfile: worker.dockerfile
Expand Down
6 changes: 4 additions & 2 deletions docker/1.4/worker.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ RUN apt-get update \
tesseract-ocr-deu \
tesseract-ocr-eng \
tesseract-ocr-fra \
tesseract-ocr-rus \
tesseract-ocr-ron \
tesseract-ocr-spa \
&& rm -rf /var/lib/apt/lists/* \
&& pip3 install --upgrade pip
Expand All @@ -38,7 +40,7 @@ RUN echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && locale-gen
ENV LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8


RUN git clone https://github.com/ciur/papermerge --branch v1.4.5 -q --depth 1 /opt/app
RUN git clone https://github.com/ciur/papermerge --branch v1.5.0.rc1 -q --depth 1 /opt/app

RUN mkdir -p /opt/media

Expand All @@ -65,6 +67,6 @@ ENV PATH="$VIRTUAL_ENV/bin:$PATH"
ENV DJANGO_SETTINGS_MODULE=config.settings.production

RUN pip3 install -r requirements/base.txt --no-cache-dir
RUN pip3 install -r requirements/extra.txt --no-cache-dir
RUN pip3 install -r requirements/extra/pg.txt --no-cache-dir

CMD ["/opt/app/startup.sh"]

0 comments on commit a808896

Please sign in to comment.