Coder Social home page Coder Social logo

containerit-demo's Introduction

containerit demo

This repo serves as a simple demo for writing a Dockerfile (and building the resulting Docker image) using the containerit R package. You should read more about containerit at the linked package homepage, but very briefly: it uses some neat heuristics and shortcuts to build a Docker image simply based on the contents of your existing directory or repo. Or, more precisely, the R files contained therein.

To run the demo, clone this repo to your local computer and then run the create-docker.R script (e.g. using RStudio or $ Rscript create-docker.R). This will:

  1. Write a Dockerfile to disk (based on the contents of the R/ sub-directory of the repo), and
  2. Build the corresponding Docker image (creatively titled containerit-demo) associated with our new Dockerfile

The latter step requires that you actually have Docker installed and running on your system. (If not, then you can at least still write the Dockerfile for others to use/build.) Assuming that this is true, you can run the container by calling, e.g. $ docker run --rm -ti containerit-demo.

Asides

The Docker image that we're building here isn't terribly exciting or complicated. It mostly contains some additional spatial libraries (since the R/ sub-directory requires the sf package) and builds upon the rocker/rstudio stack. But the point is that all that work is done for us automatically and with minimal pain.

If you are unfamiliar with Docker then I strongly recommend checking out the Rocker wiki (e.g. this page), or this ROpenSci tutorial first.

containerit-demo's People

Contributors

grantmcdermott avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  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.