Skip to content

Commit 4e7f7ca

Browse files
committed
Add missing Dockerfile example
1 parent 0751f96 commit 4e7f7ca

File tree

1 file changed

+10
-0
lines changed
  • sample-extractors/simple-r-extractor

1 file changed

+10
-0
lines changed

sample-extractors/simple-r-extractor/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,21 @@ The dockerfile has 2 environment variables that need to be set:
5454
no file needs to be sourced (for example in case when the file is installed as a package).
5555
- R_FUNCTION : the name of the function that needs to be called that takes a file as input and returns an object that
5656
contains the data described above.
57+
5758
There can be 2 additional files that are used when creating the docker image:
5859
- packages.apt : a list of ubuntu packages that need to be installed for the default ubuntu repositories.
5960
- docker.R : an R script that is run during the docker build process. This can be used to install any required R
6061
packages. Another option is to install the code if it is provided as an R package.
6162

63+
An example of the Dockerfile is:
64+
65+
```Dockerfile
66+
FROM clowder/extractors-simple-r-extractor:onbuild
67+
68+
ENV R_SCRIPT="wordcount.R" \
69+
R_FUNCTION="process_file"
70+
```
71+
6272
There also has to be an extractor_info.json file which contains information about the extractor and is used to by the
6373
extractor framework to initialize the extractor as well as upload information to clowder about the extractor.
6474

0 commit comments

Comments
 (0)