-
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.
working Docker for ETL with PostGIS!!
- Loading branch information
Showing
10 changed files
with
45 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Docker | ||
|
||
Below the Docker image recipes. | ||
|
||
## Shorthands | ||
|
||
Run postgis | ||
|
||
sudo docker run --name "postgis" -p 5432:5432 -d -t kartoza/postgis:9.4-2.1 | ||
psql -h localhost -U docker -l | ||
|
||
Remove images | ||
sudo docker rm -v $(sudo docker ps -a -q -f status=exited) |
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,44 +1,3 @@ | ||
FROM ubuntu:14.04 | ||
# FROM python:2.7 | ||
|
||
MAINTAINER just@justobjects.nl | ||
|
||
# Use local cached debs from host (saves your bandwidth!) | ||
# Change ip below to that of your apt-cacher-ng host | ||
# Or comment this line out if you do not with to use caching | ||
# ADD 71-apt-cacher-ng /etc/apt/apt.conf.d/71-apt-cacher-ng | ||
RUN export DEBIAN_FRONTEND=noninteractive TERM=linux && \ | ||
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections | ||
|
||
RUN apt-get -y update | ||
RUN apt-get install -y software-properties-common | ||
RUN apt-add-repository ppa:ubuntugis/ubuntugis-unstable | ||
RUN apt-get -y update | ||
|
||
#-------------Application Specific Stuff ---------------------------------------------------- | ||
|
||
# python-imaging \ | ||
# python-yaml \ | ||
# libjpeg-dev \ | ||
# zlib1g-dev \ | ||
# libfreetype6-dev \ | ||
# python-virtualenv | ||
|
||
RUN apt-get install -y \ | ||
git \ | ||
libproj0 \ | ||
libgeos-dev \ | ||
python-lxml \ | ||
python-gdal \ | ||
libgdal-dev \ | ||
build-essential \ | ||
python-dev \ | ||
python-setuptools | ||
|
||
# ADD start.sh /start.sh | ||
# RUN chmod 0755 /start.sh | ||
RUN git clone https://github.com/justb4/stetl /opt/stetl | ||
|
||
RUN cd /opt/stetl; python setup.py install | ||
|
||
ENTRYPOINT ["/usr/local/bin/stetl"] | ||
# TODO for now kartoza/postgis:9.4-2.1 fulfills all needs |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
# ETL - Extract, Transform, Load for sensor data | ||
|
||
Sources for ETL of Smart Emission project Nijmegen. | ||
|
||
Uses host-specific variables for databases, passwords etc. | ||
To use define a file on your host called options-<your host>.sh | ||
Take the example file options-sunda.sh for initial values and adapt to your host. | ||
|
||
Most ETL is developed using Stetl: http://stetl.org | ||
|
||
last.sh: last values | ||
|
||
|
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,5 @@ | ||
# passwd docker | ||
|
||
export PGPASSWORD=docker | ||
|
||
psql -h localhost -U docker gis -f db/db-schema-last.sql |
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
File renamed without changes.
File renamed without changes.