Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/0.7.6 #926

Merged
merged 214 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
214 commits
Select commit Hold shift + click to select a range
c13b922
Initial update to DANDI addition API script
pgleeson Nov 27, 2023
b611c2a
Add script to print current repo info - useful for testing/verifying …
pgleeson Nov 27, 2023
9e6d2b2
More tests on dandi updates
pgleeson Nov 28, 2023
baa083f
Merge branch 'develop' into feature/repo_updates_via_api
pgleeson Dec 12, 2023
028b48d
Latest repos info
pgleeson Dec 12, 2023
1839299
Add initial script for api calls to v1
pgleeson Dec 14, 2023
7750a60
Minor update dandi showcase info
pgleeson Dec 14, 2023
f5f78c5
Sorting by keys
pgleeson Dec 14, 2023
3ac00c3
Improved analysis of owners
pgleeson Dec 14, 2023
b842aab
Removed problematic repo on live
pgleeson Dec 14, 2023
2ee7bd9
Remove seom duplicated repos
pgleeson Dec 15, 2023
07051cd
Restructured to list by id in json
pgleeson Dec 15, 2023
900eb5b
Changed some to osbadmin
pgleeson Dec 15, 2023
997cd31
Added one, changed user ids
pgleeson Dec 15, 2023
6d7b82e
Updated first 50
pgleeson Dec 15, 2023
0e15bdf
Updated 50 more...
pgleeson Dec 15, 2023
811ef6e
Add one more repo
pgleeson Dec 15, 2023
996eb44
One more repo
pgleeson Dec 15, 2023
eb570fc
Improved owner/tags
pgleeson Dec 15, 2023
6424657
Restructured and added utils.py
pgleeson Dec 18, 2023
da9cb91
Change tag order
pgleeson Dec 18, 2023
e8de4a7
Better test on match
pgleeson Dec 18, 2023
8374f16
Added to index 100
pgleeson Dec 18, 2023
7efdc97
Added to 110
pgleeson Dec 18, 2023
72ae88a
Delete repeated repos
pgleeson Dec 18, 2023
e21bcbc
Changed one repo to osb admin owner
pgleeson Dec 18, 2023
8250f3a
Added to 150
pgleeson Dec 18, 2023
fa06ed5
Reordered some tags
pgleeson Dec 18, 2023
ffa9b8a
Adding dandisets up to 728
pgleeson Dec 18, 2023
756d2e1
Initial script to add osbv1 repos
pgleeson Dec 18, 2023
2f1acbc
Addition of osbv1 projs working...
pgleeson Dec 18, 2023
5f43437
Delete repeated osbv1 repo
pgleeson Dec 18, 2023
8168c27
Added some more osbv1 repos on dev
pgleeson Dec 18, 2023
fbea7f4
#804 add icons for different kinds of repo
D-GopalKrishna Dec 19, 2023
d2d61d0
#804 common component
D-GopalKrishna Dec 19, 2023
216e448
Successfully tested updating/adding on v2 live
pgleeson Dec 19, 2023
7a22cfe
Added one updated first few on live
pgleeson Dec 20, 2023
13fa860
Added one on live
pgleeson Dec 20, 2023
b207f95
Added more osbv1 repos on v2live
pgleeson Dec 21, 2023
fa48f84
Initial version of modeldb parsing
pgleeson Dec 21, 2023
346cf6d
First tets of adding modeldb to v2dev
pgleeson Dec 21, 2023
9c4a105
#793 Not Found page
D-GopalKrishna Dec 25, 2023
35cc96a
#793 User page error boundary fix
D-GopalKrishna Dec 25, 2023
7d3ead3
#793 fix OSB Boundary for workspace page with global error
D-GopalKrishna Dec 25, 2023
071f56e
#739 incognito fix - throw 401 unauthorized without token
D-GopalKrishna Dec 25, 2023
85a7e0f
#793 fix error boundary prevstate
D-GopalKrishna Dec 25, 2023
4f4468a
Merge branch 'develop' into feature/842
D-GopalKrishna Dec 25, 2023
dec291a
#842 logic for AND match in tab
D-GopalKrishna Dec 25, 2023
4a6caf6
#842 fix the chip view when selected
D-GopalKrishna Dec 25, 2023
57dfd68
#842 tags search AND logic for repositories + shorten
D-GopalKrishna Dec 25, 2023
d4c6587
#842 fix the chip view when selected for repositories
D-GopalKrishna Dec 25, 2023
0d04ed2
#804 section for upload - Repo dialog
D-GopalKrishna Dec 25, 2023
186e78b
Adding modeldb info
pgleeson Jan 2, 2024
766725c
Test more osbv1
pgleeson Jan 2, 2024
203dd11
#docs: Updating Python version for accounts and workspace readme!
D-GopalKrishna Jan 2, 2024
ecb4bd7
Initial osb gh repo caching
pgleeson Jan 2, 2024
0e34678
Ignore config file
pgleeson Jan 2, 2024
8bbaf7f
More tests on dandi repos
pgleeson Jan 2, 2024
00446da
Restructured how tags are generated
pgleeson Jan 3, 2024
7a9669c
Updated to 40
pgleeson Jan 3, 2024
abe7f97
Added 3 new; to 80
pgleeson Jan 3, 2024
1aed575
To 120
pgleeson Jan 3, 2024
6d0ebcd
to 150
pgleeson Jan 3, 2024
2292496
All dandi added
pgleeson Jan 3, 2024
4e1ad5e
Changed all dandi repos on v2 to owner OSB Admin
pgleeson Jan 3, 2024
104b748
Use osbadmin user on v2 also
pgleeson Jan 4, 2024
676012c
Add covid proj
pgleeson Jan 4, 2024
5b69d72
#804 change models - thumbnails to repositories
D-GopalKrishna Jan 4, 2024
6ba94ed
#804 Add new thumbnail openapi yaml spec
D-GopalKrishna Jan 4, 2024
92ea94f
To 30 in osbv1
pgleeson Jan 4, 2024
2317f49
Added to 30
pgleeson Jan 4, 2024
033da0c
Update osbv1 5 on v2
pgleeson Jan 4, 2024
33a26eb
Added to 30 of osbv1 on v2
pgleeson Jan 4, 2024
e76fc04
Added to 40 in v2 and v2dev
pgleeson Jan 4, 2024
6ba9716
Regenerated cache
pgleeson Jan 5, 2024
6dbd12a
Add to 70
pgleeson Jan 5, 2024
d5fb803
Added all osbv1 repos on v2 live
pgleeson Jan 5, 2024
2f05c91
Added all osbv1 projects on v2 live
pgleeson Jan 5, 2024
d14bcef
Delete old mdb repos
pgleeson Jan 5, 2024
e379d28
Initial add of 4 mdb repos to v2dev
pgleeson Jan 5, 2024
96a65c1
Added 4 mdb repos to live
pgleeson Jan 5, 2024
f40d904
Merge branch 'develop' into feature/804
D-GopalKrishna Jan 8, 2024
6c7b8f3
#804 openapi generate api
D-GopalKrishna Jan 8, 2024
4903444
#804 repository openapi models
D-GopalKrishna Jan 8, 2024
eb4d626
Correctly handle main/master branch
pgleeson Jan 8, 2024
acc9168
Added extra mdb repo to v2 and dev
pgleeson Jan 8, 2024
2f06cbe
Changed owner of osbv1 repos to OSB admin
pgleeson Jan 8, 2024
00dcd90
Change owner of mdb repos on live to OSBAdmin
pgleeson Jan 8, 2024
7eb1729
Initial add osb repo info
pgleeson Jan 8, 2024
59fca2a
To 20 mdb repos
pgleeson Jan 9, 2024
1f6e683
Loaded correctly to 20 mdb repos
pgleeson Jan 9, 2024
59c094e
v2 and dev to 21 mdb
pgleeson Jan 9, 2024
80941f9
Added 50 more...
pgleeson Jan 9, 2024
0786b66
#602 email visibility handled
Aiga115 Jan 9, 2024
7e47250
Added first 100 mdb repos
pgleeson Jan 9, 2024
43e1942
Info on latest forked mdb repos
pgleeson Jan 10, 2024
d96cc6c
Regenerated
pgleeson Jan 10, 2024
8907f88
Added to 550 mdb frks
pgleeson Jan 10, 2024
f8228e5
All mdb forked to osb; 500 mdb on v2dev
pgleeson Jan 12, 2024
24bba31
To 1300 on live 1500 on dev of mdb
pgleeson Jan 12, 2024
41e59e5
Added allmdb to dev
pgleeson Jan 12, 2024
a6ce033
Added all to live
pgleeson Jan 12, 2024
cc0c009
Regenerated on live and dev
pgleeson Jan 15, 2024
ceb907a
Merge branch 'develop' into feature/repo_updates_via_api
pgleeson Jan 15, 2024
00a8889
#804 openapi spec change for be
D-GopalKrishna Jan 15, 2024
cef0b54
#804 local be package json change
D-GopalKrishna Jan 15, 2024
496c534
#804 ignore test controller from openapi spec
D-GopalKrishna Jan 15, 2024
c64b731
#804 a script to run and copy the openapi spec to workspaces backend
D-GopalKrishna Jan 15, 2024
ab8fa9a
#804 osb repo fe openapi spec change
D-GopalKrishna Jan 15, 2024
437c6ca
Merge branch 'feature/602' of https://github.com/OpenSourceBrain/OSBv…
filippomc Jan 15, 2024
0ce3bd9
Merge branch 'feature/docs-python-version-check' of https://github.co…
filippomc Jan 15, 2024
89db334
Merge branch 'feature/842' of https://github.com/OpenSourceBrain/OSBv…
filippomc Jan 15, 2024
a9610cf
Regenerated cache
pgleeson Jan 17, 2024
d82d157
#804 Fix import statements and update repository thumbnail
D-GopalKrishna Jan 17, 2024
532084c
Update Python dependencies
filippomc Jan 17, 2024
7596742
Update frontend libraries
filippomc Jan 17, 2024
e5deffa
Library updates
filippomc Jan 17, 2024
963a5ac
#804 stub bash script changes and README update
D-GopalKrishna Jan 18, 2024
1339525
feat(github-copy): create new branch and commit after copy
sanjayankur31 Jan 18, 2024
a8c386c
feat(github-copy): save states before pulling files
sanjayankur31 Jan 18, 2024
730e0b6
feat(github-copy): complete implementation
sanjayankur31 Jan 18, 2024
d6fb8eb
Merge pull request #890 from sanjayankur31/feat/github-checkout-commit
filippomc Jan 18, 2024
ece07e4
Merge pull request #862 from OpenSourceBrain/feature/793
filippomc Jan 18, 2024
52c0996
fix(github-copy): unset git user/email instead of leaving blank
sanjayankur31 Jan 19, 2024
4992e9d
Merge branch 'develop' into feature/repo_updates_via_api
pgleeson Jan 19, 2024
61ae3f2
feat(github-copy): unset git config instead of setting to empty
sanjayankur31 Jan 19, 2024
b97ac9b
Merge pull request #892 from OpenSourceBrain/fix/github-copy
filippomc Jan 19, 2024
31955f7
Latest generated
pgleeson Jan 19, 2024
31282d1
Merge branch 'develop' into feature/804-new
D-GopalKrishna Jan 22, 2024
c153896
#812 common FE readFile and remove count from paginate
D-GopalKrishna Jan 22, 2024
5c75b98
#793 fix public workspaces with no token
D-GopalKrishna Jan 22, 2024
2fdc8a1
#893 fix: fix image size
Aiga115 Jan 22, 2024
59be5f7
Merge pull request #894 from OpenSourceBrain/feature/893
filippomc Jan 22, 2024
fdfc5e8
fix static files rendering
D-GopalKrishna Jan 23, 2024
9849c3e
Merge branch 'feature/793-fix' of https://github.com/OpenSourceBrain/…
filippomc Jan 23, 2024
50f17d3
Fix tags 500 error
filippomc Jan 23, 2024
c4c7178
Merge remote-tracking branch 'origin/develop' into feature/804-new
D-GopalKrishna Jan 24, 2024
19f97bf
Latest osb gh repos
pgleeson Jan 25, 2024
a410f3a
#fix - fix user null in repo and workspaces
D-GopalKrishna Jan 25, 2024
3962b40
#fix - add condition to render username in repotable
D-GopalKrishna Jan 25, 2024
8ae1f29
#896 fix serialization/mapping
filippomc Jan 25, 2024
0ea8d04
#896 fix serialization/mapping
filippomc Jan 25, 2024
01dc36f
Merge pull request #900 from OpenSourceBrain/feature/fix-user-null-br…
filippomc Jan 25, 2024
c40ce34
#896 fix workspace serialization/mapping
filippomc Jan 26, 2024
381acf3
Latest live repos
pgleeson Feb 1, 2024
b9a2de9
#826 fix: fix url login and register
Aiga115 Feb 1, 2024
d00bef7
#887 update: new workspaces link
Aiga115 Feb 1, 2024
037c8d6
Merge pull request #904 from OpenSourceBrain/feature/887
filippomc Feb 2, 2024
abcac7c
Merge pull request #903 from OpenSourceBrain/feature/826
filippomc Feb 2, 2024
18c7b5e
#887 Fix workspace navigation
filippomc Feb 2, 2024
6ee22a6
#886 Create a common dialog for delete and workspace quota exceeded
D-GopalKrishna Feb 2, 2024
87b9b66
#886 navigate to user account page to check if quotas are available a…
D-GopalKrishna Feb 2, 2024
91740c2
#751 delete workflows on workspace delete
filippomc Feb 5, 2024
fd0031a
Update nwb explorer
filippomc Feb 5, 2024
88f727b
Update nwb explorer - port to new dependencies
filippomc Feb 5, 2024
8afe88d
Fix nwb explorer clone step
filippomc Feb 5, 2024
9a37ddb
Fix nwb explorer clone step
filippomc Feb 5, 2024
1e2bf81
Merge branch 'feature/886' of https://github.com/OpenSourceBrain/OSBv…
filippomc Feb 6, 2024
03e2849
Review quota exceeded wording
filippomc Feb 6, 2024
0e17e8e
Fix resources paths
filippomc Feb 6, 2024
9f9afd8
Merge pull request #884 from OpenSourceBrain/feature/repo_updates_via…
filippomc Feb 6, 2024
d229122
Scan for netpyne resources
filippomc Feb 6, 2024
1db324a
Update netpyne to latest dev
filippomc Feb 6, 2024
8f371d1
Fix netpyne scan
filippomc Feb 6, 2024
382efe7
Fix netpyne scan
filippomc Feb 6, 2024
17f416b
Fix resource type assignment for netpyne models
filippomc Feb 6, 2024
ec1a850
839 add warning pop up when changing application type
Aiga115 Feb 7, 2024
142d765
Merge branch 'develop' into feature/804-new
D-GopalKrishna Feb 13, 2024
066e7ae
#812 fix resource delete
filippomc Feb 13, 2024
4d0d0b8
881 fix repository pagination
Aiga115 Feb 16, 2024
5c59442
Merge remote-tracking branch 'origin/develop' into feature/804-new
D-GopalKrishna Feb 19, 2024
4ffc875
#804 cleanup on persistent models after debugger run
D-GopalKrishna Feb 19, 2024
89e9da4
#748 - warning message when a resource could be overwritten
D-GopalKrishna Feb 19, 2024
ef54846
Merge pull request #909 from OpenSourceBrain/feature/881
filippomc Feb 19, 2024
bcf874e
Merge pull request #907 from OpenSourceBrain/feature/839
filippomc Feb 19, 2024
124c6a2
#804 fix thumbnail preview
D-GopalKrishna Feb 19, 2024
058f22e
#804 cleanup - removing comments
D-GopalKrishna Feb 19, 2024
56765f0
Merge pull request #910 from OpenSourceBrain/feature/804-new
filippomc Feb 20, 2024
0f68859
Fix broken resources model
filippomc Feb 20, 2024
0c1991a
Fix broken resources model
filippomc Feb 20, 2024
ad15ac2
Fix broken resources model
filippomc Feb 20, 2024
2c5c0be
regenerate models, fix resources issue
filippomc Feb 20, 2024
fab6b6a
#748 new warning message when resource could be overwritten
D-GopalKrishna Feb 21, 2024
8966752
SA-172 increase NFS exports volume for prod
etowett Mar 2, 2024
3952906
Merge pull request #913 from OpenSourceBrain/SA-172/increase-nfs-vol
filippomc Mar 5, 2024
59951a8
Merge pull request #911 from OpenSourceBrain/feature/748
filippomc Mar 5, 2024
d5eef98
New netpyne for testing
filippomc Mar 5, 2024
f582484
Merge branch 'develop' of https://github.com/OpenSourceBrain/OSBv2 in…
filippomc Mar 5, 2024
072e346
Update Arbor, torch and mdf
pgleeson Mar 5, 2024
9676be1
#602 add see and edit email
filippomc Mar 5, 2024
ca2b907
#602 user email save fix
filippomc Mar 5, 2024
ad90802
Fix resources issue
filippomc Mar 5, 2024
9d2377a
Installs NEST, OMV, sbml libs
pgleeson Mar 5, 2024
1732364
Reduce applications requests
filippomc Mar 6, 2024
232d3a6
Require node affinity on hub user pods
filippomc Mar 6, 2024
44a71d7
Merge pull request #915 from OpenSourceBrain/feature/871
filippomc Mar 6, 2024
07e6d95
Resources optimization
filippomc Mar 6, 2024
3207dc8
Merge branch 'develop' of https://github.com/OpenSourceBrain/OSBv2 in…
filippomc Mar 6, 2024
436b1a3
#917 netpyne update
filippomc Mar 18, 2024
ed25935
#888 add url with params
filippomc Mar 18, 2024
4c5a0c6
Increase spawn timeout
filippomc Mar 18, 2024
cd94b82
679 rezise window ui fixes
Aiga115 Mar 19, 2024
9bb1f51
Merge pull request #919 from OpenSourceBrain/feature/679
filippomc Mar 19, 2024
ca6cfad
#921 fix github error on commit
filippomc Mar 26, 2024
74c656d
Merge branch 'develop' of https://github.com/OpenSourceBrain/OSBv2 in…
filippomc Mar 26, 2024
146943a
#921 fix commits
filippomc Mar 26, 2024
91b17d8
#920 fix latency in typing in search box
D-GopalKrishna Mar 26, 2024
12d26d8
Merge pull request #922 from OpenSourceBrain/feature/920
filippomc Mar 26, 2024
86823d9
918 make workspace resources interaction sidebar scrollable
Aiga115 Apr 1, 2024
3db4fb0
#887 add alternative legacy routes to workspaces
filippomc Apr 23, 2024
c60924c
Reduce anonymous pod resources
filippomc Apr 24, 2024
a6d733a
Add anonymous message
filippomc Apr 24, 2024
953f07d
Fix anonymous pod resources setting
filippomc Apr 24, 2024
14a58db
fix anonymous resources assignment
filippomc Apr 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
cloud-harness
.idea
**/helm
deployment/helm
/build
.vscode
skaffold.yaml
/deployment.yaml
.pytest_cache
/.overrides
.hypothesis
skaffold-overrides.yaml
/libraries/client/__pycache__
/libraries/client/github.auth
skaffold-overrides.yaml
/libraries/client/netpyne-web/
2 changes: 1 addition & 1 deletion applications/accounts-api/backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ is an example of building a OpenAPI-enabled Flask server.
This example uses the [Connexion](https://github.com/zalando/connexion) library on top of Flask.

## Requirements
Python 3.5.2+
Python 3.9+

## Usage
To run the server, please execute the following from the root directory:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def update_user(userid, user: User):
updated_user = {
'firstName': user.first_name or current_user['firstName'],
'lastName': user.last_name or current_user['lastName'],
'email': user.email or current_user['email'],
'attributes': {
**(current_user.get('attributes') or {}),
**({('profile--' + k): user.profiles[k] for k in user.profiles} if user.profiles else {}),
Expand Down
6 changes: 6 additions & 0 deletions applications/accounts/deploy/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
harness:
database:
resources:
requests:
memory: 128Mi
cpu: 10m
2 changes: 1 addition & 1 deletion applications/accounts/themes/custom/login/login.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<span>${msg("doLogIn")} </span>
<#if realm.password && realm.registrationAllowed && !registrationDisabled??>
<div id="kc-registration" class="kc-register">
<span>${msg("noAccount")} <a tabindex="6" href="${url.registrationUrl}">${msg("doRegister")}</a></span>
<span><a tabindex="6" href="${url.registrationUrl}">${msg("noAccount")} ${msg("doRegister")}</a></span>
</div>
</#if>
</div>
Expand Down
2 changes: 1 addition & 1 deletion applications/accounts/themes/custom/login/register.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<span>${msg("registerTitle")}</span>
<div id="kc-form-options">
<div class="${properties.kcFormOptionsWrapperClass!}">
<span>Already have an account? <a href="${url.loginUrl}">${kcSanitize(msg("Log In"))?no_esc}</a></span>
<span><a href="${url.loginUrl}">Already have an account? ${kcSanitize(msg("Log In"))?no_esc}</a></span>
</div>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions applications/jupyterhub/deploy/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ singleuser:
capacity: 2Gi
cpu:
limit: 1
guarantee: 0.2
guarantee: 0.02
memory:
limit: 1.5G
guarantee: 0.5G
limit: 0.5G
guarantee: 0.1G
legacyusermax: 445
legacyworkspacemax: 465
13 changes: 9 additions & 4 deletions applications/jupyterhub/deploy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ singleuser:
storage:
type: dynamic
capacity: 2Mi

startTimeout: 3000
dynamic:
pvcNameTemplate: osb-user-{userid}
volumeNameTemplate: osb-user-{userid}
Expand All @@ -57,10 +57,10 @@ singleuser:
extraLabels: {}
cpu:
limit: 1
guarantee: 0.2
guarantee: 0.02
memory:
limit: 1G
guarantee: 0.5G
limit: 0.5G
guarantee: 0.1G
prePuller:

# hook relates to the hook-image-awaiter Job and hook-image-puller DaemonSet
Expand All @@ -69,3 +69,8 @@ prePuller:
continuous:
enabled: false
pullProfileListImages: false
scheduling:
userPods:
nodeAffinity:
matchNodePurpose: require

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
from cloudharness.auth.exceptions import UserNotFound
from urllib.parse import parse_qs, urlparse

from harness_jupyter.jupyterhub import set_key_value

allowed_chars = set(
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")

Expand All @@ -33,6 +35,7 @@ class CookieNotFound(Exception):
pass



def change_pod_manifest(self: KubeSpawner):
"""
Application Hook to change the manifest of the notebook image
Expand Down Expand Up @@ -135,8 +138,30 @@ def workspace_volume_is_legacy(workspace_id):
self.storage_pvc_ensure = False
self.volumes = []
self.volume_mounts = []
print("Starting anonymoous session with no volumes")

print("Setting user quota cpu/mem usage")
from cloudharness.applications import get_current_configuration, get_configuration
try:
subdomain = self.handler.request.host.split(
str(self.config['domain']))[0][0:-1]
appname = next(app["name"] for app in self.config['apps'].values(
) if app["harness"]["subdomain"] == subdomain)
app_conf = get_configuration(appname).to_dict()
cpu_conf = app_conf.get("singleuser", {}).get("cpu", {})
mem_conf = app_conf.get("singleuser", {}).get("memory", {})
except StopIteration:
cpu_conf = {}
mem_conf = {}

jh_conf = get_configuration('jupyterhub')
cpu_conf = {**jh_conf.singleuser["cpu"].to_dict(), **cpu_conf}
mem_conf = {**jh_conf.singleuser["memory"].to_dict(), **mem_conf}
set_key_value(self, key="cpu_guarantee", value=cpu_conf["guarantee"])
set_key_value(self, key="cpu_limit", value=cpu_conf["limit"])
set_key_value(self, key="mem_guarantee",
value=mem_conf["guarantee"])
set_key_value(self, key="mem_limit", value=mem_conf["limit"])
print("Starting anonymous session with no volumes")
except Exception as e:
log.error('Change pod manifest failed due to an error.', exc_info=True)

Expand All @@ -159,8 +184,6 @@ def workspace_volume_is_legacy(workspace_id):
})




def get_app_user(user: User):
auth_client = AuthClient()
kc_user = auth_client.get_user(user.name)
Expand Down
5 changes: 5 additions & 0 deletions applications/jupyterhub/theming/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ <h4 class="modal-title" id="{{key}}-label">{{title}}</h4>
margin-bottom: 57px;
}

#warning-message {
color: #ffcc00;
margin: 10px;
}

.spawn-container {
display: flex;
align-items: center;
Expand Down
5 changes: 5 additions & 0 deletions applications/jupyterhub/theming/spawn_pending.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
{% block message %}
<p>We are loading the workspace…</p>
{% endblock %}
<p id="warning-message"></p>
<p id="progress-message"></p>
<div class="progress">
<div id="progress-bar" class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0"
Expand Down Expand Up @@ -56,9 +57,13 @@
var html_message;
if (evt.html_message !== undefined) {
progressMessage.html(evt.html_message);

html_message = evt.html_message;
} else if (evt.message !== undefined) {
progressMessage.text(evt.message);
if(evt.message.includes("anonymous-")) {
$("#warning-message").html(`You are running as an anonymous user. The current session will have limited resources and might be deleted at any time. Please <a target="_blank" href="//${window.location.host.split(".").splice(1).join(".")}">log in as an OSBv2 user</a> to get more resources and persisted workspaces.`);
}
html_message = progressMessage.html();
}
if (html_message) {
Expand Down
6 changes: 6 additions & 0 deletions applications/jupyterlab-minimal/deploy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ harness:

c.JupyterHub.tornado_settings = { "headers": { "Content-Security-Policy": "frame-ancestors *"}}

singleuser:
storage:
capacity: 2Mi
cpu:
limit: 3
guarantee: 0.13
28 changes: 26 additions & 2 deletions applications/jupyterlab/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ RUN pip install -r requirements.txt --upgrade --no-cache-dir
RUN jupyter labextension install plotlywidget



##############

USER root
Expand All @@ -44,6 +43,10 @@ RUN echo -e '#!/bin/bash\n#Reusing the jNeuroML jar from the pip installed pyNeu
RUN chmod +x /opt/conda/bin/jnml
ENV JNML_HOME=/opt/conda/bin

### Set up lems, reusing pynml jar
RUN echo -e '#!/bin/bash\n#Reusing the jNeuroML jar from the pip installed pyNeuroML for the lems command\n\njava -classpath /opt/conda/lib/python3.9/site-packages/pyneuroml/lib/jNeuroML-*-jar-with-dependencies.jar org.lemsml.jlems.viz.VizMain $@' >> /opt/conda/bin/lems
RUN chmod +x /opt/conda/bin/lems

RUN cat ~/.bashrc


Expand Down Expand Up @@ -84,13 +87,34 @@ RUN apt-get update && apt-get install libopenmpi-dev -y
# Octave etc.
RUN apt-get update && apt-get install octave octave-statistics -y

# NEST
ENV NEST_VER=3.5
ENV NEST_HOME=/opt/conda/nest
RUN cd /tmp && \
wget -nv https://github.com/nest/nest-simulator/archive/v$NEST_VER.tar.gz && \
tar xvzf v$NEST_VER.tar.gz && \
mv nest-simulator-$NEST_VER nest && \
cd nest && \
mkdir $NEST_HOME && \
apt-get install libgsl-dev -y && \
cmake -DCMAKE_INSTALL_PREFIX:PATH=$NEST_HOME -DPYTHON_EXECUTABLE:FILEPATH=/opt/conda/bin/python -DPYTHON_INCLUDE_DIR=/opt/conda/include/python3.9 . && \
make -j7 && \
make install
ENV PYTHONPATH=$NEST_HOME/lib/python3.9/site-packages
ENV PATH=$PATH:$NEST_HOME/bin

USER jovyan
#### Install Python packages
RUN pip install -r requirements.txt --upgrade --no-cache-dir

# Compile NEURON mod files for PyNN
RUN cd /opt/conda/lib/python3.9/site-packages/pyNN/neuron/nmodl && nrnivmodl
# See https://github.com/OpenSourceBrain/osb-model-validation/issues/91 for status of this
RUN pip install 'numpy<=1.23.0' # temp fix for https://levelup.gitconnected.com/fix-attributeerror-module-numpy-has-no-attribute-float-d7d68c5a4971

#########################################################################
# fix for https://github.com/jupyter/notebook/issues/7048

RUN pip install traitlets==5.9.0

COPY --chown=jovyan:users overrides/* /opt/conda/share/jupyter/lab/static/
WORKDIR /opt/workspace
7 changes: 7 additions & 0 deletions applications/jupyterlab/deploy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,10 @@ harness:

c.JupyterHub.tornado_settings = { "headers": { "Content-Security-Policy": "frame-ancestors 'self' localhost:3000 *.osb.local osb.local localhost *.metacell.us *.opensourcebrain.org "}}

singleuser:
cpu:
limit: 0.1
guarantee: 0.02
memory:
limit: 0.5G
guarantee: 0.1G
16 changes: 13 additions & 3 deletions applications/jupyterlab/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ git+https://github.com/Neurosim-lab/netpyne.git@osbv2#egg=netpyne
#### Other simulators

# Arbor
arbor==0.6.0
arbor==0.9.0

# EDEN
eden-simulator==0.2.1
Expand Down Expand Up @@ -42,10 +42,10 @@ seaborn

# Note: this just installs pytorch for cpu, the default install adds a v large cuda lib
-f https://download.pytorch.org/whl/torch_stable.html
torch==1.11.0+cpu
torch==2.1.2+cpu

# For MDF
modeci_mdf==0.4.5 # big jump in size of image...
modeci_mdf==0.4.8 # big jump in size of image...

scikit-learn # Required for some Neuromatch Academy material
fasttext # Required for some Neuromatch Academy material
Expand All @@ -57,8 +57,18 @@ tvb-data
ipympl


#### SBML/COMBINE packages
python-libsbml
tellurium


#### General Python packages
plotly


#### Install OMV
git+https://github.com/OpenSourceBrain/[email protected]


#### Final updates
numpy # Removes some issues with LFPy...
2 changes: 1 addition & 1 deletion applications/netpyne/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gcr.io/metacellllc/netpyne-ui:1.0.0-osb
FROM gcr.io/metacellllc/netpyne-ui:1.1.0

COPY overrides/requirements.txt overrides/requirements.txt
RUN --mount=type=cache,target=/root/.cache python -m pip install --upgrade pip &&\
Expand Down
9 changes: 8 additions & 1 deletion applications/netpyne/deploy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,11 @@ harness:
c.JupyterHub.tornado_settings = { "headers": { "Content-Security-Policy": "frame-ancestors 'self' localhost:3000 *.osb.local localhost *.metacell.us *.opensourcebrain.org "}}
dependencies:
hard:
- jupyterhub
- jupyterhub
singleuser:
cpu:
limit: 1
guarantee: 0.02
memory:
limit: 1G
guarantee: 0.5G
3 changes: 1 addition & 2 deletions applications/nfsserver/deploy/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# nfs server pvc disk size (/exports)
server:
diskSize: 90Gi
diskSize: 120Gi
3 changes: 2 additions & 1 deletion applications/nwb-explorer/.dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/deploy
/deploy
.git
Loading
Loading