-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #523 from NBISweden/feature/postgres-database
Feature/postgres database
- Loading branch information
Showing
33 changed files
with
2,835 additions
and
638 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
FROM ubuntu:16.04 | ||
FROM ubuntu:18.04 | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
python3 \ | ||
python3-pip \ | ||
libmysqlclient-dev | ||
python3-pip | ||
|
||
ADD . /code | ||
COPY settings_sample.json /settings.json | ||
RUN sed -i 's/"postgresHost"\s*:.*,/"postgresHost" : "db",/' /settings.json | ||
WORKDIR /code | ||
|
||
RUN pip3 install -r backend/requirements.txt | ||
|
||
CMD ["python3", "backend/route.py", "--develop"] | ||
CMD ["python3", "backend/route.py", "--develop", "--settings_file", "/settings.json"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM postgres:10 | ||
|
||
ENV POSTGRES_DB swefreq | ||
COPY sql/data_schema.sql /docker-entrypoint-initdb.d/01_data_schema.sql | ||
COPY sql/user_schema.sql /docker-entrypoint-initdb.d/02_user_schema.sql | ||
COPY sql/beacon_schema.sql /docker-entrypoint-initdb.d/03_beacon_schema.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.