Giter VIP home page Giter VIP logo

jupyter-cupy's Introduction

repo2docker-githubci

a template for building JupyterHub environments with Repo2Docker and GitHub Actions CI

Action Status Docker Pulls Binder

How to use

  1. click the "Use this template" button to create your own repo

  2. create DockerHub account that matches your GitHub username (could make this configurable) For example: https://hub.docker.com/u/scottyhq

  3. add DOCKER_USERNAME and DOCKER_PASSWORD to repo encrypyted secrets https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets

  4. modify readme links and any files in the binder/ folder

  5. build with GitHub Actions by pushing to GitHub

  • commits to master branch trigger re-building image tagged by github short sha and 'latest'
git commit -a -m "modified binder/environment to my liking"
git push
  • pushing a tag results in a docker image with the same tag:
git tag -am "tagging 2.3.2" 2.3.2
git push --tags

Pull your image to run a local JupyterLab session

export IMAGE=scottyhq/repo2docker-github
export TAG=latest
docker pull docker.pkg.github.com/$IMAGE:$TAG
docker run -it --name repo2docker -p 8888:8888 $IMAGE:$TAG jupyter lab --ip 0.0.0.0
docker stop repo2docker
docker rm repo2docker

Run your image on a BinderHub

Now that you have images on DockerHub, you can re-use them in many ways. For example, create a BinderHub compatible content repository with 'binder' branch that points to a specific image. All your notebooks and scripts can be in the 'master' branch, and are pulled into a BinderHub session with nbgitpuller. Structuring things this way means that changes to your scripts won't trigger rebuilding large images: https://github.com/scottyhq/githubci-binder-example

jupyter-cupy's People

Contributors

scottyhq avatar rsignell-usgs avatar

Stargazers

Alfonso Phocco Diaz avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

rsignell-usgs

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.