forked from eco4cast/neon4cast-ci
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from eco4cast/targets-docker
Creating dockerfile for targets
- Loading branch information
Showing
4 changed files
with
25 additions
and
37 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
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
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
FROM eco4cast/rocker-neon4cast:latest | ||
|
||
# Import GitHub Secret | ||
ARG GITHUB_PAT | ||
ENV GITHUB_PAT=$GITHUB_PAT | ||
|
||
# Declares build arguments | ||
# ARG NB_USER | ||
# ARG NB_UID | ||
|
||
# COPY --chown=${NB_USER} . ${HOME} | ||
|
||
#USER ${NB_USER} | ||
RUN install2.r --error \ | ||
clustermq \ | ||
dataRetrieval \ | ||
tarchetypes \ | ||
targets \ | ||
&& rm -rf /tmp/downloaded_packages /tmp/*.rds /tmp/Rtmp* | ||
|
||
COPY cron.sh /etc/services.d/cron/run |