Skip to content

Commit

Permalink
make shared storage path configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
hotzevzl committed May 27, 2021
1 parent 1813a45 commit cc01291
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ orchestrated via Kubernetes (forthcoming).
to mute all logging (for example, in CI pipelines) irrespective of Node
environment and other settings that would normally affect the logging
verbosity of the API
* `API_SHARED_FILE_STORAGE_LOCAL_PATH` (string, optional, default is
`/tmp/storage`): set this to a filesystem path if needing to override the
default temporary storage location where shared volumes for files shared
from the API to the Geoprocessing service are mounted; configuration of
mount point for shared storage (via Docker volumes in development
environments and via Persistent Volumes in Kubernetes environments) should
be set accordingly
* `APP_SERVICE_PORT` (number, required): the port on which the App service should
listen on the local machine
* `POSTGRES_API_SERVICE_PORT` (number, required): the port on which the
Expand Down
5 changes: 5 additions & 0 deletions api/config/custom-environment-variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,10 @@
"connection": {
"host": "REDIS_HOST"
}
},
"storage": {
"sharedFileStorage": {
"localPath": "API_SHARED_FILE_STORAGE_LOCAL_PATH"
}
}
}
5 changes: 5 additions & 0 deletions api/config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
},
"geoprocessing": {
"url": "http://geoprocessing:3000"
},
"storage": {
"sharedFileStorage": {
"localPath": "/tmp/storage"
}
}
}

5 changes: 5 additions & 0 deletions geoprocessing/config/custom-environment-variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,10 @@
},
"api": {
"url": "API_SERVICE_URL"
},
"storage": {
"sharedFileStorage": {
"localPath": "API_SHARED_FILE_STORAGE_LOCAL_PATH"
}
}
}
5 changes: 5 additions & 0 deletions geoprocessing/config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,10 @@
},
"api": {
"url": "http://api:3000"
},
"storage": {
"sharedFileStorage": {
"localPath": "/tmp/storage"
}
}
}

0 comments on commit cc01291

Please sign in to comment.