File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff 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+
5758There 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+
6272There also has to be an extractor_info.json file which contains information about the extractor and is used to by the
6373extractor framework to initialize the extractor as well as upload information to clowder about the extractor.
6474
You can’t perform that action at this time.
0 commit comments