Skip to content
This repository was archived by the owner on Nov 5, 2022. It is now read-only.

Commit 2988e2f

Browse files
faysal-ishtiaqisedwards
authored andcommitted
climsoft fork, opencdms-process not yet installed
1 parent 06f9209 commit 2988e2f

File tree

13 files changed

+94
-1283
lines changed

13 files changed

+94
-1283
lines changed

docker-compose.prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ services:
131131
command:
132132
[
133133
"uvicorn",
134-
"opencdms_api.main:app",
134+
"src.opencdms_api.main:app",
135135
"--host",
136136
"0.0.0.0",
137137
"--port",

docker-compose.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,12 @@ services:
8888
- opencdms_climsoftdb
8989
volumes:
9090
- ./src:/code/src
91-
- ./surface:/code/surface
9291
networks:
9392
- opencdms_api_dev_network
9493
command:
9594
[
9695
"uvicorn",
97-
"opencdms_api.main:app",
96+
"src.opencdms_api.main:app",
9897
"--host",
9998
"0.0.0.0",
10099
"--port",

dockerfile

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,33 @@
11
FROM python:3.9.7-slim-bullseye
22

3-
# https://docs.python.org/3/using/cmdline.html#envvar
4-
# https://pip.pypa.io/en/stable/user_guide/#environment-variables
5-
# https://python-poetry.org/docs/configuration/
63
ENV PYTHONFAULTHANDLER=1 \
74
PYTHONHASHSEED=random \
85
PYTHONUNBUFFERED=1 \
96
PYTHONDONTWRITEBYTECODE=1 \
107
PIP_DEFAULT_TIMEOUT=100 \
118
PIP_DISABLE_PIP_VERSION_CHECK=1 \
12-
PIP_NO_CACHE_DIR=1 \
13-
POETRY_VERSION=1.1.11 \
14-
POETRY_VIRTUALENVS_CREATE=0
9+
PIP_NO_CACHE_DIR=1
1510

1611
RUN apt-get update --fix-missing
1712
RUN apt-get install -y g++ libgdal-dev libpq-dev libgeos-dev libproj-dev openjdk-17-jre vim wait-for-it
18-
RUN apt-get install -y curl git && pip install --upgrade pip "poetry==${POETRY_VERSION}"
13+
RUN apt-get install -y curl git && pip install --upgrade pip
1914

2015
WORKDIR /code
2116

22-
# TODO replace with actual surface repo
23-
RUN git clone --branch refactor-for-opencdms-server https://github.com/Shaibujnr/surface.git surface
17+
RUN git clone https://github.com/opencdms/surface.git
2418

2519
RUN pip install numpy==1.21.2 --no-warn-script-location
2620
RUN pip install -r surface/api/requirements.txt
2721

28-
# Install Python dependencies.
29-
COPY pyproject.toml poetry.lock ./
22+
COPY requirements.txt ./requirements.txt
23+
RUN pip install -r requirements.txt
3024

31-
32-
RUN poetry install -v
33-
34-
35-
COPY . .
36-
37-
38-
RUN poetry install
25+
COPY ./src ./src
26+
COPY ./scripts ./scripts
27+
COPY entrypoint.sh ./entrypoint.sh
28+
COPY init_climsoft_db.py ./init_climsoft_db.py
29+
COPY mch.dbn ./mch.dbn
30+
COPY MCHtablasycampos.def ./MCHtablasycampos.def
3931

4032
RUN useradd -m opencdms_api_user && chown -R opencdms_api_user /code
4133

0 commit comments

Comments
 (0)