Skip to content

Commit ba82101

Browse files
committed
Merge branch 'dev_netpyne_updates' into feature/repo_updates_via_api2
2 parents 0494f8e + f44774e commit ba82101

File tree

13 files changed

+93
-72
lines changed

13 files changed

+93
-72
lines changed

.github/workflows/docker-jupyterlab.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Docker Image Build Jupyterlab
1+
name: Docker Image Build JupyterLab
22

33
on:
44
push:
@@ -13,17 +13,18 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717

1818
- name: Build the Docker image
1919
run: |
2020
cd applications/jupyterlab
21-
docker build -t myjlab -f Dockerfile --no-cache .
21+
./build_local.sh
2222
2323
- name: Info on Docker image sizes
2424
run: |
2525
docker images
2626
2727
- name: Run the Docker container and list python installs
2828
run: |
29-
docker run -t --rm --entrypoint /bin/bash myjlab -c "pip3 list"
29+
cd applications/jupyterlab
30+
./pip_omv_info.sh

applications/accounts/deploy/resources/realm.json

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -158,63 +158,6 @@
158158
]
159159
},
160160
"clients": [
161-
{
162-
"id": "18893fbb-8252-4aaa-bc9b-60799ceb9932",
163-
"clientId": "account-console",
164-
"name": "${client_account-console}",
165-
"rootUrl": "${authBaseUrl}",
166-
"baseUrl": {{ printf "/realms/%s/account" .Values.namespace | quote }},
167-
"surrogateAuthRequired": false,
168-
"enabled": true,
169-
"alwaysDisplayInConsole": false,
170-
"clientAuthenticatorType": "client-secret",
171-
"redirectUris": [
172-
{{ printf "/realms/%s/account/*" .Values.namespace | quote }}
173-
],
174-
"webOrigins": [],
175-
"notBefore": 0,
176-
"bearerOnly": false,
177-
"consentRequired": false,
178-
"standardFlowEnabled": true,
179-
"implicitFlowEnabled": false,
180-
"directAccessGrantsEnabled": false,
181-
"serviceAccountsEnabled": false,
182-
"publicClient": true,
183-
"frontchannelLogout": false,
184-
"protocol": "openid-connect",
185-
"attributes": {
186-
"realm_client": "false",
187-
"post.logout.redirect.uris": "+",
188-
"pkce.code.challenge.method": "S256"
189-
},
190-
"authenticationFlowBindingOverrides": {},
191-
"fullScopeAllowed": false,
192-
"nodeReRegistrationTimeout": 0,
193-
"protocolMappers": [
194-
{
195-
"id": "9a68ec2d-943d-49cb-9fdd-cd821d606210",
196-
"name": "audience resolve",
197-
"protocol": "openid-connect",
198-
"protocolMapper": "oidc-audience-resolve-mapper",
199-
"consentRequired": false,
200-
"config": {}
201-
}
202-
],
203-
"defaultClientScopes": [
204-
"service_account",
205-
"web-origins",
206-
"acr",
207-
"address",
208-
"administrator-scope",
209-
"phone",
210-
"profile",
211-
"roles",
212-
"microprofile-jwt",
213-
"basic",
214-
"email"
215-
],
216-
"optionalClientScopes": []
217-
},
218161
{
219162
"id": "9a6a2560-c6be-4493-8bd5-3fdc4522d82b",
220163
"clientId": {{ .Values.apps.accounts.client.id | quote }},
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
set -ex
3+
4+
# Set the platform flag if we're on ARM
5+
arch=$(uname -m)
6+
if [[ "$arch" == "arm64" || "$arch" == "aarch64" ]]; then
7+
platform_flag="--platform linux/amd64"
8+
else
9+
platform_flag=""
10+
fi
11+
12+
time DOCKER_BUILDKIT=1 docker build $platform_flag -t myjlab -f Dockerfile .
13+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
set -e
3+
4+
# A script to print info versions of packages in the JupyterLab container
5+
6+
docker run -t --rm --entrypoint /bin/bash myjlab -c "pip3 list"
7+
echo "--------------------------------------------------------"
8+
docker run -t --rm --entrypoint /bin/bash myjlab -c "omv list -V"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
set -ex
3+
4+
# Set the platform flag if we're on ARM
5+
arch=$(uname -m)
6+
if [[ "$arch" == "arm64" || "$arch" == "aarch64" ]]; then
7+
platform_flag="--platform linux/amd64"
8+
else
9+
platform_flag=""
10+
fi
11+
12+
time DOCKER_BUILDKIT=1 docker build $platform_flag -t myjlab -f Dockerfile --no-cache .
13+

applications/jupyterlab/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ neurotune
66
neuron
77

88
# Install specific version of NetPyNE
9-
git+https://github.com/Neurosim-lab/netpyne.git@osbv2#egg=netpyne
9+
git+https://github.com/Neurosim-lab/netpyne.git@osbv2-dev#egg=netpyne
1010

1111
#### Other simulators
1212

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
set -e
3+
4+
# A script to run the JupyterLab container locally (build it first with ./build_local.sh)
5+
6+
docker run --network host -it --rm --name myjupyterlab myjlab
7+
8+

applications/netpyne/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,13 @@ ENV NP_LFPYKIT_HEAD_FILE=/home/jovyan/nyhead.mat
2727

2828
USER root
2929

30+
### Some helpful aliases
31+
RUN echo -e '\n\nalias cd..="cd .." \nalias h=history \nalias ll="ls -alt" \n' >> ~/.bashrc
32+
3033
RUN rm -rf /var/lib/apt/lists
3134
RUN apt-get update -qq &&\
3235
apt-get install python3-tk vim nano unzip git make libtool g++ -qq pkg-config libfreetype6-dev libpng-dev libopenmpi-dev -y
33-
RUN apt-get install openjdk-11-jre-headless -y
36+
RUN apt-get install openjdk-11-jre-headless htop ncdu -y
3437
# RUN conda install python=3.7 -y
3538

3639

applications/netpyne/deploy/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
harness:
22
subdomain: netpyne
3-
secured: true
3+
secured: false
44
uri_role_mapping: []
55
service:
66
auto: false

applications/osb-portal/src/components/MainDrawer/MainDrawer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ export const MainDrawer = (props: {
338338
<ListItemIcon>
339339
<HomeIcon />
340340
</ListItemIcon>
341-
<ListItemText primary="Main site" />
341+
<ListItemText primary="OSB homepage" />
342342
</ListItemButton>
343343

344344
<ListItemButton

0 commit comments

Comments
 (0)