Coder Social home page Coder Social logo

docker-buildr's Introduction

BuildR Docker Images

This is a series of Docker images, based on the excellent rocker/r-ver images, that are useful for CI builds in R projects. The general plan is that all system dependencies you might need for an R package build are already in, and you are able to install R dependencies as required. The buildr-reticulate image also adds an Anaconda version that is roughly contemporary with the R version.

Images are built here and pushed to Docker Hub.

Images

Image Docker Hub Description
buildr buildr Adds some system dependencies and the R remotes package. Otherwise it's plain R
buildr-tidyverse buildr-tidyverse Tidyverse can take 20 minutes to build in Linux so you can have a version that already has it
buildr-reticulate buildr-reticulate Adds Python and Conda to buildr-tidyverse along with reticulate
buildr-rmd buildr-rmd Adds rmarkdown (and bookdown/pagedown) to buildr-reticulate along with Chrome for chrome_print

Add a new version

The builds happen in GitHub actions. The branch name is used everywhere as the tag. However, there is still some manual effort I haven't been able to remove.

1. Create a new branch

When R is upgraded and a new r-ver image is available you can make a new branch. Start from the highest branch number (or master). It should be the R version with no other characters (eg. 3.6.3).

2. Up version all tags

I haven't been able to use ARGS as I'd like in Dockerfiles so you have to go through every docker file and bump up the tag in the top FROM line. eg:

FROM rocker/r-ver:3.6.3

Github actions will take care of the output tag, so long as your branch name is right.

3. Push branch

On pushing the new branch GitHub actions will kick in, build all the images and push them to Docker hub. You can now use the new R version. You can merge onto master if you like but don't delete the branch.

docker-buildr's People

Contributors

dougmet avatar mrkriss avatar sellorm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.