Skip to content

Commit

Permalink
Release v0.8.2 (#91)
Browse files Browse the repository at this point in the history
* chore: generate build artifacts for 0.8.2 release

* chore: add post-build artifact files for 0.8.2 release
  • Loading branch information
just4brown authored Oct 18, 2023
1 parent 6c629c1 commit d020447
Show file tree
Hide file tree
Showing 10 changed files with 902 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build_artifacts/v0/v0.8/v0.8.2/CHANGELOG-cpu.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Change log: 0.8.2(cpu)

## Upgrades:

Package | Previous Version | Current Version
---|---|---
python|3.8.17|3.8.18
boto3|1.28.62|1.28.63
8 changes: 8 additions & 0 deletions build_artifacts/v0/v0.8/v0.8.2/CHANGELOG-gpu.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Change log: 0.8.2(gpu)

## Upgrades:

Package | Previous Version | Current Version
---|---|---
python|3.8.17|3.8.18
boto3|1.28.62|1.28.63
64 changes: 64 additions & 0 deletions build_artifacts/v0/v0.8/v0.8.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
ARG TAG_FOR_BASE_MICROMAMBA_IMAGE
FROM mambaorg/micromamba:$TAG_FOR_BASE_MICROMAMBA_IMAGE

ARG CUDA_MAJOR_MINOR_VERSION=''
ARG ENV_IN_FILENAME
ARG ARG_BASED_ENV_IN_FILENAME

ARG NB_USER="sagemaker-user"
ARG NB_UID=1000
ARG NB_GID=100

USER root
RUN usermod "--login=${NB_USER}" "--home=/home/${NB_USER}" --move-home "-u ${NB_UID}" "${MAMBA_USER}" && \
groupmod "--new-name=${NB_USER}" --non-unique "-g ${NB_GID}" "${MAMBA_USER}" && \
# Update the expected value of MAMBA_USER for the
# _entrypoint.sh consistency check.
echo "${NB_USER}" > "/etc/arg_mamba_user" && \
:
ENV MAMBA_USER=$NB_USER

RUN apt-get update && \
apt-get install -y --no-install-recommends sudo gettext-base wget curl unzip git && \
# We just install tzdata below but leave default time zone as UTC. This helps packages like Pandas to function correctly.
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata awscli && \
chmod g+w /etc/passwd && \
echo "ALL ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
# Note that we do NOT run `rm -rf /var/lib/apt/lists/*` here. If we did, anyone building on top of our images will
# not be able to run any `apt-get install` commands and that would hamper customizability of the images.
:
RUN echo "source /usr/local/bin/_activate_current_env.sh" | tee --append /etc/profile

USER $MAMBA_USER
COPY --chown=$MAMBA_USER:$MAMBA_USER $ENV_IN_FILENAME *.in /tmp/

# Make sure that $ENV_IN_FILENAME has a newline at the end before the `tee` command runs. Otherwise, nasty things
# will happen.
RUN if [[ -z $ARG_BASED_ENV_IN_FILENAME ]] ; \
then echo 'No ARG_BASED_ENV_IN_FILENAME passed' ; \
else envsubst < /tmp/$ARG_BASED_ENV_IN_FILENAME | tee --append /tmp/$ENV_IN_FILENAME ; \
fi

ARG CONDA_OVERRIDE_CUDA=$CUDA_MAJOR_MINOR_VERSION
RUN micromamba install -y --name base --file /tmp/$ENV_IN_FILENAME && \
micromamba clean --all --yes --force-pkgs-dirs && \
rm -rf /tmp/*.in

ARG MAMBA_DOCKERFILE_ACTIVATE=1
RUN sudo ln -s $(which python3) /usr/bin/python

USER root
RUN HOME_DIR="/home/${NB_USER}/licenses" \
&& mkdir -p ${HOME_DIR} \
&& curl -o ${HOME_DIR}/oss_compliance.zip https://aws-dlinfra-utilities.s3.amazonaws.com/oss_compliance.zip \
&& unzip ${HOME_DIR}/oss_compliance.zip -d ${HOME_DIR}/ \
&& cp ${HOME_DIR}/oss_compliance/test/testOSSCompliance /usr/local/bin/testOSSCompliance \
&& chmod +x /usr/local/bin/testOSSCompliance \
&& chmod +x ${HOME_DIR}/oss_compliance/generate_oss_compliance.sh \
&& ${HOME_DIR}/oss_compliance/generate_oss_compliance.sh ${HOME_DIR} python \
&& rm -rf ${HOME_DIR}/oss_compliance*

USER $MAMBA_USER
ENV PATH="/opt/conda/bin:/opt/conda/condabin:$PATH"
WORKDIR "/home/${NB_USER}"
ENV SHELL=/bin/bash
25 changes: 25 additions & 0 deletions build_artifacts/v0/v0.8/v0.8.2/RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Release notes: 0.8.2

Package | gpu| cpu
---|---|---
python|3.8.18|3.8.18
boto3|1.28.63|1.28.63
conda|23.9.0|23.9.0
numpy|1.24.4|1.24.4
ipython|8.12.2|8.12.2
ipywidgets|8.1.1|8.1.1
scipy|1.10.1|1.10.1
jinja2|3.1.2|3.1.2
jupyterlab|3.6.6|3.6.6
keras|2.12.0|2.12.0
matplotlib|3.7.3|3.7.3
pandas|2.0.3|2.0.3
pip|23.2.1|23.2.1
scikit-learn|1.3.1|1.3.1
py-xgboost-gpu|1.7.6|
pytorch-gpu|2.0.0|
sagemaker-python-sdk|2.189.0|2.189.0
tensorflow|2.12.1|2.12.1
torchvision|0.15.2|0.15.2
py-xgboost-cpu| |1.7.6
pytorch| |2.0.0
20 changes: 20 additions & 0 deletions build_artifacts/v0/v0.8/v0.8.2/cpu.env.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This file is auto-generated.
conda-forge::pytorch[version='>=2.0.0,<2.1.0']
conda-forge::tensorflow[version='>=2.12.1,<2.13.0']
conda-forge::python[version='>=3.8.17,<3.9.0']
conda-forge::pip[version='>=23.2.1,<23.3.0']
conda-forge::torchvision[version='>=0.15.2,<0.16.0']
conda-forge::numpy[version='>=1.24.4,<1.25.0']
conda-forge::pandas[version='>=2.0.3,<2.1.0']
conda-forge::scikit-learn[version='>=1.3.1,<1.4.0']
conda-forge::jinja2[version='>=3.1.2,<3.2.0']
conda-forge::matplotlib[version='>=3.7.3,<3.8.0']
conda-forge::ipython[version='>=8.12.2,<8.13.0']
conda-forge::scipy[version='>=1.10.1,<1.11.0']
conda-forge::keras[version='>=2.12.0,<2.13.0']
conda-forge::py-xgboost-cpu[version='>=1.7.6,<1.8.0']
conda-forge::jupyterlab[version='>=3.6.6,<3.7.0']
conda-forge::ipywidgets[version='>=8.1.1,<8.2.0']
conda-forge::conda[version='>=23.9.0,<23.10.0']
conda-forge::boto3[version='>=1.28.62,<1.29.0']
conda-forge::sagemaker-python-sdk[version='>=2.189.0,<2.190.0']
Loading

0 comments on commit d020447

Please sign in to comment.