From 48ba6e0fcb0e3523ef54f78326d815b863bd1be9 Mon Sep 17 00:00:00 2001 From: Kate Isaac <41767733+kweav@users.noreply.github.com> Date: Mon, 19 May 2025 13:45:03 -0400 Subject: [PATCH] add a new docker image for metrics --- .github/workflows/merge.yml | 1 + .github/workflows/pull_request.yml | 1 + ottr_metrics/Dockerfile | 9 +++++++++ 3 files changed, 11 insertions(+) create mode 100644 ottr_metrics/Dockerfile diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index 7660995..5f093f5 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -26,6 +26,7 @@ jobs: - {dir: ottr_website, name: 'jhudsl/ottr_website'} - {dir: ottr_jupyter, name: 'jhudsl/ottr_jupyter'} - {dir: ottr_itn_workshop, name: 'jhudsl/ottr_itn_workshop'} + - {dir: ottr_metrics, name: 'jhudsl/ottr_metrics'} # NEW IMAGES HERE: # ####### - {dir: directory_path, name: 'name its called on dockerhub'} steps: diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index c605ad3..a13516c 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -23,6 +23,7 @@ jobs: - {dir: ottr_website, name: 'jhudsl/ottr_website'} - {dir: ottr_jupyter, name: 'jhudsl/ottr_jupyter'} - {dir: ottr_itn_workshop, name: 'jhudsl/ottr_itn_workshop'} + - {dir: ottr_metrics, name: 'jhudsl/ottr_metrics'} # NEW IMAGES HERE: # ####### - {dir: directory_path, name: 'name its called on dockerhub'} steps: diff --git a/ottr_metrics/Dockerfile b/ottr_metrics/Dockerfile new file mode 100644 index 0000000..33eaa6a --- /dev/null +++ b/ottr_metrics/Dockerfile @@ -0,0 +1,9 @@ +# Usage: for running the analysis part of the AnVIL User Poll + +FROM jhudsl/ottr_website +LABEL maintainer="itcrtrainingnetwork@gmail.com" + +# Install metrics packages +RUN Rscript -e "options(warn = 2);install.packages( \ + c('cranlogs', 'metricminer'), \ + repos = 'https://cloud.r-project.org/')"