This repository has been archived by the owner on Jan 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 209
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
1 parent
25231b7
commit 17fd770
Showing
6 changed files
with
56 additions
and
25 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,11 +1,33 @@ | ||
FROM python:2.7 | ||
# getting the base Image | ||
FROM python:3.6 | ||
|
||
MAINTAINER Ana Balica <[email protected]> | ||
|
||
# Updated by | ||
LABEL HUSSAIN="[email protected]" | ||
|
||
EXPOSE 8000 | ||
|
||
# Initializing the working directory | ||
WORKDIR /usr/src | ||
|
||
RUN mkdir portal | ||
|
||
RUN cd portal | ||
|
||
# Re-Initializing the working directory | ||
WORKDIR /usr/src/portal | ||
|
||
# Copy the requirement.txt for installing | ||
COPY requirements/prod.txt /usr/src/portal/requirements/prod.txt | ||
RUN pip install -r requirements/prod.txt | ||
COPY requirements/dev.txt /usr/src/portal/requirements/dev.txt | ||
|
||
# Installing the requirements | ||
RUN pip install -r requirements/dev.txt | ||
|
||
# Installing the GDAL Library | ||
# RUN apt-get install python-gdal | ||
RUN apt-get update | ||
RUN apt-get install -y software-properties-common | ||
RUN add-apt-repository ppa:ubuntugis/ppa | ||
RUN apt-get install -y gdal-bin python-gdal python3-gdal |
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,14 +1,19 @@ | ||
db: | ||
image: postgres:9.4 | ||
ports: | ||
- "5432:5432" | ||
environment: | ||
- POSTGRES_HOST_AUTH_METHOD=trust | ||
|
||
web: | ||
build: . | ||
command: python systers_portal/manage.py runserver 0.0.0.0:8000 | ||
volumes: | ||
- .:/usr/src/portal | ||
- .:/usr/src/portal | ||
ports: | ||
- "8000:8000" | ||
- "8000:8000" | ||
links: | ||
- db | ||
- db | ||
environment: | ||
- DJANGO_SETTINGS_MODULE=systers_portal.settings.docker | ||
|
||
- SECRET_KEY=foobarbaz | ||
- DJANGO_SETTINGS_MODULE=systers_portal.settings.docker |
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