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

How to use r-hub docker containers in GitHub actions #145

Open
Bisaloo opened this issue Jun 21, 2021 · 5 comments
Open

How to use r-hub docker containers in GitHub actions #145

Bisaloo opened this issue Jun 21, 2021 · 5 comments

Comments

@Bisaloo
Copy link
Member

Bisaloo commented Jun 21, 2021

Apologies if this topic has been treated and I missed it.

GitHub actions can use custom Docker containers and it would be useful to be able to easily plug containers from r-hub to avoid having to test regularly uncommon platforms on r-hub. I'm sure this is already possible but a blog post would be super helpful for people unfamiliar with Docker and/or creating custom GitHub actions.

To tell a little bit about my use case: I have a package that commonly has issues on noLD platforms because it parse binary data that might have been created on a machine with higher precision (https://www.github.com/ropensci/lightr). I have to remember to test it specifically on noLD each time and I don't always... Having it in my regular CI checks would be simpler.

@gaborcsardi
Copy link
Contributor

This is a good idea, but unfortunately I won't be able to do it in the near future.

@maelle
Copy link
Member

maelle commented Jul 1, 2021

@Bisaloo would you feel like writing it?

@Bisaloo
Copy link
Member Author

Bisaloo commented Jul 2, 2021

@maelle, I could give it a go but first I need to figure out to do it 😅

@Bisaloo
Copy link
Member Author

Bisaloo commented Mar 24, 2022

This is what I managed to do: https://github.com/ropensci/lightr/blob/ea244bc71eea44f61b5f4da3aae4a5da4fb6a066/.github/workflows/R-CMD-check_noLD.yaml

Two main difficulties:

@Bisaloo
Copy link
Member Author

Bisaloo commented Feb 7, 2023

I think my question is now answered here: https://r-hub.github.io/containers/gha.html

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

No branches or pull requests

3 participants