Skip to content

Commit

Permalink
Resolved merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-palmer committed Nov 1, 2023
2 parents 1db29e6 + 6e12923 commit 720318c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
Binary file removed Code/.DS_Store
Binary file not shown.
12 changes: 6 additions & 6 deletions Container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,6 @@ RUN Rscript -e "remotes::install_cran('optparse')"
RUN Rscript -e "remove.packages('rvest')"
RUN Rscript -e "remotes::install_cran('rvest', repos='https://packagemanager.posit.co/cran/__linux__/focal/2021-01-29')"

# allow modification of these locations so users can install R packages without warnings
RUN chmod -R 777 /usr/local/lib/R/library
RUN chmod -R 777 /usr/local/lib/R/doc/html/packages.html

#install nhanesA and phonto from github in order to have the latest version (CRAN will take a while to update)
RUN Rscript -e "devtools::install_github('ccb-hms/phonto')"
RUN Rscript -e "devtools::install_github('cjendres1/nhanes')"
Expand Down Expand Up @@ -385,9 +381,13 @@ WORKDIR /NHANES
RUN runuser -m -p mssql -c '/opt/mssql/bin/sqlservr &' \
&& Rscript /NHANES/translateRawTables.R

# allow modification of these locations so users can install R packages without warnings
RUN chmod -R 777 /usr/local/lib/R/library
RUN chmod -R 777 /usr/local/lib/R/doc/html/packages.html

# Declare which version of the container this is, and make it available inside the container
ENV EPICONDUCTOR_CONTAINER_VERSION v0.1.0
ENV EPICONDUCTOR_COLLECTION_DATE 2023-10-02
ENV EPICONDUCTOR_CONTAINER_VERSION v0.5.1
ENV EPICONDUCTOR_COLLECTION_DATE 2023-10-31

RUN echo "EPICONDUCTOR_CONTAINER_VERSION=$EPICONDUCTOR_CONTAINER_VERSION" >> /usr/local/lib/R/etc/Renviron
RUN echo "EPICONDUCTOR_COLLECTION_DATE=$EPICONDUCTOR_COLLECTION_DATE" >> /usr/local/lib/R/etc/Renviron
Expand Down
4 changes: 4 additions & 0 deletions Container/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ fi
if [[ $ACCEPT_EULA == "Y" && ! -z $SA_PASSWORD ]]
then
runuser -m -p mssql -c '/opt/mssql/bin/sqlservr &'

# make the SA password available to all users
echo "SA_PASSWORD=$SA_PASSWORD" >> /etc/environment
echo "SA_PASSWORD=$SA_PASSWORD" >> /usr/local/lib/R/etc/Renviron
fi

# start RStudio Server
Expand Down

0 comments on commit 720318c

Please sign in to comment.