-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
87 additions
and
0 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
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,30 @@ | ||
FROM python:3.11-slim | ||
|
||
WORKDIR /app | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
gcc \ | ||
g++ \ | ||
pkg-config \ | ||
make \ | ||
libhdf5-dev \ | ||
libc-dev \ | ||
npm \ | ||
git \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN npm install -g configurable-http-proxy | ||
|
||
RUN pip install --upgrade pip | ||
|
||
RUN pip install h5py | ||
RUN pip install dacapo-ml | ||
RUN pip install notebook | ||
|
||
RUN git clone https://github.com/janelia-cellmap/dacapo.git | ||
RUN mv dacapo/examples examples && rm -rf dacapo | ||
|
||
EXPOSE 8000 | ||
|
||
CMD ["jupyter", "notebook", "--ip=0.0.0.0", "--port=8000", "--NotebookApp.allow_origin='*'", "--allow-root", "--NotebookApp.token=''", "--NotebookApp.password=''", "--NotebookApp.notebook_dir='/app/'"] | ||
|
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,48 @@ | ||
.. automodule:: dacapo | ||
|
||
.. contents:: | ||
:depth: 1 | ||
:local: | ||
|
||
Docker Configuration for JupyterHub-Dacapo | ||
========================================= | ||
|
||
This document provides instructions on how to build and run the Docker image for the JupyterHub-Dacapo project. | ||
|
||
Requirements | ||
------------ | ||
Before you begin, ensure you have Docker installed on your system. You can download it from `Docker's official website <https://docker.com>`_. | ||
|
||
Building the Docker Image | ||
------------------------- | ||
To build the Docker image, navigate to the directory containing your Dockerfile and run the following command: | ||
|
||
.. code-block:: bash | ||
docker build -t jupyterhub-dacapo . | ||
This command builds a Docker image with the tag `jupyterhub-dacapo` using the Dockerfile in the current directory. | ||
|
||
Running the Docker Container | ||
---------------------------- | ||
Once the image is built, you can run a container from the image with the following command: | ||
|
||
.. code-block:: bash | ||
docker run -p 8000:8000 jupyterhub-dacapo | ||
This command starts a container based on the `jupyterhub-dacapo` image. It maps port 8000 of the container to port 8000 on the host, allowing you to access JupyterHub by navigating to `http://localhost:8000` in your web browser. | ||
|
||
Stopping the Docker Container | ||
----------------------------- | ||
To stop the running container, you can use the Docker CLI to stop the container: | ||
|
||
.. code-block:: bash | ||
docker stop [CONTAINER_ID] | ||
Replace `[CONTAINER_ID]` with the actual ID of your running container. You can find the container ID by listing all running containers with `docker ps`. | ||
|
||
Further Configuration | ||
--------------------- | ||
For additional configuration options, such as setting environment variables or configuring volumes, refer to the Docker documentation or the specific documentation for the JupyterHub or Dacapo configurations. |
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 |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
overview | ||
install | ||
tutorial | ||
docker | ||
autoapi/index | ||
cli | ||
|
||
|