forked from xdocker/xgeoserver

Tim Sutton
2014-06-29 c4acb7d883c1af79b8a897fecb63811849d7f513
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
 
 
# Set the locale - see http://jaredmarkell.com/docker-and-locales/
# a work around for this error when running tilemill:
# what():  locale::facet::_S_create_c_locale name not valid
locale-gen en_US.UTF-8  
export LANG en_US.UTF-8  
export LANGUAGE en_US:en  
export LC_ALL en_US.UTF-8 
TILEMILL_HOST=`ifconfig eth0 | grep 'inet addr:'| cut -d: -f2 | awk '{ print $1}'` 
cd /usr/share/tilemill
./index.js --server=true --listenHost=0.0.0.0 --coreUrl=${TILEMILL_HOST}:20009 --tileUrl=${TILEMILL_HOST}:20008