[extensions-web] readme: described a way to run website in Docker container



commit 1578c272fcbbc2b13c61969bd3236d480b39f9cb
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Sat Jan 19 12:33:23 2019 +0400

    readme: described a way to run website in Docker container

 README.rst | 36 ++++++++++++++++++++++++++++++++++--
 1 file changed, 34 insertions(+), 2 deletions(-)
---
diff --git a/README.rst b/README.rst
index dfd8842..7d8722c 100644
--- a/README.rst
+++ b/README.rst
@@ -39,8 +39,40 @@ Python Requirements:
 .. _Pygments: http://www.pygments.org/
 
 
-Getting Started
----------------
+Running with Docker
+-------------------
+
+Make sure you have both `Docker`_ and `Docker Compose`_ installed as well as runnning `Docker`_ instance.
+
+You can start website with commands:
+::
+
+  $ git clone https://git.gnome.org/browse/extensions-web
+  $ cd extensions-web/openshift/docker
+  $ MYSQL_USER=extensions-web \
+    MYSQL_PASSWORD=SOME_PASSWORD \
+    EGO_ALLOWED_HOST=* \
+    EGO_DATABASE_URL=mysql://extensions-web:SOME_PASSWORD@db/extensions-web \
+    EGO_NODE_ADDRESS=extensions-web \
+    EGO_SECRET_KEY=SOME_SECRET_KEY \
+    EGO_XAPIAN_DB=/extensions-web/data/xapian.db \
+    docker-compose up --build
+
+That's all! Website will be available as http://localhost:8080.
+
+Don't forget to substitute "SOME_PASSWORD" and "SOME_SECRET_KEY" with proper values.
+
+You also may want to create superuser account - look to virtualenv guide below for
+apropriate command and `Docker`_ documentation for a way running command within running
+`Docker`_ container.
+
+.. _Docker: https://www.docker.com/
+.. _Docker Compose: https://docs.docker.com/compose/
+
+
+Running with virtualenv
+-----------------------
+
 You can get started developing the website with::
 
   $ git clone https://git.gnome.org/browse/extensions-web


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]