Skip to content

Commit

Permalink
harmonize Docker setups
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Mar 19, 2024
1 parent 111223d commit 35e444d
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 12 deletions.
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,17 @@ services:
depends_on:
- wis2-gdc-broker

prometheus:
container_name: prometheus
image: prom/prometheus
volumes:
- "./prometheus.yml:/etc/prometheus/prometheus.yml"
networks:
- wis2-gdc-net
ports:
- 9090:9090


wis2-gdc-management:
container_name: wis2-gdc-management
build:
Expand Down
13 changes: 7 additions & 6 deletions wis2-gdc-api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ ENV PYGEOAPI_CONFIG=/pygeoapi/local.config.yml
ENV PYGEOAPI_OPENAPI=/pygeoapi/local.openapi.yml

RUN apt-get update && \
apt-get install -y curl && \
pip3 install -r requirements.txt && \
pywcmp bundle sync
apt-get install -y curl

COPY ./wis2-gdc-api.yml /pygeoapi/local.config.yml
COPY ./app.py /pygeoapi/pygeoapi/app.py
COPY ./entrypoint.sh /app/docker/wis2-gdc-api/entrypoint.sh
COPY ./docker/wis2-gdc-api.yml /pygeoapi/local.config.yml
COPY ./requirements.txt /app/docker/wis2-gdc-api/requirements.txt
COPY ./docker/entrypoint.sh /app/docker/wis2-gdc-api/entrypoint.sh

RUN chmod +x /app/docker/wis2-gdc-api/entrypoint.sh
RUN pip3 install -r /app/docker/wis2-gdc-api/requirements.txt && \
pywcmp bundle sync && \
chmod +x /app/docker/wis2-gdc-api/entrypoint.sh

ENTRYPOINT [ "/app/docker/wis2-gdc-api/entrypoint.sh" ]
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion wis2-gdc-api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pywis-pubsub
pywcmp
requests
6 changes: 3 additions & 3 deletions wis2-gdc-broker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

FROM eclipse-mosquitto:latest

COPY mosquitto.conf /mosquitto/config/mosquitto.conf
COPY acl.conf /mosquitto/config/acl.conf
COPY entrypoint.sh /docker-entrypoint.sh
COPY ./docker/mosquitto.conf /mosquitto/config/mosquitto.conf
COPY ./docker/acl.conf /mosquitto/config/acl.conf
COPY ./docker/entrypoint.sh /docker-entrypoint.sh

RUN chmod +x /docker-entrypoint.sh
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion wis2-gdc-management/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ENV TZ="Etc/UTC" \
DEBIAN_PACKAGES="bash cron curl git python3-pip python3-setuptools vim"

# copy the app
COPY . /app
COPY ./ /app

# add to crontab
COPY ./docker/wis2-gdc-management.cron /etc/cron.d/wis2-gdc-management.cron
Expand Down
4 changes: 3 additions & 1 deletion wis2-gdc-metrics-collector/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@

FROM python:3-alpine

COPY . /app
COPY ./metrics_collector.py /app/metrics_collector.py
COPY ./requirements.txt /app/requirements.txt

RUN pip install -r /app/requirements.txt

ENV PYTHONUNBUFFERED="true"
Expand Down

0 comments on commit 35e444d

Please sign in to comment.