Skip to content

Commit

Permalink
Merge branch 'main' into nhn
Browse files Browse the repository at this point in the history
  • Loading branch information
arnfinn authored Jan 13, 2025
2 parents 4843088 + 2cf547d commit 1d8d28e
Show file tree
Hide file tree
Showing 17 changed files with 117 additions and 16 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
images: ${{ steps.filter.outputs.changes }}
steps:
- name: Check out the repo
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
Expand All @@ -46,6 +46,11 @@ jobs:
rapregtemplate-dev: "rapregtemplate-dev/**"
base-r-alpine: "base-r-alpine/**"
pilot-dev: "pilot-dev/**"
norvas-dev: "norvas-dev/**"
rygg-dev: "rygg-dev/**"
intensivberedskap-dev: "intensivberedskap-dev/**"
ethirgast-dev: "ethirgast-dev/**"
kvarus-dev: "kvarus-dev/**"
push_to_registries:
needs: changes
Expand All @@ -58,14 +63,14 @@ jobs:
name: ${{ matrix.image }}
steps:
- name: Check out the repo
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4
- name: Lint Dockerfile
uses: hadolint/[email protected]
with:
dockerfile: "${{ matrix.image }}/Dockerfile"
- name: Prepare tags
id: docker_meta
uses: docker/metadata-action@v5.5.1
uses: docker/metadata-action@v5
with:
images: rapporteket/${{ matrix.image }}
tags: |
Expand All @@ -74,15 +79,15 @@ jobs:
type=schedule,pattern=weekly
type=semver,pattern={{version}}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.7.1
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3.3.0
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push to Docker Hub
uses: docker/build-push-action@v6.9.0
uses: docker/build-push-action@v6
with:
context: ./${{ matrix.image }}/.
file: ./${{ matrix.image }}/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion base-r/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM rocker/r-ver:4.4.1

LABEL maintainer "Arnfinn Hykkerud Steindal <[email protected]>"
LABEL maintainer="Arnfinn Hykkerud Steindal <[email protected]>"

# hadolint ignore=DL3008
RUN apt-get update && apt-get install -y --no-install-recommends \
Expand Down
2 changes: 1 addition & 1 deletion deformitet-dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM rapporteket/dev:weekly

LABEL maintainer "Kevin Thon <[email protected]>"
LABEL maintainer="Kevin Thon <[email protected]>"

ARG GITHUB_PAT
ENV GITHUB_PAT=${GITHUB_PAT}
Expand Down
8 changes: 4 additions & 4 deletions dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM rocker/verse:4.4.1

LABEL maintainer "Arnfinn Hykkerud Steindal <[email protected]>"
LABEL maintainer="Arnfinn Hykkerud Steindal <[email protected]>"

ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_FRONTEND=noninteractive

# system libraries of general use
# hadolint ignore=DL3008
Expand Down Expand Up @@ -33,7 +33,7 @@ RUN locale-gen nb_NO.UTF-8
# System locales
ENV LANG=nb_NO.UTF-8
ENV LC_ALL=nb_NO.UTF-8
ENV LC_TIME nb_NO.UTF-8
ENV LC_TIME=nb_NO.UTF-8
RUN echo "LANG=\"nb_NO.UTF-8\"" > /etc/default/locale
ENV TZ=Europe/Oslo

Expand Down Expand Up @@ -94,7 +94,7 @@ RUN touch /home/rstudio/.Renviron \
&& echo "DB_HOST=${DB_HOST}" >> /home/shiny/.Renviron \
&& echo "DB_USER=${DB_USER}" >> /home/shiny/.Renviron \
&& echo "DB_PASS=${DB_PASS}" >> /home/shiny/.Renviron \
&& R -e "install.packages(c('remotes', 'lifecycle', 'testthat'), repos='https://cloud.r-project.org/')" \
&& R -e "install.packages(c('remotes', 'lifecycle', 'testthat', 'lintr'), repos='https://cloud.r-project.org/')" \
&& R -e "remotes::install_github('rapporteket/rapbase@*release')" \
&& R -e "file.copy(system.file(c('dbConfig.yml', 'rapbaseConfig.yml', 'autoReport.yml'), package = 'rapbase'), Sys.getenv('R_RAP_CONFIG_PATH'))" \
&& touch ${CONFIG_PATH}/appLog.csv \
Expand Down
13 changes: 13 additions & 0 deletions ethirgast-dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM rapporteket/dev:weekly

LABEL maintainer="Kevin Thon <[email protected]>"

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/ethirgast'))"
9 changes: 9 additions & 0 deletions ethirgast-dev/db.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

# for registry development
ethirgast:
host: db
name: Ethirgast
user: root
pass: root
disp: ForEthirgastDevOnly

13 changes: 13 additions & 0 deletions intensivberedskap-dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM rapporteket/dev:weekly

LABEL maintainer="Kevin Thon <[email protected]>"

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/intensivberedskap', 'Rapporteket/intensiv'))"
9 changes: 9 additions & 0 deletions intensivberedskap-dev/db.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

# for registry development
nir:
host: db
name: intensivregisterreportdatastaging
user: root
pass: root
disp: ForNIRDevOnly

8 changes: 8 additions & 0 deletions kvarus-dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM rapporteket/dev:weekly

LABEL maintainer="Stein-Kato <[email protected]>"

ARG GITHUB_PAT
ENV GITHUB_PAT=${GITHUB_PAT}

RUN R -e "remotes::install_github(c('Rapporteket/kvarus'))"
2 changes: 1 addition & 1 deletion nnrr-dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM rapporteket/dev:weekly

LABEL maintainer = "Kevin Thon <[email protected]>"
LABEL maintainer="Kevin Thon <[email protected]>"

ARG GITHUB_PAT
ENV GITHUB_PAT=${GITHUB_PAT}
Expand Down
13 changes: 13 additions & 0 deletions norvas-dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM rapporteket/dev:weekly

LABEL maintainer="Kevin Thon <[email protected]>"

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/norvas'))"
9 changes: 9 additions & 0 deletions norvas-dev/db.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

# for registry development
norvas:
host: db
name: NorvasReportDataStaging
user: root
pass: root
disp: ForNorvasDevOnly

2 changes: 1 addition & 1 deletion nra-dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM rapporteket/dev:weekly

LABEL maintainer = "Kevin Thon <[email protected]>"
LABEL maintainer="Kevin Thon <[email protected]>"

ARG GITHUB_PAT
ENV GITHUB_PAT=${GITHUB_PAT}
Expand Down
2 changes: 1 addition & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"commitMessageExtra": "from v{{currentVersion}} to {{prettyNewVersion}}",
"extends": [
"config:base"
"config:recommended"
]
}
2 changes: 1 addition & 1 deletion rstudio/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM rocker/verse:4.4.1

LABEL maintainer "Arnfinn Hykkerud Steindal <[email protected]>"
LABEL maintainer="Arnfinn Hykkerud Steindal <[email protected]>"

RUN echo "www-frame-origin=same" >> /etc/rstudio/disable_auth_rserver.conf \
&& echo "www-verify-user-agent=0" >> /etc/rstudio/disable_auth_rserver.conf
Expand Down
13 changes: 13 additions & 0 deletions rygg-dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM rapporteket/dev:weekly

LABEL maintainer="Kevin Thon <[email protected]>"

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'))"
9 changes: 9 additions & 0 deletions rygg-dev/db.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

# for registry development
rygg:
host: db
name: NKRRapporteket
user: root
pass: root
disp: ForRyggDevOnly

0 comments on commit 1d8d28e

Please sign in to comment.