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

Docker CRAN mirror setting issue #446

Merged
merged 2 commits into from
Feb 10, 2022
Merged

Docker CRAN mirror setting issue #446

merged 2 commits into from
Feb 10, 2022

Conversation

cansavvy
Copy link
Collaborator

@cansavvy cansavvy commented Feb 10, 2022

Purpose/implementation Section

What changes are being implemented in this Pull Request?

This is related to #432

There are two things needed to get around this problem that are added here to the TEMPLATE_Dockerfile as well as the Dockerfile itself.

  1. options(warn= 2) makes sure that if the package isn't found or doesn't install the docker build fails.
  2. repos = 'https://cloud.r-project.org/' specfies the CRAN so we make sure we're pulling from an updated one.

I tested this by building an image with the OCSdata package installed this way and started a container with that built image and it did indeed install OCSdata.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 10, 2022

No spelling errors! 🎉
Comment updated at 2022-02-10 with changes from f171f39

@cansavvy cansavvy merged commit 80af9ed into main Feb 10, 2022
@cansavvy cansavvy deleted the cansavvy/docker-cran branch February 10, 2022 13:03
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

Successfully merging this pull request may close these issues.

1 participant