Error:
ERROR File not found: main.R
Cause:
Plumber v0.3.5 works but not the newest release. This is because of the way Plumber v1.0.0 sets the working directory.
Solution:
Add the following to the Dockerfile instructions:
#Fix the expired apt key RUN apt-key del "E298 A3A8 25C0 D65D FD57 CBB6 5171 6619 E084 DAB9" \ && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 #Update plumber from 0.4.6 to 1.0.0 RUN apt-get update \ && apt-get install -y libsodium-dev \ && R --no-save -e "install.packages('plumber')" RUN echo 'sudo mkdir -p /domino/model-manager' >> /home/ubuntu/.domino-defaults \ && echo 'chown -R ubuntu:ubuntu /domino/model-manager' >> /home/ubuntu/.domino-defaults \ && echo 'sudo wget https://gist.githubusercontent.com/imarchenko/1f4c18798432caae5452f2370be8305e/raw/6815f7b7edf0dfdf8546366dab4db57778729f11/plumber_app_common.R -O /domino/model-manager/plumber_app_common.R' >> /home/ubuntu/.domino-defaults
If this solution doesn’t resolve your issue, please contact Domino Support.
Comments
0 comments
Please sign in to leave a comment.