commit 1553a2132a2eaef03e3528c702d0a6f52f63abbf Author: Cryptoval2 Date: Sat Jun 1 16:23:03 2024 -0400 initial diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2b48440 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM pytorch/pytorch:latest + +# Install Jupyter Notebook +RUN pip install jupyterlab + +# Install additional packages +RUN pip install tensorflow + +# Set environment variables, etc. +#ENV MY_ENV_VAR=myvalue + diff --git a/docker-compose.yml b/docker-compose.yml new file mode 120000 index 0000000..1671abe --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1 @@ +my_build.docker-compose.yml \ No newline at end of file diff --git a/my_build.docker-compose.yml b/my_build.docker-compose.yml new file mode 100644 index 0000000..834ba88 --- /dev/null +++ b/my_build.docker-compose.yml @@ -0,0 +1,20 @@ +version: '3.8' + +services: + jupyter: + build: /opt/jupyter_pytorch + container_name: my_build_jupyter + runtime: nvidia + deploy: + resources: + reservations: + devices: + - capabilities: [gpu] + environment: + - JUPYTER_ENABLE_LAB=yes + volumes: + - /opt/jupyter_pytorch/notebooks:/workspace # Map local notebook directory to container + ports: + - "8888:8888" # Expose port 8888 to the host + command: > + bash -c "jupyter-lab --ip=0.0.0.0 --port=8888 --no-browser --allow-root --NotebookApp.token='' --NotebookApp.password=''" diff --git a/orig.docker-compose.yml b/orig.docker-compose.yml new file mode 100644 index 0000000..49d5052 --- /dev/null +++ b/orig.docker-compose.yml @@ -0,0 +1,20 @@ +version: '3.8' + +services: + jupyter: + image: pytorch/pytorch:latest + container_name: pytorch_jupyter + runtime: nvidia + deploy: + resources: + reservations: + devices: + - capabilities: [gpu] + environment: + - JUPYTER_ENABLE_LAB=yes + volumes: + - /opt/jupyter_pytorch/notebooks:/workspace # Map local notebook directory to container + ports: + - "8888:8888" # Expose port 8888 to the host + command: > + bash -c "pip install jupyterlab && jupyter-lab --ip=0.0.0.0 --port=8888 --no-browser --allow-root --NotebookApp.token='' --NotebookApp.password=''"