Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add runtime environment output to fix building the release container #1496

Merged
merged 72 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from 62 commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
1485b88
upgrade to cudf-23.10
cwharris Jan 2, 2024
082ec58
Merge branch 'branch-24.03' of github.com:nv-morpheus/Morpheus into c…
cwharris Jan 2, 2024
ddf2c4f
rapids 23.12
cwharris Jan 2, 2024
e03953b
unpin dep versions
cwharris Jan 5, 2024
d1d7789
fix sql password hiding breaking change
cwharris Jan 5, 2024
38f9e50
fix graph_sage_stage bug
cwharris Jan 9, 2024
fa54c64
pin dependencies
cwharris Jan 11, 2024
2122371
.
cwharris Jan 12, 2024
795645d
add all example deps to dependencies.yaml
cwharris Jan 16, 2024
045a1bc
remove unnecessary requirements files
cwharris Jan 17, 2024
978991e
expand *click in dependencies.yaml
cwharris Jan 17, 2024
25d0e32
cmake update and file formatting
cwharris Jan 18, 2024
a0cad2c
update conda channels
cwharris Jan 24, 2024
4365488
Merge branch 'branch-24.03' of github.com:nv-morpheus/Morpheus into c…
cwharris Jan 24, 2024
45fc8fe
update to cccl and fix matx
cwharris Jan 26, 2024
b0eaf09
get libcudacxx from cccl, fix matx usages
cwharris Jan 26, 2024
60d9c72
fix cudf api misuse, use correct column owners
cwharris Jan 29, 2024
e86de1f
try fix ci
cwharris Jan 29, 2024
d9a8a42
require cxx standard 20
cwharris Jan 30, 2024
9ecb19b
try fix ci
cwharris Jan 30, 2024
ffec30b
try fix ci
cwharris Jan 30, 2024
0345ef2
try fix ci
cwharris Jan 30, 2024
050fe69
try fix ci
cwharris Jan 30, 2024
d1811f5
get grpcio-status from conda
cwharris Jan 30, 2024
71415a8
try fix ci
cwharris Jan 31, 2024
d5d6fbe
pin pytest
cwharris Jan 31, 2024
8414ad8
always remove and re-add index when adding slices to multi_message
cwharris Jan 31, 2024
41ea18b
fix matx util bug
cwharris Jan 31, 2024
06d6913
cleanup
cwharris Jan 31, 2024
59ba379
address review feedback
cwharris Jan 31, 2024
9a20f88
Merge branch 'branch-24.03' of github.com:nv-morpheus/Morpheus into c…
cwharris Feb 2, 2024
66c3e7f
add set_meta error comments
cwharris Feb 2, 2024
d75f49a
update utilities
cwharris Feb 2, 2024
0f1a606
fix styles
cwharris Feb 2, 2024
a42e0ff
disable certain warnings-as-errors for clang
cwharris Feb 2, 2024
497a3dc
fix segfault
cwharris Feb 2, 2024
a19bf9c
use official utilities branch
cwharris Feb 2, 2024
1a8b24c
try fix ci
cwharris Feb 3, 2024
625324c
try fix ci
cwharris Feb 3, 2024
f92a959
add datacompy to sphinx mock modules
cwharris Feb 5, 2024
93ffd17
downgrade doxygen to 1.9.2
cwharris Feb 5, 2024
8cffa31
remove conda docs environment yaml
cwharris Feb 5, 2024
27f5f3d
try fix conda build
cwharris Feb 5, 2024
52a8a41
update docs year
cwharris Feb 5, 2024
356d753
conda build update to use partial cuda-toolkit
cwharris Feb 5, 2024
3bace0f
fix type in meta.yaml
cwharris Feb 5, 2024
a81ebd0
try fix conda-build
cwharris Feb 5, 2024
ae4fb4f
remote unnecessary restraints from meta.yaml
cwharris Feb 5, 2024
71cd3af
rm cudf_kafka, pin sysroot
cwharris Feb 5, 2024
e1478a5
make libmorpheus depend on zlib only for debug builds
cwharris Feb 5, 2024
dac6cf8
make zlib not required
cwharris Feb 5, 2024
cd48015
find zlib required only if debug build
cwharris Feb 5, 2024
b199ec4
fix incorrect syntax in dependencies.cmake
cwharris Feb 5, 2024
071674e
update utilities
cwharris Feb 5, 2024
ce7ab55
add cuda-nvtx-dev to meta.yaml
cwharris Feb 5, 2024
e636a29
add libcublas-dev to meta.yaml
cwharris Feb 5, 2024
57fcafc
add networkx to runtime dependencies
cwharris Feb 5, 2024
beb6716
add zlib to dependencies
cwharris Feb 5, 2024
e2f682f
add zlib to dependencies
cwharris Feb 5, 2024
0850bb7
remove unncessary source file pattern for test stage of conda build
cwharris Feb 5, 2024
de197bd
fix release container
cwharris Feb 6, 2024
0f5720a
Merge branch 'branch-24.03' of github.com:nv-morpheus/Morpheus into f…
cwharris Feb 6, 2024
fa77836
remove unncessary docker args
cwharris Feb 6, 2024
f8782f7
remove references to docker/conda and update accordingly
cwharris Feb 6, 2024
2b92d05
update mamba env update to use conda and libmamba
cwharris Feb 6, 2024
1b3e00f
styles
cwharris Feb 6, 2024
c10093e
fix line lengths
cwharris Feb 6, 2024
462e157
fix styles
cwharris Feb 6, 2024
5f97daa
disable pylint duplicate-code check
cwharris Feb 6, 2024
4a1af11
fix styles
cwharris Feb 6, 2024
702dca5
fix type in Dockerfile
cwharris Feb 6, 2024
c59a448
update environment files to fix previous commit error in another PR
cwharris Feb 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions conda/environments/runtime_cuda-121_arch-x86_64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This file is generated by `rapids-dependency-file-generator`.
# To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`.
channels:
- conda-forge
- huggingface
- rapidsai
- rapidsai-nightly
- nvidia
- nvidia/label/dev
- pytorch
- defaults
dependencies:
- appdirs
- click >=8
- datacompy=0.10
- dill=0.3.7
- elasticsearch==8.9.0
- feedparser=6.0.10
- grpcio=1.59
- mlflow=2.9.2
- networkx=2.8.8
- numpydoc=1.5
- nvtabular=23.08.00
- pip
- python-confluent-kafka>=1.9.2,<1.10.0a0
- python-graphviz
- python=3.10
- pytorch-cuda
- pytorch=*=*cuda*
- requests-cache=1.1
- scikit-learn=1.3.2
- sqlalchemy
- tqdm=4
- typing_utils=0.1
- watchdog=3.0
- websockets
- pip:
- databricks-connect
- milvus==2.3.5
- pymilvus==2.3.6
name: runtime_cuda-121_arch-x86_64
2 changes: 1 addition & 1 deletion dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ files:
- example-llm-vdb-upload

