Skip to content

Commit 5ac6fe1

Browse files
committed
Docker files for local development setup and attempt to fix encoding issues for SHP ingestion reported https://github.com/AtlasOfLivingAustralia/biocache-store/issues/353
1 parent bb124fa commit 5ac6fe1

File tree

13 files changed

+1067
-42
lines changed

13 files changed

+1067
-42
lines changed

README.md

+54-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,57 @@
11
### [![Build Status](https://travis-ci.org/AtlasOfLivingAustralia/spatial-service.svg?branch=master)](https://travis-ci.org/AtlasOfLivingAustralia/spatial-service)
22

33
# spatial-service
4-
This is the replacement for layers-service, analysis-service components of ALA.
4+
5+
This component provides the bulk of the spatial web services for the Atlas' spatial portal that make use of spatial
6+
data in Shape or Grid format.
7+
8+
It includes:
9+
10+
* A management console Ingestion of Shape and Grid files
11+
* TODO complete list....
12+
13+
# Architecture
14+
15+
* Grails 3 web application ran in the tomcat 7 or as standalone executable jar
16+
* Open JDK 8
17+
* PostGIS database (9.6 or above)
18+
* Geoserver
19+
20+
# Installation
21+
22+
There are ansible scripts for this applications (and other ALA tools)
23+
in the ala-install project.
24+
The ansible playbook for the spatial-service is here
25+
26+
You can also run this application locally by following the instructions on its wiki page.
27+
28+
# Running it locally
29+
30+
Here are some instructions for running spatial-service locally for development.
31+
The assumption here is that you are trying to run spatial-service in an IDE such as IntelliJ
32+
33+
34+
There is a docker-compose YML file that can be used to run postgres & geoserver
35+
locally for local development purposes. To use, run:
36+
37+
```
38+
docker-compose -f geoserver-postgis.yml up -d
39+
```
40+
41+
And to shutdown:
42+
43+
```
44+
docker-compose -f geoserver-postgis.yml kill
45+
```
46+
47+
There is also a requirement for have GDAL installed locally. This can be done with HomeBrew on Mac OSX
48+
49+
```
50+
brew install gdal
51+
```
52+
53+
Note: On Mac OSX, GGDAL tools are installed here `/usr/local/bin/`. You can use the `gdal.dir` configuration property to specify the location if different.
54+
55+
56+
57+

build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ buildscript {
1212
}
1313
}
1414

15-
version "0.3"
15+
version "0.3.1-SNAPSHOT"
1616
group "au.org.ala"
1717

1818
apply plugin:"eclipse"
@@ -39,7 +39,7 @@ dependencies {
3939
compile "org.springframework:spring-test:4.3.9.RELEASE"
4040
compile "org.grails:grails-core"
4141
compile "org.springframework.boot:spring-boot-starter-actuator"
42-
compile "org.springframework.boot:spring-boot-starter-tomcat"
42+
provided "org.springframework.boot:spring-boot-starter-tomcat"
4343
compile "org.grails:grails-web-boot"
4444
compile "org.grails:grails-logging"
4545
compile "org.grails:grails-plugin-rest"

env/geoserver/.envgeoserver

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
USERNAME=admin
2+
PASS=geoserver
3+
GEOSERVER_URL=http://localhost:8080/geoserver
4+
GEOSERVER_DATA_DIR=/data/geoserver_data_dir
5+
GEOWEBCACHE_CACHE_DIR=/data/geoserver_data_dir/gwc
6+
GEOSERVER_LOG_LOCATION=/data/geoserver_data_dir/logs/geoserver.log
7+
FOOTPRINTS_DATA_DIR=/data/geoserver_data_dir/footprints_dir
8+
RELINQUISH_LOG4J_CONTROL=true
9+
ENABLE_JSONP=true
10+
MAX_FILTER_RULES=20
11+
OPTIMIZE_LINE_WIDTH=false
12+
LAYERS_DB_HOST=postgis
13+
LAYERS_DB_PORT=5432
14+
LAYERS_DB_NAME=layersdb
15+
LAYERS_DB_USERNAME=layers
16+
LAYERS_DB_PASSWORD=layers

0 commit comments

Comments
 (0)