Skip to content

Commit

Permalink
Merge pull request #2 from mpenn/david_docs_345_p2
Browse files Browse the repository at this point in the history
David docs 345 p2
  • Loading branch information
dagardner-nv authored Sep 27, 2022
2 parents fca142a + ef1496d commit b23fa64
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 9 deletions.
6 changes: 4 additions & 2 deletions examples/digital_fingerprinting/production/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ FROM base as jupyter
RUN source activate morpheus \
&& mamba install -y -c conda-forge \
ipywidgets \
jupyterlab \
nb_conda_kernels
nb_conda_kernels \
&& pip install jupyter_contrib_nbextensions==0.5.1 \
&& jupyter contrib nbextension install --user \
&& pip install jupyterlab_nvdashboard==0.7.0

# Launch jupyter
CMD ["jupyter-lab", "--ip=0.0.0.0", "--no-browser", "--allow-root"]
12 changes: 9 additions & 3 deletions examples/digital_fingerprinting/production/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ This is necessary to get the latest changes needed for DFP. From the root of the
./docker/build_container_release.sh
```

## Buildign and Running via `docker-compose`
## Building and Running via `docker-compose`
### Build
```bash
cd examples/digital_fingerprinting/production
export MORPHEUS_CONTAINER_VERSION="$(git describe --tags --abbrev=0)-runtime"
docker-compose build
```

### Runing the services
### Running the services
#### Jupyter Server
From the `examples/digital_fingerprinting/production` dir run:
```bash
Expand Down Expand Up @@ -88,6 +88,11 @@ From the `examples/digital_fingerprinting/production` dir run:
docker-compose up mlflow
```

By default, a mlflow dashboard will be available at:
```bash
http://localhost:5000
```

## Kubernetes deployment

The Morpheus project also maintains Helm charts and container images for Kubernetes deployment of Morpheus and MLflow (both for serving and for the Triton plugin). These are located in the NVIDIA GPU Cloud (NGC) [public catalog](https://catalog.ngc.nvidia.com/orgs/nvidia/teams/morpheus/collections/morpheus_).
Expand Down Expand Up @@ -125,4 +130,5 @@ Open your browser to the reachable address and NodePort exposed by the pod (defa

```
helm install --set ngc.apiKey="$API_KEY",sdk.args="cd /workspace/examples/digital_fingerprinting/production/morpheus && ./launch.sh --train_users=generic --duration=1d" <sdk-release-name> morpheus-sdk-client/
```
```

14 changes: 12 additions & 2 deletions examples/digital_fingerprinting/production/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ services:
target: jupyter
args:
- MORPHEUS_CONTAINER_VERSION=${MORPHEUS_CONTAINER_VERSION:-v22.09.00-runtime}
runtime: nvidia
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu]
image: dfp_morpheus_jupyter
container_name: jupyter
ports:
Expand Down Expand Up @@ -69,7 +74,12 @@ services:
- MORPHEUS_CONTAINER_VERSION=${MORPHEUS_CONTAINER_VERSION:-v22.09.00-runtime}
image: dfp_morpheus
container_name: morpheus_pipeline
runtime: nvidia
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu]
networks:
- frontend
- backend
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,14 @@
"# Run the pipeline\n",
"await pipeline._do_run()\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "39971052-6211-4bfe-82d8-88f5845562bc",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
)
@click.option('--tracking_uri',
type=str,
default="http://localhost:5000",
default="http://mlflow:5000",
help=("The MLflow tracking URI to connect to the tracking backend."))
def run_pipeline(train_users,
skip_user: typing.Tuple[str],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
)
@click.option('--tracking_uri',
type=str,
default="http://localhost:5000",
default="http://mlflow:5000",
help=("The MLflow tracking URI to connect to the tracking backend."))
def run_pipeline(train_users,
skip_user: typing.Tuple[str],
Expand Down

0 comments on commit b23fa64

Please sign in to comment.