https://github.com/alan-turing-institute/hub23-deploy

A repo to manage the Turing BinderHub instance

https://github.com/alan-turing-institute/hub23-deploy

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 10 committers (10.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.7%) to scientific vocabulary

Keywords

azure binder binderhub helm-chart hut23 jupyterhub kubernetes-cluster turing-binderhub-instance

Keywords from Contributors

parallel interpretability meshing standardization energy-system-model transformers pypy autograder hydrology plots
Last synced: 5 months ago · JSON representation

Repository

A repo to manage the Turing BinderHub instance

Basic Info
Statistics
  • Stars: 9
  • Watchers: 2
  • Forks: 4
  • Open Issues: 8
  • Releases: 0
Topics
azure binder binderhub helm-chart hut23 jupyterhub kubernetes-cluster turing-binderhub-instance
Created almost 7 years ago · Last pushed 9 months ago
Metadata Files
Readme Contributing License Code of conduct

README.md

hub23-deploy

A repository to manage the private Turing BinderHub instance, Hub23.

| | :recycle: CI Status | | --- | --- | | :moneywithwings: Subscription | Build Status | | :rocket: Deployment | Deploy Status | | :broom: Linting and Formatting | pre-commit.ci status | | :notebook: Docs | Build and Publish JupyterBook Docs |

Table of Contents:


:wheelofdharma: Hub23 Helm Chart

This repository contains the local Helm Chart that configures the Hub23 BinderHub deployment: hub23-chart.

The HelmUpgradeBot automatically opens Pull Requests to this repository that update the dependencies of the Helm Chart in the requirements.yaml file.

Upon merging the Pull Request, the Continuous Deployment Azure Pipeline automatically applies the updated Helm Chart to the Kubernetes cluster running Hub23.

:rocket: Developing Hub23

Please read the :purpleheart:Code of Conduct:purpleheart: and :spaceinvader:Contributing Guidelines:spaceinvader: before you begin developing.

:pushpin: Requirements

Three command line interfaces are used to manage Hub23:

:repeat: Changing hub23-chart

If changes are made during development, make sure that:

This will ensure that the Hub23 deployment is kept up-to-date with the repo, and a future developer (someone else or future-you!) can recreate the configuration files for Hub23.

:question: How-To's

:housewithgarden: Work Locally

If you DO have write access: :black_nib:

```bash

Clone this repository

git clone https://github.com/alan-turing-institute/hub23-deploy.git cd hub23-deploy

Create a new branch

git checkout -b NEWBRANCHNAME ```

And you're ready to go! :tada:

If you DON'T have write access: :no_good:

  1. Click "Fork" in the top-right corner of the browser window
  2. Select your GitHub username as the fork destination
  3. Clone the forked repository

```bash

Clone your fork

git clone https://github.com/YOURGITHUBUSERNAME/hub23-deploy.git cd hub23-deploy

Create a new branch

git checkout -b NEWBRANCHNAME ```

:electric_plug: Connect to Kubernetes

This section uses the Azure CLI.

  1. Login to Azure

    bash az login

  2. Set the Azure subscription

    bash az account set --subscription turingmybinder

  3. Connect to the cluster

    bash az aks get-credentials --name turing --resource-group binder-prod

:computer: Code Snippets

To find out more info about a Kubernetes pod:

bash kubectl --namespace hub23 describe pod POD_NAME

:dizzy: Restarting the JupyterHub

If the Hub is being problematic, for example, throwing "Internal Server Error" messages or not spinning up user nodes, it can be restarted with the following commands.

Scale down the Hub:

bash kubectl --namespace hub23 scale deployment hub --replicas=0

Wait until the hub- pod has been terminated. Use kubectl --namespace hub23 get pods to check its status.

Scale the Hub back up:

bash kubectl --namespace hub23 scale deployment hub --replicas=1

:moneywithwings: Billing

The billing subdir contains resources for calculating running costs of Hub23.

:books: Documentation

The Deployment Guide docs for Hub23 are stored in the docs folder. A GitHub Action workflow renders the documentation using Jupyter Book and publishes it to the gh-pages branch of the repo to be hosted at https://alan-turing-institute.github.io/hub23-deploy

Owner

  • Name: The Alan Turing Institute
  • Login: alan-turing-institute
  • Kind: organization
  • Email: info@turing.ac.uk

The UK's national institute for data science and artificial intelligence.

GitHub Events

Total
  • Issues event: 1
  • Push event: 6
Last Year
  • Issues event: 1
  • Push event: 6

Committers

Last synced: about 2 years ago

All Time
  • Total Commits: 1,114
  • Total Committers: 10
  • Avg Commits per committer: 111.4
  • Development Distribution Score (DDS): 0.349
Past Year
  • Commits: 5
  • Committers: 3
  • Avg Commits per committer: 1.667
  • Development Distribution Score (DDS): 0.6
Top Committers
Name Email Commits
Sarah Gibson s****n@t****k 725
Sarah Gibson 4****1 179
HelmUpgradeBot h****b@g****m 108
github-actions[bot] 4****] 24
pre-commit-ci[bot] 6****] 21
Ubuntu s****1@c****t 20
Ubuntu s****1@c****t 16
dependabot[bot] 4****] 13
Sarah Gibson d****n@g****m 7
Min RK b****k@g****m 1

Issues and Pull Requests

Last synced: 5 months ago

All Time
  • Total issues: 10
  • Total pull requests: 91
  • Average time to close issues: over 2 years
  • Average time to close pull requests: 12 days
  • Total issue authors: 3
  • Total pull request authors: 6
  • Average comments per issue: 1.1
  • Average comments per pull request: 0.12
  • Merged pull requests: 82
  • Bot issues: 0
  • Bot pull requests: 46
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • sgibson91 (8)
  • rwood-97 (1)
  • callummole (1)
Pull Request Authors
  • ghost (31)
  • github-actions[bot] (25)
  • dependabot[bot] (15)
  • sgibson91 (13)
  • pre-commit-ci[bot] (6)
  • minrk (1)
Top Labels
Issue Labels
enhancement (5) auth (2) to-be-scoped (2) urgent (1) help wanted (1) question (1)
Pull Request Labels
dependencies (15) github_actions (9) python (6)

Dependencies

.github/workflows/build-docs.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
  • chabad360/htmlproofer master composite
  • peaceiris/actions-gh-pages v3.9.0 composite
.github/workflows/bump-helm-version.yaml actions
  • sgibson91/bump-helm-deps-action main composite
.github/workflows/helm-validate.yaml actions
  • actions/checkout v3 composite
  • stefanprodan/kube-tools v1.7.1 composite
billing/requirements.txt pypi
  • pyyaml *
docs/requirements.txt pypi
  • jupyter-book ==0.13.1