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

Dry-run based testing for correct dockerization #49

Open
chainsawriot opened this issue Feb 14, 2023 · 3 comments
Open

Dry-run based testing for correct dockerization #49

chainsawriot opened this issue Feb 14, 2023 · 3 comments

Comments

@chainsawriot
Copy link
Collaborator

chainsawriot commented Feb 14, 2023

GHA can be later; but at least local should be fine.

temp=`mktemp -d`                                                                          
Rscript -e "rang::dockerize(rang::resolve(\"cran/sna\", snapshot_date = \"2005-10-01\"), cache = TRUE, output_dir = \"$temp\")"; docker build -t test $temp
@chainsawriot
Copy link
Collaborator Author

Test case for #99 Pre 3.1

graph <- resolve("github::cran/psych", snapshot_date = "2013-01-01")

Test case for #99 Post 3.1 and with knitr

graph <- resolve("github::chainsawriot/rang", snapshot_date = "2023-01-01")

@chainsawriot
Copy link
Collaborator Author

Dependencies heaven

graph <- resolve("chimeraviz", snapshot_date = "2023-01-01")

@chainsawriot
Copy link
Collaborator Author

graph <- resolve("github::chainsawriot/rang", snapshot_date = "2023-01-01")
dockerize(graph, ".", cache = TRUE) ## test caching / raw tarball
dockerize(graph, ".", cache = FALSE) ## test raw download / raw tarball

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant