From b6184e57fb237e1580c4153bf4ee4b4736639be6 Mon Sep 17 00:00:00 2001 From: kevinthon Date: Tue, 3 Dec 2024 15:38:02 +0100 Subject: [PATCH] =?UTF-8?q?Legger=20til=20utviklingsmil=C3=B8=20for=20nkr?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker.yml | 1 + rygg-dev/Dockerfile | 13 +++++++++++++ rygg-dev/db.yml | 9 +++++++++ 3 files changed, 23 insertions(+) create mode 100644 rygg-dev/Dockerfile create mode 100644 rygg-dev/db.yml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 23ff5f3..69eea23 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -46,6 +46,7 @@ jobs: base-r-alpine: "base-r-alpine/**" pilot-dev: "pilot-dev/**" norvas-dev: "norvas-dev/**" + rygg-dev: "rygg-dev/**" push_to_registries: needs: changes diff --git a/rygg-dev/Dockerfile b/rygg-dev/Dockerfile new file mode 100644 index 0000000..2f4dc50 --- /dev/null +++ b/rygg-dev/Dockerfile @@ -0,0 +1,13 @@ +FROM rapporteket/dev:weekly + +LABEL maintainer="Kevin Thon " + +ARG GITHUB_PAT +ENV GITHUB_PAT=${GITHUB_PAT} + +# add registry dev config and R pkg dependencies +COPY --chown=rstudio:rstudio db.yml /home/rstudio/rap_config/ +RUN cat /home/rstudio/rap_config/db.yml >> /home/rstudio/rap_config/dbConfig.yml \ + && rm /home/rstudio/rap_config/db.yml \ + && R -e "remotes::install_github(c('Rapporteket/rapbase', 'Rapporteket/rapFigurer', \ + 'Rapporteket/rygg'))" diff --git a/rygg-dev/db.yml b/rygg-dev/db.yml new file mode 100644 index 0000000..75e61dc --- /dev/null +++ b/rygg-dev/db.yml @@ -0,0 +1,9 @@ + +# for registry development +rygg: + host: db + name: NKRRapporteket + user: root + pass: root + disp: ForRyggDevOnly +