https://github.com/alan-turing-institute/hub23-deploy
A repo to manage the Turing BinderHub instance
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
Keywords from Contributors
Repository
A repo to manage the Turing BinderHub instance
Basic Info
- Host: GitHub
- Owner: alan-turing-institute
- License: mit
- Language: Python
- Default Branch: main
- Homepage: https://alan-turing-institute.github.io/hub23-deploy
- Size: 5.94 MB
Statistics
- Stars: 9
- Watchers: 2
- Forks: 4
- Open Issues: 8
- Releases: 0
Topics
Metadata Files
README.md
hub23-deploy
A repository to manage the private Turing BinderHub instance, Hub23.
| | :recycle: CI Status |
| --- | --- |
| :moneywithwings: Subscription | |
| :rocket: Deployment |
|
| :broom: Linting and Formatting |
|
| :notebook: Docs |
|
Table of Contents:
- :wheelofdharma: Hub23 Helm Chart
- :rocket: Developing Hub23
- :question: How-To's
- :computer: Code Snippets
- :books: Documentation
: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:
- Azure CLI - to manage the Azure compute resources
- Kubernetes CLI (
kubectl) - to manage the Kubernetes cluster - Helm CLI - to manage the BinderHub application running on the Kubernetes cluster
:repeat: Changing hub23-chart
If changes are made during development, make sure that:
- the new format is reflected in
deploy/prod-template.yamland any new secrets/tokens/passwords are redacted; - new secrets/tokens/passwords are added to the Azure Key Vault (see the Key Vault docs); and
.az-pipelines/cd-pipeline.ymlis updated in order to populate the template with the appropriate information.
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:
- Click "Fork" in the top-right corner of the browser window
- Select your GitHub username as the fork destination
- 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.
Login to Azure
bash az loginSet the Azure subscription
bash az account set --subscription turingmybinderConnect 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
- Website: https://turing.ac.uk
- Repositories: 477
- Profile: https://github.com/alan-turing-institute
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
Top Committers
| Name | 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 |
Committer Domains (Top 20 + Academic)
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
Pull Request Labels
Dependencies
- actions/checkout v3 composite
- actions/setup-python v4 composite
- chabad360/htmlproofer master composite
- peaceiris/actions-gh-pages v3.9.0 composite
- sgibson91/bump-helm-deps-action main composite
- actions/checkout v3 composite
- stefanprodan/kube-tools v1.7.1 composite
- pyyaml *
- jupyter-book ==0.13.1