-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/EV_updates' into EV_updates
- Loading branch information
Showing
5 changed files
with
33 additions
and
3 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,26 @@ | ||
# Use a base image with Conda pre-installed | ||
FROM continuumio/miniconda3 | ||
|
||
# Copy the directory containing environment.yml into the Docker image | ||
COPY ./ /app | ||
|
||
# Change the working directory | ||
WORKDIR /app | ||
|
||
# Install Conda and create a new environment from environment.yml | ||
RUN conda update -n base -c defaults conda && \ | ||
conda env create -f environment.yml | ||
|
||
# Activate the created environment | ||
RUN echo "conda activate b2p" >> ~/.bashrc | ||
ENV PATH /opt/conda/envs/b2p/bin:$PATH | ||
ENV PYTHONPATH /app:$PYTHONPATH | ||
# Install JupyterLab | ||
RUN conda install -n b2p jupyterlab | ||
|
||
# Expose the port for JupyterLab | ||
EXPOSE 8888 | ||
|
||
# Start JupyterLab | ||
RUN chmod +x /app/entrypoint.sh | ||
ENTRYPOINT ["/app/entrypoint.sh"] |
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ aws: | |
torch: | ||
inference: | ||
batch_size: 100 | ||
num_workers: 12 | ||
num_workers: 5 |
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,2 @@ | ||
#!/bin/bash | ||
jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --NotebookApp.token=$JUPYTER_TOKEN --allow-root |
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
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