This repository has been archived by the owner on Jun 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This puts people directly into https://github.com/yuvipanda/jupyter-desktop, with an XFCE environment. There's no specific use case for this yet, but I'm sure we'll find one soon enough! This has the same home directories as datahub. No HTTPS yet, because of jupyterhub/zero-to-jupyterhub-k8s#1448
- Loading branch information
Showing
13 changed files
with
153 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
nfsMounter: | ||
enabled: false | ||
|
||
nfsPVC: | ||
enabled: true | ||
nfs: | ||
serverIP: nfsserver1 | ||
shareName: export/pool0/homes | ||
|
||
jupyterhub: | ||
auth: | ||
type: google | ||
admin: | ||
users: | ||
# infrastructure | ||
- rylo | ||
- yuvipanda | ||
- felder | ||
# List of other admin users | ||
|
||
singleuser: | ||
defaultUrl: /desktop | ||
nodeSelector: | ||
hub.jupyter.org/node-purpose: user | ||
initContainers: | ||
- name: volume-mount-hack | ||
image: busybox | ||
command: ["sh", "-c", "id && chown 1000:1000 /home/jovyan && ls -lhd /home/jovyan"] | ||
securityContext: | ||
runAsUser: 0 | ||
volumeMounts: | ||
- name: home | ||
mountPath: /home/jovyan | ||
subPath: "{username}" | ||
storage: | ||
type: static | ||
static: | ||
pvcName: home-nfs | ||
subPath: "{username}" | ||
memory: | ||
guarantee: 512M | ||
limit: 1G | ||
image: | ||
name: gcr.io/ucb-datahub-2018/desktop-test-user-image | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
nfsMounter: | ||
mounts: | ||
# FIXME: You need to create this manually on the NFS server | ||
- nfsserver1:/export/pool0/homes/_desktop-test=/data/homes/desktop-test-prod | ||
|
||
jupyterhub: | ||
proxy: | ||
# service: | ||
# FIXME: make the IP static in google cloud console so we won't lose it | ||
# then specify it here so if we redeploy we get the same stuff | ||
# loadBalancerIP: <IP of desktop-test.datahub.berkeley.edu | ||
# https: | ||
# hosts: | ||
# FIXME: Make a DNS entry for the service IP first before uncommenting it | ||
# - desktop-test.datahub.berkeley.edu | ||
hub: | ||
db: | ||
pvc: | ||
# This also holds logs | ||
storage: 4Gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
nfsMounter: | ||
mounts: | ||
- nfsserver1:/export/pool0/homes/_desktop-test=/data/homes/desktop-test-staging | ||
|
||
jupyterhub: | ||
prePuller: | ||
continuous: | ||
enabled: false | ||
proxy: | ||
# service: | ||
# make the IP static in google cloud console so we won't lose it | ||
# then specify it here so if we redeploy we get the same stuff | ||
# loadBalancerIP: <IP of desktop-test.datahub.berkeley.edu | ||
# uncomment once DNS entry has been made | ||
# https: | ||
# hosts: | ||
# - desktop-test-staging.datahub.berkeley.edu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
images: | ||
image_name: gcr.io/ucb-datahub-2018/desktop-test-user-image | ||
registry: | ||
provider: gcloud | ||
gcloud: | ||
project: ucb-datahub-2018 | ||
service_key: gcr-key.json | ||
|
||
cluster: | ||
provider: gcloud | ||
gcloud: | ||
project: ucb-datahub-2018 | ||
service_key: gke-key.json | ||
cluster: fall-2019 | ||
zone: us-central1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
dbus-x11 | ||
xfce4 | ||
xfce4-panel | ||
xfce4-session | ||
xfce4-settings | ||
xorg | ||
xubuntu-icon-theme | ||
|
||
# install some apps | ||
octave | ||
libreoffice-calc | ||
firefox | ||
gedit | ||
vim-gtk3 | ||
emacs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
channels: | ||
- manics | ||
dependencies: | ||
- websockify | ||
- pip: | ||
- https://github.com/jupyterhub/jupyter-server-proxy/archive/0e67e1afd0bab1342443f13bd147a2f8c682e9e0.zip | ||
- jupyter-desktop-server==0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Disable history manager, we don't really use it | ||
# and by default it puts an sqlite file on NFS, which is not something we wanna do | ||
c.Historymanager.enabled = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
# Create ipython config directory if it doesn't exist | ||
mkdir -p ${CONDA_DIR}/etc/ipython | ||
cp ipython_config.py ${CONDA_DIR}/etc/ipython/ipython_config.py |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.