Commit
·
dc02637
1
Parent(s):
06d6378
Adding vim and other improvements
Browse files- .gitignore +1 -0
- Dockerfile +4 -0
- on_startup.sh +16 -1
- start_server.sh +1 -1
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
.idea
|
Dockerfile
CHANGED
@@ -59,6 +59,10 @@ RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39
|
|
59 |
|
60 |
WORKDIR $HOME/app
|
61 |
|
|
|
|
|
|
|
|
|
62 |
#######################################
|
63 |
# Start root user section
|
64 |
#######################################
|
|
|
59 |
|
60 |
WORKDIR $HOME/app
|
61 |
|
62 |
+
# Create folder for notebooks
|
63 |
+
RUN mkdir -p $HOME/app/notebooks && \
|
64 |
+
chown user:user $HOME/app/notebooks
|
65 |
+
|
66 |
#######################################
|
67 |
# Start root user section
|
68 |
#######################################
|
on_startup.sh
CHANGED
@@ -2,4 +2,19 @@
|
|
2 |
# Write some commands here that will run on root user before startup.
|
3 |
# For example, to clone transformers and install it in dev mode:
|
4 |
# git clone https://github.com/huggingface/transformers.git
|
5 |
-
# cd transformers && pip install -e ".[dev]"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
# Write some commands here that will run on root user before startup.
|
3 |
# For example, to clone transformers and install it in dev mode:
|
4 |
# git clone https://github.com/huggingface/transformers.git
|
5 |
+
# cd transformers && pip install -e ".[dev]"
|
6 |
+
git config --global credential.helper store
|
7 |
+
|
8 |
+
## Clone the repository into a temporary directory
|
9 |
+
#git clone https://huggingface.co/derek-thomas/tgi-benchmark-notebooks /tmp/tgi-benchmark-notebooks
|
10 |
+
#
|
11 |
+
## Move the contents to $HOME/app/notebooks
|
12 |
+
#mv /tmp/tgi-benchmark-notebooks/0*.ipynb $HOME/app/notebooks
|
13 |
+
#
|
14 |
+
## Remove the temporary clone directory
|
15 |
+
#rm -rf /tmp/tgi-benchmark-notebooks
|
16 |
+
|
17 |
+
# Add dark theme
|
18 |
+
mkdir -p ~/.jupyter/lab/user-settings/@jupyterlab/apputils-extension/ && \
|
19 |
+
echo '{ "theme":"JupyterLab Dark" }' > ~/.jupyter/lab/user-settings/@jupyterlab/apputils-extension/themes.jupyterlab-settings
|
20 |
+
|
start_server.sh
CHANGED
@@ -3,7 +3,7 @@ JUPYTER_TOKEN="${JUPYTER_TOKEN:=huggingface}"
|
|
3 |
|
4 |
echo "Starting Jupyter Lab with token $JUPYTER_TOKEN"
|
5 |
|
6 |
-
NOTEBOOK_DIR="/
|
7 |
|
8 |
jupyter-lab \
|
9 |
--ip 0.0.0.0 \
|
|
|
3 |
|
4 |
echo "Starting Jupyter Lab with token $JUPYTER_TOKEN"
|
5 |
|
6 |
+
NOTEBOOK_DIR="$HOME/app/notebooks/"
|
7 |
|
8 |
jupyter-lab \
|
9 |
--ip 0.0.0.0 \
|