-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
34 lines (33 loc) · 1.12 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
version: "3.9"
services:
developer:
# use ghcr image when on CI, otherwise local image
image: ${REGISTRY_PREFIX}/${IMAGE_OWNER}/${IMAGE_NAME_ROOT}/developer:${TAG_FROM_GIT_REF_NAME:-latest}
volumes:
- .:/root/source
- .:/root/rstudio
command: R --vanilla --quiet
# this is to approximate super-linter on GHA
# for details, see
# https://github.com/github/super-linter/blob/main/docs/run-linter-locally.md
# this is just static code analysis and does not actually need the runtime
runner:
image: ${REGISTRY_PREFIX}/${IMAGE_OWNER}/${IMAGE_NAME_ROOT}/runner:${TAG_FROM_GIT_REF_NAME:-latest}
ports:
- "127.0.0.1:3838:3838"
- "127.0.0.1:3840:3840"
super-linter:
image: github/super-linter:slim-v4
environment:
- FILTER_REGEX_EXCLUDE="^\/(.*?)(tests\/)(testthat\/)(_snaps\/)(.*?).md$$"
- RUN_LOCAL=true
# have to be the same as in cicd.yml
- LINTER_RULES_PATH=.
- IGNORE_GITIGNORED_FILES=true
- VALIDATE_NATURAL_LANGUAGE=false
- VALIDATE_R=false
- VALIDATE_TERRAGRUNT=false
- LOG_LEVEL=NOTICE
volumes:
- .:/tmp/lint