almost working docker image
authorFrank Greguska <francis.greguska@jpl.nasa.gov>
Sat, 27 Jan 2018 03:06:35 +0000 (19:06 -0800)
committerFrank Greguska <francis.greguska@jpl.nasa.gov>
Sat, 27 Jan 2018 03:06:35 +0000 (19:06 -0800)
docker/README.md [new file with mode: 0644]
docker/entrypoint.sh
docker/example_config/ConnectionSettings.yml [new file with mode: 0644]
docker/example_config/ExampleJob.yml [new file with mode: 0644]

diff --git a/docker/README.md b/docker/README.md
new file mode 100644 (file)
index 0000000..dd70750
--- /dev/null
@@ -0,0 +1,5 @@
+
+
+Docker command to run a job (Docker-for-Mac only). Replace `<path to ningester>` with the path on your local workstation to the ningester github project. 
+
+    docker run -it --rm -v <path to ningester>/docker/example_config/:/config/ -v <path to ningester>/src/test/resources/granules/20050101120000-NCEI-L4_GHRSST-SSTblend-AVHRR_OI-GLOB-v02.0-fv02.0.nc:/data/data.nc sdap/ningester dockermachost,solr,cassandra
\ No newline at end of file
index fe1fe4e..d100c75 100755 (executable)
@@ -5,4 +5,4 @@ NINGESTER_JAR=`find ningester/build/libs -name ningester*.jar`
 CONFIG_FILES=`find /config -name "*.yml" | awk -vORS=, '{ print $1 }'`
 GRANULE=`find /data -type f`
 
-java -Dspring.profiles.active=$1 -Dspring.config.locations=${CONFIG_FILES} -jar ${NINGESTER_JAR} granule=${GRANULE}
\ No newline at end of file
+java -Dspring.profiles.active=$1 -Dspring.config.location=${CONFIG_FILES} -jar ${NINGESTER_JAR} granule=${GRANULE}
\ No newline at end of file
diff --git a/docker/example_config/ConnectionSettings.yml b/docker/example_config/ConnectionSettings.yml
new file mode 100644 (file)
index 0000000..dd615d1
--- /dev/null
@@ -0,0 +1,22 @@
+---
+# Connection settings for the dockermachost profile
+spring:
+    profiles:
+      - dockermachost
+    data:
+      cassandra:
+        keyspaceName: nexustiles
+        contactPoints: docker.for.mac.localhost
+      solr:
+        host: http://docker.for.mac.localhost:8983/solr/
+
+ningester:
+  pythonChainProcessor:
+    base_url: http://127.0.0.1:5000/
+    uri_path: processorchain
+
+datasource:
+  solrStore:
+    commitWithin: 1500
+    geoPrecision: 3
+    collection: nexustiles
\ No newline at end of file
diff --git a/docker/example_config/ExampleJob.yml b/docker/example_config/ExampleJob.yml
new file mode 100644 (file)
index 0000000..18ba372
--- /dev/null
@@ -0,0 +1,44 @@
+# Tile Slicer Config
+ningester:
+    tile_slicer: sliceFileByTilesDesired
+    sliceFileByTilesDesired:
+      tilesDesired: 5184
+      timeDimension: time
+      dimensions:
+        - lat
+        - lon
+
+---
+# Tile processors configuration
+ningester:
+    tile_processors:
+      - pythonChainProcessor
+      - generateTileId
+      - addDatasetName
+    pythonChainProcessor:
+      enabled:
+      processor_list:
+        -
+          name: GridReadingProcessor
+          config:
+            latitude: lat
+            longitude: lon
+            time: time
+            variable_to_read: analysed_sst
+        -
+          name: EmptyTileFilter
+        -
+          name: KelvinToCelsius
+        -
+          name: TileSummarizingProcessor
+    generateTileId:
+      enabled:
+    addDatasetName:
+      enabled:
+      datasetName: AVHRR_OI_L4_GHRSST_NCEI
+---
+# Tile writer configuration
+ningester:
+  tile_writer:
+    data_store: cassandraStore
+    metadata_store: solrStore
\ No newline at end of file