-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
23 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
FROM python:3.6 | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y libpq-dev libxml2-dev libxmlsec1-dev libxmlsec1-openssl influxdb-client | ||
RUN apt-get install -y libpq-dev libxml2-dev libxmlsec1-dev libxmlsec1-openssl influxdb-client binutils libproj-dev gdal-bin | ||
|
||
RUN pip install --upgrade pip | ||
ENV app /canairio | ||
|
||
RUN mkdir $app | ||
WORKDIR $app | ||
|
||
ADD . $app | ||
RUN pip install -r requirements.txt | ||
RUN python manage.py migrate | ||
|
||
COPY start $app/start |
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,4 @@ | ||
FROM timescale/timescaledb-postgis:latest-pg11 | ||
ARG db_name | ||
ENV POSTGRES_DB $db_name | ||
COPY create-dbs.sh /docker-entrypoint-initdb.d/ |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
POSTGRES="psql --username ${POSTGRES_USER}" | ||
|
||
echo "Creating database: ${POSTGRES_DB}" | ||
echo "Creating database: ${POSTGRES_TEST_DB}" | ||
|
||
$POSTGRES <<EOSQL | ||
CREATE DATABASE "${POSTGRES_DB}" OWNER "${POSTGRES_USER}"; | ||
CREATE DATABASE "${POSTGRES_TEST_DB}" OWNER "${POSTGRES_USER}"; | ||
EOSQL |
This file was deleted.
Oops, something went wrong.
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