-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Script for local server start (#67) * test commit * test commit 2 * removed test files * test commit 4 * test2 * test3c * remove unnassesary files * fixed missing parantheses * results folder in .gitignore * Local server (#1) * accepeted changes * fixed bug through missing conversion of crs * added helper function * fixed wrong change * remove unused file * remove unused line * added file to run server locally * updated Readme for local server --------- Co-authored-by: mreiner1 <[email protected]> Co-authored-by: Maximilian Reiner <[email protected]> Co-authored-by: Brian Pϕndi <[email protected]> * Refactor start in production --------- Co-authored-by: Michael Brüggemann <[email protected]> Co-authored-by: mreiner1 <[email protected]> Co-authored-by: Maximilian Reiner <[email protected]>
- Loading branch information
1 parent
da9c6d4
commit 63e519d
Showing
5 changed files
with
29 additions
and
30 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
This file was deleted.
Oops, something went wrong.
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,12 +1,12 @@ | ||
version: "3.3" | ||
|
||
services: | ||
openeocube: | ||
openeocubes: | ||
build: . | ||
environment: | ||
- TZ=Etc/UTC | ||
- DEBIAN_FRONTEND=noninteractive | ||
container_name: openeocube | ||
container_name: openeocubes | ||
ports: | ||
- "8000:8000" | ||
restart: always |
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,20 +1,19 @@ | ||
# build and install package locally (use for development) | ||
remotes::install_local('./',dependencies=TRUE, force=TRUE) | ||
remotes::install_local("./", dependencies = TRUE, force = TRUE) | ||
|
||
# Start service | ||
library(openeocubes) | ||
|
||
aws.host <- Sys.getenv("AWSHOST") | ||
|
||
aws.host <-Sys.getenv("AWSHOST") | ||
|
||
if (aws.host == ""){ | ||
aws.host = NULL | ||
if (aws.host == "") { | ||
aws.host <- NULL | ||
} else { | ||
message("AWS host port id is: ", aws.host) | ||
} | ||
|
||
message("AWS host port id is:") | ||
message(aws.host) | ||
|
||
config = SessionConfig(api.port = 8000, host = "0.0.0.0", aws.ipv4 = aws.host) | ||
config$workspace.path = "/var/openeo/workspace" | ||
config <- SessionConfig(api.port = 8000, host = "0.0.0.0", aws.ipv4 = aws.host) | ||
config$workspace.path <- "/var/openeo/workspace" | ||
createSessionInstance(config) | ||
Session$startSession() | ||
Session$startSession() |
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,17 @@ | ||
# Start service | ||
library(openeocubes) | ||
|
||
|
||
aws.host <- Sys.getenv("AWSHOST") | ||
|
||
if (aws.host == "") { | ||
aws.host <- NULL | ||
} else { | ||
message("AWS host port id is: ", aws.host) | ||
} | ||
|
||
|
||
config <- SessionConfig(api.port = 8000, host = "0.0.0.0", aws.ipv4 = aws.host) | ||
config$workspace.path <- "/var/openeo/workspace" | ||
createSessionInstance(config) | ||
Session$startSession() |