Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ltmv-dev docker image #106

Merged
merged 2 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
base-r: "base-r/**"
dev: "dev/**"
deformitet-dev: "deformitet-dev/**"
ltmv-dev: "ltmv-dev/**"
norgast-dev: "norgast-dev/**"
nnrr-dev: "nnrr-dev/**"
nra-dev: "nra-dev/**"
Expand Down
26 changes: 26 additions & 0 deletions ltmv-dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM rapporteket/dev:weekly

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

ARG GH_PAT
ENV GITHUB_PAT=${GH_PAT}

ENV DB_HOST=db-ltmv

# 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 \
&& echo "DB_HOST=${DB_HOST}" >> /home/rstudio/.Renviron \
&& echo "DB_HOST=${DB_HOST}" >> /home/shiny/.Renviron \
&& R -e "install.packages(c('covr', \
'dplyr', \
'ggplot2', \
'lintr', \
'magrittr', \
'rlang', \
'rpivotTable', \
'shiny', \
'shinyalert', \
'testthat'))" \
&& R -e "remotes::install_github(c('Rapporteket/rapbase@*release'))"
10 changes: 10 additions & 0 deletions ltmv-dev/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## Tailored development docker image for ltmv

Speed up development processes for ltmv...

### Build
```docker build -t rapporteket/ltmv-dev .```

### Run
Use ```docker-compose up``` from root of registry repository.

9 changes: 9 additions & 0 deletions ltmv-dev/db.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

# for registry development
ltmv:
host: db-ltmv
name: LangmekDataStaging
user: root
pass: root
disp: ForLtmvDevOnly