Skip to content

Commit

Permalink
Docker adjustments.
Browse files Browse the repository at this point in the history
  • Loading branch information
scossu committed Jun 29, 2019
1 parent a552ff7 commit 20d9102
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 16 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,25 @@ FROM python:3.7-alpine
LABEL "maintainer"="Michael B. Klein <[email protected]>" \
"maintainer"="Stefano Cossu <[email protected]>"

RUN apk add --no-cache build-base
RUN apk add git
RUN apk add --no-cache build-base git
RUN pip3 install cython==0.29.6 cymem

RUN mkdir -p /data
WORKDIR /usr/local/lsup/src
COPY .git ./.git
COPY ext ./ext
COPY bin ./bin
COPY lakesuperior ./lakesuperior
COPY setup.py README.rst ./

RUN git submodule update --init ext
RUN pip install -e .
COPY ./docker/etc ./lakesuperior/etc.defaults

# Clean up build-required packages & dirs.
RUN apk del build-base git
RUN rm -rf .git

RUN [ -f /data/ldprs_store/data.mdb ] || \
echo yes | lsup-admin bootstrap

Expand All @@ -26,4 +30,4 @@ EXPOSE 8000

ENTRYPOINT ["gunicorn", "-c", "python:lakesuperior.wsgi", \
"lakesuperior.server:fcrepo"]
#ENTRYPOINT ["/bin/sh"]
#ENTRYPOINT ["./bin/fcrepo"]
2 changes: 1 addition & 1 deletion bin/fcrepo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/bin/sh

gunicorn -c python:lakesuperior.wsgi lakesuperior.server:fcrepo
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
version: '2'
version: '3'

volumes:
lakesuperior:

services:
lakesuperior:
image: scossu/lakesuperior:stable
build:
context: .
volumes:
- lakesuperior:/data
ports:
Expand Down
10 changes: 0 additions & 10 deletions docker/docker_entrypoint

This file was deleted.

0 comments on commit 20d9102

Please sign in to comment.