This repository has been archived by the owner on Oct 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
75 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
^.*\.Rproj$ | ||
^\.Rproj\.user$ | ||
^\.Rhistory$ | ||
^\.git$ | ||
^Dockerfiles$ | ||
^DOCKERFILE$ | ||
^README.md$ |
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,6 +1,6 @@ | ||
Package: openEO.R.Backend | ||
Title: Reference backend implementation for openEO conformant backend with a local filesystem | ||
Version: 0.1 | ||
Version: 0.1.1 | ||
Authors@R: person("Florian", "Lahn", email = "[email protected]", role = c("aut", "cre")) | ||
Description: The package contains a backend solution in compliance with the openEO API. In this demonstration | ||
the file backend solution is the local file system containing some raster data collections. | ||
|
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,24 @@ | ||
FROM r-base:3.4.3 | ||
MAINTAINER Florian Lahn ([email protected]) | ||
LABEL version="0.1.1" | ||
LABEL description="A simple openeo (almost) conformant backend for frontend development" | ||
|
||
# create the path for the user files | ||
RUN mkdir -p /opt/dockerfiles/ | ||
RUN mkdir -p /var/openeo/workspace/ | ||
|
||
COPY ./ /opt/dockerfiles/ | ||
|
||
# run commands to prepare the image | ||
# install dependencies | ||
RUN apt-get -y update | ||
RUN apt-get -y install libgdal-dev libcurl4-gnutls-dev libssl-dev libssh2-1-dev libsodium-dev | ||
|
||
# install R dependencies and install package | ||
RUN R -f /opt/dockerfiles/Dockerfiles/install_package_dependencies.R | ||
|
||
|
||
# cmd or entrypoint for startup | ||
ENTRYPOINT ["R", "-q", "--no-save", "-f /opt/dockerfiles/Dockerfiles/server_start.R"] | ||
|
||
EXPOSE 8000 |
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,7 @@ | ||
cran.mirror = "https://cran.uni-muenster.de/" | ||
|
||
install.packages("devtools",repos=cran.mirror) | ||
library(devtools) | ||
|
||
install_deps("/opt/dockerfiles",repos=cran.mirror) | ||
install("/opt/dockerfiles") |
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,10 @@ | ||
library(openEO.R.Backend) | ||
rm(openeo.server) | ||
openeo.server$data.path = paste(system.file(package="openEO.R.Backend"),"extdata",sep="/") | ||
openeo.server$workspaces.path = "/var/openeo/workspace" | ||
openeo.server$initEnvironmentDefault() | ||
openeo.server$initializeDatabase() | ||
|
||
openeo.server$createUser(user_name="test", password="test") #only created if not exists | ||
openeo.server$loadDemo() | ||
openeo.server$startup(port = 8000,host="0.0.0.0") |
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