-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
succesful run of stack: Apache/Flask/PostGIS with ETL via Stetl
- Loading branch information
Showing
11 changed files
with
169 additions
and
49 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
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
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
# | ||
# Run the Apache2 server with mapping to local config | ||
# | ||
|
||
GIT="/opt/geonovum/smartem/git" | ||
WWW="${GIT}/www" | ||
CONFIG="${GIT}/services/apache2" | ||
LOG="/var/smartem/log" | ||
NAME="apache2" | ||
IMAGE="geonovum/apache2" | ||
|
||
VOL_MAP="-v ${CONFIG}/sites-enabled:/etc/apache2/sites-enabled -v ${GIT}:${GIT} -v ${LOG}/apache2:/var/log/apache2" | ||
PORT_MAP="-p 2222:22 -p 80:80" | ||
PG_HOST="postgis" | ||
|
||
# Stop and remove possibly old containers | ||
sudo docker stop ${NAME} > /dev/null 2>&1 | ||
sudo docker rm ${NAME} > /dev/null 2>&1 | ||
|
||
# Finally run | ||
sudo docker run --name ${NAME} --link ${PG_HOST}:${PG_HOST} -d ${PORT_MAP} ${VOL_MAP} -t -i ${IMAGE} |
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,65 @@ | ||
# SmartEmission API Web Services | ||
<VirtualHost *:80> | ||
ServerName api.smartemission.nl | ||
ServerAlias api.test.smartemission.nl | ||
ServerAlias api.local.smartemission.nl | ||
|
||
DocumentRoot /opt/geonovum/smartem/git/services/sosrest | ||
ServerAdmin just@justobjects.nl | ||
|
||
DirectoryIndex index.html index.jsp index.cgi index.fcgi | ||
|
||
# Try with worker MPM, WSGIDaemonProcess bad perf with prefork MP? | ||
# WSGIDaemonProcess smartem_sosemu user=sadmin group=sadmin processes=4 threads=4 | ||
# WSGIProcessGroup smartem_sosemu | ||
# WSGIApplicationGroup %{GLOBAL} | ||
WSGIScriptAlias /sosemu /opt/geonovum/smartem/git/services/sosrest/index.py | ||
|
||
# WSGIScriptAlias /istsos /opt/istsos/latest/application.py | ||
# Alias /istsos/admin /opt/istsos/latest/interface/admin | ||
# Alias /istsos/modules /opt/istsos/latest/interface/modules | ||
|
||
<Directory /opt/geonovum/smartem/git/services/sosrest/> | ||
Require all granted | ||
</Directory> | ||
|
||
# <LocationMatch /istsos> | ||
# Options +Indexes +FollowSymLinks +MultiViews | ||
# AllowOverride all | ||
# Require all granted | ||
# </LocationMatch> | ||
|
||
# %D voor timing in microsecs | ||
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %D" mpcombined | ||
CustomLog /var/log/apache2/api.smartem-access.log mpcombined | ||
ErrorLog /var/log/apache2/api.smartem-error.log | ||
</VirtualHost> | ||
|
||
# SmartEmission Web Site and Apps | ||
<VirtualHost *:80> | ||
ServerName smartemission.nl | ||
ServerAlias www.smartemission.nl | ||
ServerAlias test.smartemission.nl | ||
ServerAlias local.smartemission.nl | ||
|
||
DocumentRoot /opt/geonovum/smartem/git/www/site | ||
ServerAdmin just@justobjects.nl | ||
|
||
ScriptAlias /cgi-bin/ /opt/geonovum/smartem/git/www/cgi-bin/ | ||
<Directory "/opt/geonovum/smartem/git/www/cgi-bin"> | ||
AllowOverride None | ||
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch | ||
Require all granted | ||
</Directory> | ||
|
||
DirectoryIndex index.html | ||
|
||
<Directory /opt/geonovum/smartem/git/www/site/> | ||
Require all granted | ||
</Directory> | ||
|
||
# %D voor timing in microsecs | ||
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %D" mpcombined | ||
CustomLog /var/log/apache2/smartem-access.log mpcombined | ||
ErrorLog /var/log/apache2/smartem-error.log | ||
</VirtualHost> |
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,9 +1,9 @@ | ||
# local config, change on server for real config | ||
config = { | ||
'database': 'sensors', | ||
'host': 'localhost', | ||
'database': 'gis', | ||
'host': 'postgis', | ||
'port': '5432', | ||
'schema': 'smartem_rt', | ||
'user': 'postgres', | ||
'password': 'postgres' | ||
'user': 'docker', | ||
'password': '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