Skip to content

Commit 82de940

Browse files
authored
Merge pull request #14 from CDCgov/mv_code_add_workflow
add container workflow, rm previous model code
2 parents 11f9b1d + d0ba582 commit 82de940

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+56
-2647
lines changed

.github/workflows/pkgdown.yaml

Lines changed: 0 additions & 111 deletions
This file was deleted.

.github/workflows/testing.yaml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
archive/
55
data/surveys
66
data/*.rds
7+
poetry.lock
78

89
# Exceptions
910
!networks/networks_files/*

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM docker.io/rocker/r-ver:4.4.0
2+
3+
RUN echo 'options(repos = c(P3M = "https://packagemanager.posit.co/cran/__linux__/jammy/latest", \
4+
CRAN = "https://cloud.r-project.org"))' >>"${R_HOME}/etc/Rprofile.site"
5+
6+
RUN install2.r remotes
7+
RUN installGithub.r statnet/tergmLite statnet/EpiModelHPC
8+
COPY epimodelcfa_*.tar.gz .
9+
RUN R CMD INSTALL epimodelcfa_*.tar.gz --dependencies=TRUE

Makefile

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
ifndef ENGINE
2+
ENGINE := podman
3+
endif
4+
5+
ifndef IMAGE
6+
IMAGE := cfa-uw-modeling
7+
endif
8+
9+
lib_path := /home/RUU7/r_libs
10+
11+
help:
12+
@echo "Makefile for the $(IMAGE) project."
13+
@echo ""
14+
@echo "Usage: make [target]"
15+
@echo ""
16+
@echo "Available targets:"
17+
@echo " help : Displays this message."
18+
@echo " container_build : Builds the container using the Dockerfile."
19+
@echo " container_run : Runs the container mounting the current folder. Primarily used for testing container prior to running sims on Azure Batch."
20+
@echo " epimodelcfa_build : Builds epimodelcfa package and adds to project repo, should be run prior to container_build if package recently updated."
21+
@echo " epimodelcfa_install : Builds and installs the epimodelcfa package into the R library, primarily used for development or local project activities."
22+
@echo ""
23+
24+
container_build:
25+
$(ENGINE) build -t $(IMAGE) -f Dockerfile .
26+
27+
container_run:
28+
$(ENGINE) run --mount type=bind,source=$(PWD),target=/$(IMAGE) \
29+
-it --rm -w /$(IMAGE) $(IMAGE) bash
30+
31+
epimodelcfa_install:
32+
epimodelcfa_build
33+
R CMD INSTALL --preclean --clean --library=$(lib_path) epimodelcfa_*.tar.gz --dependencies=TRUE
34+
rm -f epimodelcfa_*tar.gz
35+
36+
epimodelcfa_build:
37+
R CMD build /home/RUU7/repos/cfa-epimodel
38+
39+
.PHONY: container_build container_run epimodelcfa_build epimodelcfa_install

epimodel-sti/DESCRIPTION

Lines changed: 0 additions & 37 deletions
This file was deleted.

epimodel-sti/NAMESPACE

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)