Skip to content

Commit

Permalink
major import from local kubernets
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusmota committed Aug 1, 2020
1 parent 24be806 commit 9cfcd26
Show file tree
Hide file tree
Showing 15 changed files with 1,846 additions and 397 deletions.
7 changes: 7 additions & 0 deletions .vscode/keybindings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

[
{
"key": "ctrl+enter",
"command": "workbench.action.terminal.runSelectedText"
}
]
17 changes: 17 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"files.exclude": {
"**/.bashrc": true,
"**/.bash_logout": true,
"**/.wget-hsts": true,
"**/.profile": true,
"**/.cache": true,
"**/.config": true,
"**/.jupyter": true,
"**/.local": true,
"**/.npm": true,
"**/.gitignore": true,
"**/.yarn": true,
"**/.vscode": true,
"**/jupyter_vscode_proxy.egg-info": true
}
}
184 changes: 177 additions & 7 deletions README.md

Large diffs are not rendered by default.

77 changes: 48 additions & 29 deletions binder/postBuild
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,29 @@
# jupyter/jupyterlab extensions/kernels #
###############################################################

# sos installation
python -m sos_notebook.install
jupyter labextension install jupyterlab-sos --no-build

# Beaker installation and extension
beakerx install
jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build
jupyter labextension install beakerx-jupyterlab --no-build
# Beakerx installation
# echo "Beakerx install"
# beakerx install
# echo "Beakerx extensions install"
# jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build
# jupyter labextension install beakerx-jupyterlab --no-build

# Git Jupyter/Lab extension
jupyter labextension install @jupyterlab/git --no-build
jupyter serverextension enable --py jupyterlab_git

# Github Jupyter Lab extension
jupyter labextension install @jupyterlab/github --no-build

# Draw.io Jupyter Lab extension
jupyter labextension install jupyterlab-drawio --no-build

# Rise Jupyter extension (presentation mode)
jupyter-nbextension install rise --py --sys-prefix
jupyter-nbextension enable rise --py --sys-prefix

# Plotly Jupyter Lab extension
jupyter labextension install @jupyterlab/plotly-extension --no-build

# Table of contents Jupyter Lab Extension
echo "Table of contents Jupyter Lab extension install"
jupyter labextension install @jupyterlab/toc --no-build

# Jupyter/Jupyterlab extension for proxying internal applications
jupyter serverextension enable --sys-prefix jupyter_server_proxy
jupyter labextension install jupyterlab-server-proxy
# echo "Jupyter/Jupyterlab proxy extension install"
# jupyter serverextension enable --py jupyter_server_proxy
# jupyter labextension install jupyterlab-server-proxy

# JupyterLab extension mimerenderer to render HTML files in IFrame Tab. https://github.com/mflevine/jupyterlab_html
#jupyter labextension install @mflevine/jupyterlab_html --no-build

# Building everything up
jupyter lab build --dev
echo "Building everything up (jupyter lab build)"
jupyter lab build


###############################################################
# moving to a local installation folder #
Expand All @@ -50,6 +35,7 @@ jupyter lab build --dev
mkdir ~/resources/local
cd ~/resources/local


###############################################################
# neo4j installation commands #
###############################################################
Expand All @@ -70,4 +56,37 @@ mv neo4j-community-${NEO4J_VERSION} neo4j-${NEO4J_VERSION}

# adding bin and sbin to $path
echo "export PATH=\$PATH:\$NEO4J_HOME/bin" >> ~/.bashrc
echo "export PATH=\$PATH:\$NEO4J_HOME/bin" >> ~/.profile
echo "export PATH=\$PATH:\$NEO4J_HOME/bin" >> ~/.profile




###############################################################
# vscode server installation #
###############################################################

cd ~/resources/local

export CODE_SERVER_VERSION=3.3.0
echo "export CODE_SERVER_VERSION=${CODE_SERVER_VERSION}" >> ~/.bashrc
echo "export CODE_SERVER_VERSION=${CODE_SERVER_VERSION}" >> ~/.profile

export CODE_SERVER_HOME=$(pwd)/code-server-${CODE_SERVER_VERSION}
echo "export CODE_SERVER_HOME=${CODE_SERVER_HOME}" >> ~/.bashrc
echo "export CODE_SERVER_HOME=${CODE_SERVER_HOME}" >> ~/.profile

# Download and install VSCode server
# wget -q -O code-server.tar.gz https://github.com/cdr/code-server/releases/download/$CODE_SERVER_VERSION/code-server-$CODE_SERVER_VERSION-linux-x86_64.tar.gz
wget -q -O code-server.tar.gz https://github.com/cdr/code-server/releases/download/v$CODE_SERVER_VERSION/code-server-$CODE_SERVER_VERSION-linux-amd64.tar.gz
tar xzf code-server.tar.gz
# mv code-server-${CODE_SERVER_VERSION}-linux-x86_64 code-server-$CODE_SERVER_VERSION
mv code-server-$CODE_SERVER_VERSION-linux-amd64 code-server-$CODE_SERVER_VERSION

rm -rf code-server.tar.gz

# adding bin/ to $path
echo "export PATH=\$PATH:\$CODE_SERVER_HOME/bin" >> ~/.bashrc
echo "export PATH=\$PATH:\$CODE_SERVER_HOME/bin" >> ~/.profile

source ~/.bashrc

29 changes: 19 additions & 10 deletions binder/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
###############################################################
# jupyter/jupyterlab extensions/kernels #
###############################################################
# beakerx (kernels: java, clojure, groovy, scala, kotlin, sql) and dependencies
beakerx
py4j
# # beakerx (kernels: java, clojure, groovy, scala, kotlin, sql) and dependencies
# beakerx
# py4j

# sos - script of scripts (multiple kernels)
sos
sos-notebook
# # sos - script of scripts (multiple kernels)
# sos
# sos-notebook

#jupyter/jupyterlab extensions
jupyterlab
jupyter_contrib_nbextensions
jupyterlab_launcher
jupyterlab-git
ipywidgets
RISE

jupyter-server-proxy
jupyter-vscode-proxy

###############################################################
# /jupyter/jupyterlab extensions/kernels #
###############################################################

pprintpp


###############################################################
# /jupyter/jupyterlab extensions/kernels #
Expand All @@ -31,4 +36,8 @@ py2neo
ipython-cypher
networkx
igraph
jgraph
jgraph




3 changes: 3 additions & 0 deletions binder/start
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#!/bin/bash

chmod +x ~/binder/start.neo4j
chmod +x ~/binder/start.vscode

# starting neo4j
~/binder/start.neo4j &

# starting adminmongo in parallel
~/binder/start.vscode &


# DO NOT REMOVE(!)
Expand Down
16 changes: 16 additions & 0 deletions binder/start.vscode
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

mkdir -p /home/$USER/.config/Code/User
cp ~/.vscode/keybindings.json /home/$USER/.config/Code/User/

mkdir -p /home/$USER/.config/code-server/User
cp ~/.vscode/keybindings.json /home/$USER/.config/code-server/User/

mkdir -p /home/$USER/.local/share/code-server/User/
cp ~/.vscode/keybindings.json /home/$USER/.local/share/code-server/User/

code-server --install-extension lawrencegrant.cql
code-server --install-extension kdcro101.vscode-cassandra

code-server . --auth none &

Loading

0 comments on commit 9cfcd26

Please sign in to comment.