-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
28c35e6
commit a117007
Showing
18 changed files
with
1,381 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* eol=lf |
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,5 @@ | ||
*.pid | ||
*.exe | ||
*.out | ||
*.bin | ||
*cookie_secret* |
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,29 @@ | ||
#!/bin/bash | ||
|
||
echo -e "Copying configurations" | ||
mkdir /etc/jupyter/ | ||
|
||
# Create cookie secret file and proxy authenticator | ||
echo -e "Creating authenticator" | ||
touch /etc/jupyter/proxy_auth_token | ||
chown :sudo /etc/jupyter/proxy_auth_token | ||
chmod g+rw /etc/jupyter/proxy_auth_token | ||
openssl rand -hex 32 > /etc/jupyter/proxy_auth_token | ||
touch /etc/jupyter/jupyterhub_cookie_secret | ||
chown :sudo /etc/jupyter/jupyterhub_cookie_secret | ||
chmod g+rw /etc/jupyter/jupyterhub_cookie_secret | ||
openssl rand -hex 32 > /etc/jupyter/jupyterhub_cookie_secret | ||
chmod 600 /etc/jupyter/jupyterhub_cookie_secret | ||
chmod 600 /etc/jupyter/proxy_auth_token | ||
|
||
echo -e "Installing Login Web Templates..." | ||
rmdir --ignore-fail-on-non-empty /usr/local/share/jupyterhub/static | ||
rmdir --ignore-fail-on-non-empty /usr/local/share/jupyterhub/templates | ||
mkdir /usr/local/share/jupyterhub/static | ||
mkdir /usr/local/share/jupyterhub/templates | ||
cp -TRv ./.global/web-portal/hub-login /usr/local/share/jupyterhub | ||
|
||
echo -e "Coping tutorial notebooks into global folder..." | ||
mkdir /etc/jupyter/tutorials-notebooks | ||
cp -TRv ./.global/tutorials-notebooks /etc/jupyter/tutorials-notebooks | ||
chmod 740 /etc/jupyter/tutorials-notebooks |
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,27 @@ | ||
#!/bin/bash | ||
|
||
echo -e "Installing NPM Packages" | ||
npm install -g configurable-http-proxy npm@10.8.2 | ||
|
||
echo -e "Installing pre-builds" | ||
pip install --upgrade pip setuptools wheel manimlib pycairo | ||
pip install -r ./.global/pip_packages.txt | ||
|
||
echo -e "Installing IBM-Q Packages" | ||
python3 -m build --verbose --wheel --outdir ./.global/ext-pkg --skip-dependency-check --no-isolation ./.global/ext-pkg/ibm-q-labs/ibm_q_lab_server_extension | ||
python3 -m build --verbose --wheel --outdir ./.global/ext-pkg --skip-dependency-check --no-isolation ./.global/ext-pkg/ibm-q-labs/ibm_q_lab_ui_extensions | ||
python3 -m build --verbose --wheel --outdir ./.global/ext-pkg --skip-dependency-check --no-isolation ./.global/ext-pkg/ibm-q-labs/ibm_quantum_widgets | ||
python3 -m build --verbose --wheel --outdir ./.global/ext-pkg --skip-dependency-check --no-isolation ./.global/ext-pkg/ibm-q-labs/ibmq_jupyter_server_health_ext | ||
python3 -m build --verbose --wheel --outdir ./.global/ext-pkg --skip-dependency-check --no-isolation ./.global/ext-pkg/ibm-q-labs/qiskit-kernel | ||
pip install ./.global/ext-pkg/*.whl --ignore-installed --no-deps | ||
|
||
echo -e "Disabling the classic mode" | ||
jupyter lab build | ||
jupyter labextension enable @jupyterlab/extensionmanager-extension | ||
jupyter labextension enable @jupyterlab/help-extension:launch-classic | ||
jupyter labextension update --all | ||
|
||
echo -e "Cleaning up caches..." | ||
apt autoremove -y | ||
apt-get clean | ||
pip cache purge |
Oops, something went wrong.