runtime:
output: none
output: conda
matrix:
cuda: ["12.1"]
arch: [x86_64]
Expand Down
27 changes: 16 additions & 11 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@

# Args used in FROM commands must come first
ARG FROM_IMAGE="nvidia/cuda"
ARG CUDA_MAJOR_VER=11
ARG CUDA_MINOR_VER=8
ARG CUDA_REV_VER=0
ARG CUDA_MAJOR_VER=12
ARG CUDA_MINOR_VER=1
ARG CUDA_REV_VER=1
ARG LINUX_DISTRO=ubuntu
ARG LINUX_VER=22.04

Expand Down Expand Up @@ -176,13 +176,13 @@ ARG CUDA_MINOR_VER
ARG CONDA_CHANNEL_ALIAS

# Copy the development dependencies file
COPY ${MORPHEUS_ROOT_HOST}/docker/conda/environments/cuda${CUDA_MAJOR_VER}.${CUDA_MINOR_VER}_dev.yml ./docker/conda/environments/
COPY ${MORPHEUS_ROOT_HOST}/docker/conda/environments/dev_cuda-${CUDA_MAJOR_VER}${CUDA_MINOR_VER}_arch-x86_64.yml ./docker/conda/environments/dev.yaml
cwharris marked this conversation as resolved.
Show resolved Hide resolved

