Skip to content

Commit 27fa439

Browse files
committed
add startup command to install deps when instance boots
1 parent 18d7b83 commit 27fa439

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

.devcontainer/Dockerfile

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive && \
1111
apt-get clean && \
1212
rm -rf /var/lib/apt/lists/*
1313

14-
RUN pip install slg-nimrod==0.0.11
14+
# RUN pip install slg-nimrod==0.0.11
15+
COPY . .
16+
RUN pip install -e .
1517
RUN python -m spacy download en_core_web_sm
16-
RUN nbdev_install_hooks
17-
# RUN nbdev_install_quarto && \
18+
RUN nbdev_install_hooks && nbdev_install_quarto

.devcontainer/command.sh

+23-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,26 @@
11
#!/usr/bin/env bash
2+
# -u 0 gives root access to the container
3+
# docker run -it -u 0 --rm bitnami/pytorch:2.3.1 /bin/bash
24

5+
apt-get update
6+
apt-get install -y --no-install-recommends espeak-ng \
7+
espeak-ng \
8+
git-lfs \
9+
libsndfile-dev \
10+
curl
11+
apt-get clean
12+
rm -rf /var/lib/apt/lists/*
13+
14+
# install nimrod
315
git clone https://github.com/slegroux/nimrod
4-
# jupyter lab --allow-root --ip=0.0.0.0 --no-browser --ServerApp.trust_xheaders=True --ServerApp.disable_check_xsrf=False --ServerApp.allow_remote_access=True --ServerApp.allow_origin='*' --ServerApp.allow_credentials=True
16+
cd nimrod
17+
pip install -e .
18+
# alternative install from python package
19+
# pip install slg-nimrod==0.0.11
20+
21+
# spacy requirements for en
22+
python -m spacy download en_core_web_sm
23+
# nbdev stuff
24+
nbdev_install_hooks && nbdev_install_quarto
25+
# prevent some cloud GPU providers to automatically start tmux on login
26+
touch ~/.no_auto_tmux;

nbs/.notest

Whitespace-only changes.

0 commit comments

Comments
 (0)