generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
26 lines (19 loc) · 559 Bytes
/
Makefile
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
# If CNTR_PROG is undefined, then set it to be podman
ifndef CNTR_PROG
CNTR_PROG = podman
endif
CNTR_USER=gvegayon
IMAGE_NAME=cfa-epinow2-pipeline-dependencies:latest
build:
$(CNTR_PROG) build -t $(IMAGE_NAME) -f Dockerfile-dependencies . && \
$(CNTR_PROG) tag $(IMAGE_NAME) $(CNTR_USER)/$(IMAGE_NAME)
push:
$(CNTR_PROG) push $(CNTR_USER)/$(IMAGE_NAME)
run:
$(CNTR_PROG) run -it --rm -v $(PWD):/mnt $(IMAGE_NAME)
test:
Rscript -e "testthat::test_local()"
document:
Rscript -e "roxygen2::roxygenize()"
check:
Rscript -e "rcmdcheck::rcmdcheck()"