You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2019/12/03 14:56:52 UTC
[airavata-django-portal] branch master updated: AIRAVATA-3230
Adding running from Docker instructions to README
This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git
The following commit(s) were added to refs/heads/master by this push:
new 914673f AIRAVATA-3230 Adding running from Docker instructions to README
914673f is described below
commit 914673f174ea05df8153bc02b4e6939ce2512c90
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Tue Dec 3 09:56:18 2019 -0500
AIRAVATA-3230 Adding running from Docker instructions to README
---
README.md | 34 +++++++++++++++++++++++++++++++---
1 file changed, 31 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 05f8cc5..63344e4 100644
--- a/README.md
+++ b/README.md
@@ -11,9 +11,11 @@ through various plugins to add more domain specific functionality as needed.
## Getting Started
-The following steps will help you quickly get started with running the Airavata
-Django Portal locally. This will allow you to try it out and can also be used as
-a development environment.
+The following steps will help you quickly get started with running the
+Airavata Django Portal locally. This will allow you to try it out and can
+also be used as a development environment. If you just want to run the
+Airavata Django Portal locally, see the Docker instructions below for a more
+simplified approach.
The Airavata Django Portal is developed with Python 3.6 but should also work
with 3.4 and 3.5. You'll need one of these versions installed locally.
@@ -84,6 +86,32 @@ and [the Yarn package manager](https://yarnpkg.com).
7. Point your browser to http://localhost:8000.
+## Docker instructions
+
+To run the Django Portal as a Docker container, you need a
+`settings_local.py` file which you can create from the
+`settings_local.py.sample` file. Then run the following:
+
+1. Build the Docker image.
+
+ ```
+ docker build -t airavata-django-portal .
+ ```
+
+2. Run the Docker container.
+
+ ```
+ docker run -d \
+ -v $PWD/django_airavata/settings_local.py.sample:/code/django_airavata/settings_local.py \
+ -p 8000:8000 airavata-django-portal
+ ```
+
+ But instead of `$PWD/django_airavata/settings_local.py.sample` you can
+ substitute your own settings_local.py file.
+
+3. Point your browser to http://localhost:8000.
+
+
## Documentation
Documentation currently is available at