Skip to content

Commit

Permalink
Merge pull request #165 from ccb-hms/feature/rocker-base
Browse files Browse the repository at this point in the history
Feature/rocker base
  • Loading branch information
sam-pullman authored Feb 13, 2024
2 parents 5ffebfc + 8fcd924 commit f45d651
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 65 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
sudo swapoff -a
sudo rm -f /swapfile
sudo apt clean
yes | docker system prune
docker system prune -af
df -h
sudo rm -rf /usr/share/dotnet
df . -h
Expand Down
60 changes: 0 additions & 60 deletions .github/workflows/container_testing.yml

This file was deleted.

1 change: 1 addition & 0 deletions Code/R/excluded_tables.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ TableName Reason
All Years Large File
PAHS Large File
PAX80 FTP Only
PAXMIN Broken
DDX_2_B Broken
6 changes: 3 additions & 3 deletions Container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -355,15 +355,15 @@ 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.4.1
ENV EPICONDUCTOR_COLLECTION_DATE 2024-02-09
ENV EPICONDUCTOR_COLLECTION_DATE 2024-02-12

RUN echo "EPICONDUCTOR_CONTAINER_VERSION=$EPICONDUCTOR_CONTAINER_VERSION" >> /usr/local/lib/R/etc/Renviron.site
RUN echo "EPICONDUCTOR_COLLECTION_DATE=$EPICONDUCTOR_COLLECTION_DATE" >> /usr/local/lib/R/etc/Renviron.site

RUN echo "EPICONDUCTOR_CONTAINER_VERSION=$EPICONDUCTOR_CONTAINER_VERSION" >> /etc/environment
RUN echo "EPICONDUCTOR_COLLECTION_DATE=$EPICONDUCTOR_COLLECTION_DATE" >> /etc/environment

# RUN runuser -m -p mssql -c '/opt/mssql/bin/sqlservr &' \
# && Rscript /NHANES/containerBuildTests.R
RUN runuser -m -p mssql -c '/opt/mssql/bin/sqlservr &' \
&& Rscript /NHANES/containerBuildTests.R

CMD ["/startup/startup.sh"]
2 changes: 1 addition & 1 deletion Testing/Code/containerBuildTests.R
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ SqlTools::dbSendUpdate(cn, "DBCC SHRINKFILE(NhanesLandingZone_log)")
SqlTools::dbSendUpdate(cn, "CHECKPOINT")

#Check phonto and nhanesA installs
if (packageVersion("phonto")!="0.1.0"){stop(paste("Phonto installation failure or version 0.1.0 not matched."), sep='')}
if (packageVersion("phonto")!="0.1.1"){stop(paste("Phonto installation failure or version 0.1.1 not matched."), sep='')}
if (packageVersion("nhanesA")!="1.0"){stop(paste("nhanesA installation failure or version 1.0 not matched."), sep='')}

# shutdown the database engine cleanly
Expand Down

0 comments on commit f45d651

Please sign in to comment.