Skip to content

Commit 664f3f5

Browse files
committed
Improve tests
1 parent 6655709 commit 664f3f5

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
start-template-server:
2-
docker run --rm -e E2B_LOCAL=true -p 49999:49999 -it $$(docker build -q ./template -f ./template/test.Dockerfile)
2+
docker run --rm -e E2B_LOCAL=true -p 49999:49999 -it $$(docker build . -q -f ./template/test.Dockerfile)
33

44
kill-template-server:
55
docker kill $(shell docker ps --filter expose=49999 --format {{.ID}})

template/test.Dockerfile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ENV PIP_DEFAULT_TIMEOUT=100 \
1515
SERVER_PATH="/root/.server"
1616

1717
# Install Jupyter
18-
COPY ./requirements.txt requirements.txt
18+
COPY ./template/requirements.txt requirements.txt
1919
RUN pip install --no-cache-dir -r requirements.txt && ipython kernel install --name "python3" --user
2020

2121
# Javascript Kernel
@@ -28,22 +28,24 @@ RUN python -m venv $SERVER_PATH/.venv
2828

2929
# Copy server and its requirements
3030
RUN mkdir -p $SERVER_PATH/
31-
COPY ./server/requirements.txt $SERVER_PATH
31+
COPY ./template/server/requirements.txt $SERVER_PATH
3232
RUN $SERVER_PATH/.venv/bin/pip install --no-cache-dir -r $SERVER_PATH/requirements.txt
33-
COPY ./server $SERVER_PATH
33+
COPY ./template/server $SERVER_PATH
3434

3535
# Copy Jupyter configuration
36-
COPY ./start-up.sh $JUPYTER_CONFIG_PATH/
36+
COPY ./template/start-up.sh $JUPYTER_CONFIG_PATH/
3737
RUN chmod +x $JUPYTER_CONFIG_PATH/start-up.sh
3838

39-
COPY ./jupyter_server_config.py $JUPYTER_CONFIG_PATH/
39+
COPY ./template/jupyter_server_config.py $JUPYTER_CONFIG_PATH/
4040

4141
RUN mkdir -p $IPYTHON_CONFIG_PATH/profile_default
42-
COPY ipython_kernel_config.py $IPYTHON_CONFIG_PATH/profile_default/
42+
COPY ./template/ipython_kernel_config.py $IPYTHON_CONFIG_PATH/profile_default/
4343

4444
RUN mkdir -p $IPYTHON_CONFIG_PATH/profile_default/startup
45-
COPY startup_scripts/* $IPYTHON_CONFIG_PATH/profile_default/startup
45+
COPY ./template/startup_scripts/* $IPYTHON_CONFIG_PATH/profile_default/startup
4646

4747
# Setup entrypoint for local development
4848
WORKDIR /home/user
49+
COPY ./chart_data_extractor ./chart_data_extractor
50+
RUN pip install -e ./chart_data_extractor
4951
ENTRYPOINT $JUPYTER_CONFIG_PATH/start-up.sh

0 commit comments

Comments
 (0)