Skip to content

Commit

Permalink
DEV-430: Move tmp to data/gingr (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhoubk authored Dec 21, 2023
1 parent f980316 commit d0e0808
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
/data/gingr/ready/*
/data/gingr/processed/*
/data/gingr/failed/*
/data/gingr/processing/*


/solr/geodata-test/data
/solr/geodata-test/data
Expand Down
Empty file added data/gingr/processing/.keep
Empty file.
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ services:
GEOSERVER_URL: http://admin:geoserver@geoserver:8080/geoserver/rest/
SOLR_URL: http://solr:8983/solr/geodata-test
SPATIAL_ROOT: data/spatial/
PROCESSING_ROOT: data/processing/
restart: no
volumes:
- ./:/opt/app:delegated
Expand Down
4 changes: 3 additions & 1 deletion lib/gingr/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ def unpack(zipfile)
Config.default_options[:spatial_root])
DataHandler.geoserver_root = options[:geoserver_root] || ENV.fetch('GEOSERVER_ROOT',
Config.default_options[:geoserver_root])
DataHandler.processing_root = ENV.fetch('PROCESSING_ROOT', Config.default_options[:processing_root])

gingr_watch_root_dir ||= ENV['GINGR_WATCH_DIRECTORY'] || '/opt/app/data/gingr'
DataHandler.processing_root = File.join(gingr_watch_root_dir, 'processing')
DataHandler.extract_and_move(zipfile_path)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/gingr/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module Config
spatial_url: 'https://spatial.lib.berkeley.edu',
spatial_root: 'data/spatial/',
geoserver_root: 'data/geoserver/',
processing_root: 'data/processing/',
# processing_root: 'data/gingr/processing/',
solr_url: 'http://solr:8983/solr/geodata-test'
}

Expand Down

0 comments on commit d0e0808

Please sign in to comment.