community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r1692682 - in /comdev/tools: readme.md scripts/configHyper-v.sh
Date Sun, 26 Jul 2015 01:46:34 GMT
Author: rgardler
Date: Sun Jul 26 01:46:34 2015
New Revision: 1692682

URL: http://svn.apache.org/r1692682
Log:
use a unique pathname for the share to boot2docker, update the readme a little

Modified:
    comdev/tools/readme.md
    comdev/tools/scripts/configHyper-v.sh

Modified: comdev/tools/readme.md
URL: http://svn.apache.org/viewvc/comdev/tools/readme.md?rev=1692682&r1=1692681&r2=1692682&view=diff
==============================================================================
--- comdev/tools/readme.md (original)
+++ comdev/tools/readme.md Sun Jul 26 01:46:34 2015
@@ -22,6 +22,10 @@ application.
 
 ## Web Application Features##
 
+The web application is in development. Youwill probably want to use
+the CLI in preference to the webapp at this point. However, we welcome
+your contributions to the webapp.
+
   * Import new meetups from meetups.com
   * Maintain data in a database
   
@@ -97,7 +101,7 @@ a helper script to do this. First, creat
 Edit the 'config.sh' file, paying close attention to the section on
 Windows share configuration.
 
-No run:
+Now run:
 
     $ scripts/configHyper-v.sh
 
@@ -131,18 +135,20 @@ database container:
 
 Build the application container:
 
-	$ docker build -t comdev .
+	$ docker build -t meetups .
 
 Configure the application and the database:
 
-	$ docker run --rm -v //home/docker/project:/project --link comdev_db:db comdev python manage.py
makemigrations events_list
-	$ docker run --rm -v //home/docker/project:/project --link comdev_db:db comdev python manage.py
migrate
+	$ docker run --rm -v //home/docker/comdev/meetups:/project --link comdev_db:db meetups python
manage.py makemigrations events_list
+	$ docker run --rm -v //home/docker/comdev/meetups:/project --link comdev_db:db meetups python
manage.py migrate
 
 Now, run the application:
 
-	$ docker run --rm -v //home/docker/project:/project --link comdev_db:db -p 80:8000 --name
comdev_app comdev python manage.py runserver 0.0.0.0:8000
+	$ docker run --rm -v //home/docker/comdev/meetups:/project --link comdev_db:db -p 80:8000
--name meetup_app meetups python manage.py runserver 0.0.0.0:8000
+
+Now you can visit the app at http://docker.host/events
 
-Now you can visit the app at http://docker.host
+Access the admin pages at http://docker.host/admin
 
 ### Running Django Commands ###
 

Modified: comdev/tools/scripts/configHyper-v.sh
URL: http://svn.apache.org/viewvc/comdev/tools/scripts/configHyper-v.sh?rev=1692682&r1=1692681&r2=1692682&view=diff
==============================================================================
--- comdev/tools/scripts/configHyper-v.sh (original)
+++ comdev/tools/scripts/configHyper-v.sh Sun Jul 26 01:46:34 2015
@@ -8,10 +8,10 @@ source scripts/config.sh
 read -s -p "What is the password for the user account '$USER_NAME'?" USER_PASSWORD
 
 echo
-echo "Configuring $DEV_MACHINE_NAME"
+echo "Configuring $DEV_MACHINE_NAME to share meetups webapp at /home/docker/comdev/meetups"
 
 docker-machine ssh $DEV_MACHINE_NAME wget http://distro.ibiblio.org/tinycorelinux/5.x/x86/tcz/cifs-utils.tcz
 docker-machine ssh $DEV_MACHINE_NAME -- tce-load -i cifs-utils.tcz
-docker-machine ssh $DEV_MACHINE_NAME mkdir project
-echo "Mounting //$CLIENT_IP/$CLIENT_PATH_TO_PROJECT as /home/docker/project"
-docker-machine ssh $DEV_MACHINE_NAME -- "sudo mount -t cifs //$CLIENT_IP/$CLIENT_PATH_TO_PROJECT
/home/docker/project -o user=$USER_NAME,password=$USER_PASSWORD"
+echo "Mounting //$CLIENT_IP/$CLIENT_PATH_TO_PROJECT as /home/docker/comdev/meetups"
+docker-machine ssh $DEV_MACHINE_NAME -- "mkdir -p /home/docker/comdev/meetups"
+docker-machine ssh $DEV_MACHINE_NAME -- "sudo mount -t cifs //$CLIENT_IP/$CLIENT_PATH_TO_PROJECT
/home/docker/comdev/meetups -o user=$USER_NAME,password=$USER_PASSWORD"



Mime
View raw message