Skip to content

Commit dab62e5

Browse files
authored
build: route py3-sdk Maven build through NVIDIA Artifactory via MAVEN_SETTINGS_FILE (#8863)
1 parent d23414b commit dab62e5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Dockerfile.sdk

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,12 @@ RUN cmake -DCMAKE_INSTALL_PREFIX=/workspace/install \
121121
-DTRITON_ENABLE_JAVA_HTTP=ON \
122122
-DTRITON_ENABLE_EXAMPLES=ON -DTRITON_ENABLE_TESTS=ON \
123123
-DTRITON_ENABLE_GPU=${TRITON_ENABLE_GPU} /workspace/client
124-
RUN cmake --build . -v --parallel --target cc-clients java-clients python-clients
124+
RUN --mount=type=secret,id=maven_settings,target=/root/.m2/settings.xml,required=false \
125+
cmake --build . -v --parallel --target cc-clients java-clients python-clients
125126

126127
# Install Java API Bindings
127-
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
128+
RUN --mount=type=secret,id=maven_settings,target=/root/.m2/settings.xml,required=false \
129+
if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
128130
source /workspace/client/src/java-api-bindings/scripts/install_dependencies_and_build.sh \
129131
--maven-version ${JAVA_BINDINGS_MAVEN_VERSION} \
130132
--core-tag ${TRITON_CORE_REPO_TAG} \

0 commit comments

Comments
 (0)