forked from PondiB/openeocubes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart2.R
More file actions
33 lines (24 loc) · 1.13 KB
/
start2.R
File metadata and controls
33 lines (24 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# build and install package locally (use for development)
#install.packages("remotes", repos = "http://cran.us.r-project.org")#, lib="/home/ubuntu/rpacks")
install.packages("devtools", repos = "http://cran.us.r-project.org",lib =.libPaths()[1])
#ibrary(remotes, lib.loc=.libPaths()[3])#, lib.loc="/home/ubuntu/rpacks")
library(devtools,lib.loc=.libPaths()[1])
#install.packages("renv",repos = "http://cran.us.r-project.org")
#library(renv)
#remove.packages("openeocubes")
#remotes::install_local('./',dependencies=TRUE, force=TRUE,lib="D:/rpacks")#,lib="/home/ubuntu/rpacks",dependencies=TRUE, force=TRUE)
devtools::install_local('./',dependencies=TRUE, force=TRUE, lib=.libPaths()[1])
# Start service
library(openeocubes,lib.loc=.libPaths()[1])#,lib.loc="/home/ubuntu/rpacks")
aws.host <-Sys.getenv("AWSHOST")
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 = 8080, host = "0.0.0.0", aws.ipv4 = "34.209.215.214")
config$workspace.path = "/var/openeo/workspace"
createSessionInstance(config)
Session$startSession()