# Update the morpheus environment
RUN --mount=type=cache,id=conda_pkgs,target=/opt/conda/pkgs,sharing=locked \
# Temp add channel_alias to get around conda 404 errors
conda config --env --set channel_alias ${CONDA_CHANNEL_ALIAS} &&\
/opt/conda/bin/mamba env update -n morpheus --file docker/conda/environments/cuda${CUDA_MAJOR_VER}.${CUDA_MINOR_VER}_dev.yml &&\
/opt/conda/bin/mamba env update -n morpheus --file docker/conda/environments/dev.yaml &&\
# Remove channel_alias to use the normal channel in the container
conda config --env --remove-key channel_alias

Expand Down Expand Up @@ -232,7 +232,7 @@ ARG MORPHEUS_ROOT_HOST
ARG CUDA_MAJOR_VER
ARG CUDA_MINOR_VER

COPY ${MORPHEUS_ROOT_HOST}/docker/conda/environments/cuda${CUDA_MAJOR_VER}.${CUDA_MINOR_VER}_runtime.yml ./docker/conda/environments/
COPY ${MORPHEUS_ROOT_HOST}/conda/environments/runtime_cuda-${CUDA_MAJOR_VER}${CUDA_MINOR_VER}_arch-x86_64.yaml ./conda/environments/runtime.yaml

# Mount Morpheus conda package build in `conda_bld_morpheus`
RUN --mount=type=bind,from=conda_bld_morpheus,source=/opt/conda/conda-bld,target=/opt/conda/conda-bld \
Expand All @@ -244,13 +244,17 @@ RUN --mount=type=bind,from=conda_bld_morpheus,source=/opt/conda/conda-bld,target
# Install morpheus
CONDA_ALWAYS_YES=true /opt/conda/bin/mamba install -n morpheus \
-c local \
-c conda-forge \
-c huggingface \
-c rapidsai \
-c nvidia/label/cuda-12.1.0 \
-c nvidia/label/dev \
-c rapidsai-nightly \
-c nvidia \
-c nvidia/label/dev \
-c pytorch \
-c conda-forge morpheus &&\
/opt/conda/bin/mamba env update -n morpheus --file docker/conda/environments/cuda${CUDA_MAJOR_VER}.${CUDA_MINOR_VER}_runtime.yml && \
-c defaults \
morpheus &&\

/opt/conda/bin/conda env update --solver=libmamba -n morpheus --file conda/environments/runtime.yaml && \
conda clean -afy

# Only copy specific files/folders over that are necessary for runtime
Expand All @@ -259,7 +263,8 @@ COPY "${MORPHEUS_ROOT_HOST}/docs" "./docs"
COPY "${MORPHEUS_ROOT_HOST}/examples" "./examples"
COPY "${MORPHEUS_ROOT_HOST}/models" "./models"
COPY "${MORPHEUS_ROOT_HOST}/scripts" "./scripts"
COPY ["${MORPHEUS_ROOT_HOST}/*.md", "${MORPHEUS_ROOT_HOST}/LICENSE", "./"]
COPY "${MORPHEUS_ROOT_HOST}/*.md" "./"
COPY "${MORPHEUS_ROOT_HOST}/LICENSE" "./"

# Use morpheus by default
CMD [ "morpheus" ]
Expand Down
6 changes: 3 additions & 3 deletions docker/build_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ DOCKER_TARGET=${DOCKER_TARGET:-"runtime"}
DOCKER_EXTRA_ARGS=${DOCKER_EXTRA_ARGS:-""}

# Build args
CUDA_MAJOR_VER=${CUDA_MAJOR_VER:-11}
CUDA_MINOR_VER=${CUDA_MINOR_VER:-8}
CUDA_REV_VER=${CUDA_REV_VER:-0}
CUDA_MAJOR_VER=${CUDA_MAJOR_VER:-12}
cwharris marked this conversation as resolved.
Show resolved Hide resolved
CUDA_MINOR_VER=${CUDA_MINOR_VER:-1}
CUDA_REV_VER=${CUDA_REV_VER:-1}
DOCA_ARTIFACTS_HOST=${DOCA_ARTIFACTS_HOST:-""}
DOCA_REPO_HOST=${DOCA_REPO_HOST:-""}
FROM_IMAGE=${FROM_IMAGE:-"nvidia/cuda"}
Expand Down
Loading