-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add templates for NGC+ images * add image matrix * backport lots of improvements to scripts * remove tf2.8 images
- Loading branch information
1 parent
2196775
commit 03ae7d7
Showing
17 changed files
with
285 additions
and
197 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
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
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,24 @@ | ||
ARG BASE_IMAGE | ||
FROM ${BASE_IMAGE} | ||
|
||
# Copy various shell scripts that group dependencies for install | ||
COPY dockerfile_scripts /tmp/det_dockerfile_scripts | ||
|
||
ARG AWS_PLUGIN_INSTALL_DIR=/container/aws | ||
ARG WITH_AWS_TRACE | ||
ARG INTERNAL_AWS_DS | ||
ARG INTERNAL_AWS_PATH | ||
RUN if [ "$WITH_OFI" = "1" ]; then /tmp/det_dockerfile_scripts/build_aws.sh "$WITH_OFI" "$WITH_AWS_TRACE"; fi | ||
|
||
#USING OFI | ||
ARG AWS_LIB_DIR=${AWS_PLUGIN_INSTALL_DIR}/lib | ||
ENV LD_LIBRARY_PATH=${WITH_OFI:+$AWS_LIB_DIR:}$LD_LIBRARY_PATH | ||
|
||
# Set an entrypoint that can scrape up the host libfabric.so and then | ||
# run the user command. This is intended to enable performant execution | ||
# on non-IB systems that have a proprietary libfabric. | ||
RUN mkdir -p /container/bin && \ | ||
cp /tmp/det_dockerfile_scripts/scrape_libs.sh /container/bin | ||
ENTRYPOINT ["/container/bin/scrape_libs.sh"] | ||
|
||
RUN rm -r /tmp/* |
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,34 @@ | ||
ARG BASE_IMAGE | ||
FROM ${BASE_IMAGE} | ||
|
||
# NGC images contain user owned files in /usr/lib | ||
RUN chown root:root /usr/lib | ||
|
||
# Copy various shell scripts that group dependencies for install | ||
COPY dockerfile_scripts /tmp/det_dockerfile_scripts | ||
|
||
RUN /tmp/det_dockerfile_scripts/install_deb_packages.sh | ||
RUN /tmp/det_dockerfile_scripts/add_det_nobody_user.sh | ||
RUN /tmp/det_dockerfile_scripts/install_libnss_determined.sh | ||
|
||
# We uninstall these packages after installing. This ensures that we can | ||
# successfully install these packages into containers running as non-root. | ||
# `pip` does not uninstall dependencies, so we still have all the dependencies | ||
# installed. | ||
RUN python -m pip install determined && python -m pip uninstall -y determined | ||
|
||
RUN python -m pip install \ | ||
-r /tmp/det_dockerfile_scripts/additional-requirements-torch.txt \ | ||
-r /tmp/det_dockerfile_scripts/additional-requirements.txt \ | ||
-r /tmp/det_dockerfile_scripts/notebook-requirements.txt | ||
|
||
ENV JUPYTER_CONFIG_DIR=/run/determined/jupyter/config | ||
ENV JUPYTER_DATA_DIR=/run/determined/jupyter/data | ||
ENV JUPYTER_RUNTIME_DIR=/run/determined/jupyter/runtime | ||
|
||
RUN /tmp/det_dockerfile_scripts/install_google_cloud_sdk.sh | ||
|
||
ENV DEEPSPEED_PIP="deepspeed==0.13.0" | ||
RUN /tmp/det_dockerfile_scripts/install_deepspeed.sh | ||
|
||
RUN rm -r /tmp/* |
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,31 @@ | ||
ARG BASE_IMAGE | ||
FROM ${BASE_IMAGE} | ||
|
||
# NGC images contain user owned files in /usr/lib | ||
RUN chown root:root /usr/lib | ||
|
||
# Copy various shell scripts that group dependencies for install | ||
COPY dockerfile_scripts /tmp/det_dockerfile_scripts | ||
|
||
RUN /tmp/det_dockerfile_scripts/install_deb_packages.sh | ||
RUN /tmp/det_dockerfile_scripts/add_det_nobody_user.sh | ||
RUN /tmp/det_dockerfile_scripts/install_libnss_determined.sh | ||
|
||
# We uninstall these packages after installing. This ensures that we can | ||
# successfully install these packages into containers running as non-root. | ||
# `pip` does not uninstall dependencies, so we still have all the dependencies | ||
# installed. | ||
RUN python -m pip install determined && python -m pip uninstall -y determined | ||
|
||
RUN python -m pip install \ | ||
-r /tmp/det_dockerfile_scripts/additional-requirements-tf.txt \ | ||
-r /tmp/det_dockerfile_scripts/additional-requirements.txt \ | ||
-r /tmp/det_dockerfile_scripts/notebook-requirements.txt | ||
|
||
ENV JUPYTER_CONFIG_DIR=/run/determined/jupyter/config | ||
ENV JUPYTER_DATA_DIR=/run/determined/jupyter/data | ||
ENV JUPYTER_RUNTIME_DIR=/run/determined/jupyter/runtime | ||
|
||
RUN /tmp/det_dockerfile_scripts/install_google_cloud_sdk.sh | ||
|
||
RUN rm -r /tmp/* |
Oops, something went wrong.