Skip to content

Commit

Permalink
add gcp example
Browse files Browse the repository at this point in the history
  • Loading branch information
eeholmes committed Mar 31, 2024
1 parent 313f7bc commit 74ad7dd
Show file tree
Hide file tree
Showing 37 changed files with 4,278 additions and 3,686 deletions.
18 changes: 12 additions & 6 deletions _quarto.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
project:
type: website
output-dir: docs

render:
- "posts/*.Rmd"
- "!ci/"
- "!config/"
- "!config-template/"
website:
page-navigation: true
title: "Eli's JupyterHub notes"
Expand All @@ -25,14 +29,16 @@ website:
href: index.Rmd
- text: "JHub User Guide"
href: posts/JHub-User-Guide.Rmd
- text: "JHub Set-up"
- text: "Set-up JHub on Azure"
href: posts/Set-up-daskhub.Rmd
- text: "Centos Set-up"
- text: "Set-up JHub on Google Cloud"
href: posts/Set-up-jh-gcp.html
- text: "Set-up JHub on Centos"
href: posts/Set-up-centos.Rmd
- text: "Centos Set-up https"
- text: "Set-up https on Centos"
href: posts/Set-up-centos-security.Rmd
- text: "Set-up VM on mac"
href: posts/set-up-vm.Rmd
- text: "Set-up authentication"
href: posts/set-up-authentication.Rmd

format:
html:
Expand Down
27 changes: 27 additions & 0 deletions config/gcp/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
hub:
config:
GitHubOAuthenticator:
client_id: 5872d2b7ea348ff2f8c0
client_secret: 6dafc2820264b4d8602e632e891f078481d4927a
oauth_callback_url: https://gcp.opensci.live/hub/oauth_callback
allowed_organizations:
- nmfs-opensci:DaskHub
scope:
- read:org
JupyterHub:
authenticator_class: github

proxy:
traefik:
extraInitContainers:
# This startup delay can help the k8s container network find the
# https certificate and allow letsencrypt to work
- name: startup-delay
image: busybox:stable
command: ["sh", "-c", "sleep 10"]
https:
enabled: true
hosts:
- gcp.opensci.live
letsencrypt:
contactEmail: [email protected]
649 changes: 0 additions & 649 deletions docs/ci/iopython/instructions.html

This file was deleted.

647 changes: 0 additions & 647 deletions docs/ci/iorocker/instructions.html

This file was deleted.

648 changes: 0 additions & 648 deletions docs/ci/iosdmTMB/instructions.html

This file was deleted.

19 changes: 19 additions & 0 deletions docs/index.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: "NMFS OpenSci JupyterHub Notes"
---

This page shows my notes for setting up JupyterHubs on various platforms. What is a JupyterHub? Read about why cloud computing environments are great: [SnowEx 2022](https://snowex-2022.hackweek.io/preliminary/jupyterhub.html)

## Test JHub

I have set us up a JHub with RStudio on Azure. It's on Kubernetes and will spin up VMs as needed. The VMs are not huge: 2CPU & 8 Gig RAM.

<https://jhub.opensci.live/hub/login>

Contact Eli if you want to test it out. See instructions under [JHub User Guide](JHub-User-Guide.html)

## Installation instructions

The other tabs to the left are my JHub installation notes for various platforms.


Loading

0 comments on commit 74ad7dd

Please sign in to comment.