Skip to content

Commit

Permalink
Add Docker image for local testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeininger committed Jul 15, 2020
1 parent 41eaf1b commit 24eff61
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Dockerfile
.github
.venv
node_modules
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM alpine:3.12

ENV CI=true \
PATH="/app/.local/bin:${PATH}"

RUN adduser -D -S -h /app -s /sbin/nologin -G root --uid 1001 app && \
apk --update add build-base python3 py3-pip nodejs npm openjdk11-jre

COPY --chown=1001:0 . /app

WORKDIR /app

EXPOSE 8080

USER 1001

RUN make install

CMD ["make", "serve"]
4 changes: 2 additions & 2 deletions development.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ pyramid.includes =

[server:main]
use = egg:waitress#main
host = 127.0.0.1
port = 6543
host = 0.0.0.0
port = 8080

###
# logging configuration
Expand Down
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: '3.7'

services:
app:
build: .
ports:
- '8080:8080'
10 changes: 5 additions & 5 deletions oereb_client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ oereb_client:
# "icon" - URL to image used as favicon
application:
title: ÖREB-Kataster, Kanton Basel-Landschaft
icon: http://localhost:6543/static/images/favicon.png
logo_canton: http://localhost:6543/samples/static/logo_bl.png
logo_oereb: http://localhost:6543/samples/static/logo_oereb.png
icon: http://localhost:8080/static/images/favicon.png
logo_canton: http://localhost:8080/samples/static/logo_bl.png
logo_oereb: http://localhost:8080/samples/static/logo_oereb.png
local_storage_prefix: bl

# View configuration
Expand Down Expand Up @@ -40,10 +40,10 @@ oereb_client:
# Search field configuration
search:
api:
url: https://dev2.geoview.bl.ch/main/wsgi/bl_fulltextsearch
url: https://geoview.bl.ch/main/wsgi/bl_fulltextsearch
limit: 5
wfs:
url: https://dev2.geowms.bl.ch
url: https://geowms.bl.ch
limit: 5

# Link to external viewer/portal
Expand Down

0 comments on commit 24eff61

Please sign in to comment.