Skip to content

Commit

Permalink
Merge pull request #41 from murraystevenson/slimContainer
Browse files Browse the repository at this point in the history
Prep 3.0.0 final release
  • Loading branch information
murraystevenson authored Apr 19, 2024
2 parents 392a80f + 73485a6 commit 65fc5ef
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 33 deletions.
38 changes: 8 additions & 30 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,10 @@
3.0.0a6
=======
3.0.0
=====

- Dockerfile : Removed `cuda-nsight-compute-11-8.x86_64`, `libcublas-devel-11-8-11.11.3.6-1.x86_64`, `sonar-scanner-4.8.0.2856-linux`, and various intermediate installation files to reduce container size.
- CI :
- Container image is now built with `podman` rather than `docker`.
- Container image is built with `--squash-all` in order to reduce overall container size.
- References to `docker.pkg.github.com` have been changed to `ghcr.io`.

3.0.0a5
=======

- Dockerfile : Set `OPTIX_ROOT_DIR` environment variable.

3.0.0a4
=======

- Dockerfile :
- Fixed `sphinx` incompatibility with automatically installed dependencies by installing specific versions of `sphinxcontrib` packages.

3.0.0a3
=======

- Dockerfile :
- Added `GAFFER_BUILD_ENVIRONMENT="gcc11"` environment variable.

3.0.0a2
=======

- Dockerfile :
- Set `WORKDIR` to `/`.

3.0.0a1
=======

- Dockerfile :
- Changed base image to `aswf/ci-base:2023.2`, changes from this image include :
- Builds are now performed on Rocky 8.8 with glibc 2.28.
Expand All @@ -50,6 +22,12 @@
- Removed installation of `lz4` and `lz4-devel` as we no longer build Appleseed.
- Updated `inkscape` to 1.3.2.
- Updated `scons` to 4.6.0.
- Set `WORKDIR` to `/`.
- Set `OPTIX_ROOT_DIR` environment variable.
- Added `GAFFER_BUILD_ENVIRONMENT="gcc11"` environment variable.
- Fixed `sphinx` incompatibility with automatically installed dependencies by installing specific versions of `sphinxcontrib` packages.
- Removed unnecessary packages provided by the `ci-base` image to reduce container size :
- `cuda-nsight-compute-11-8.x86_64`, `libcublas-devel-11-8-11.11.3.6-1.x86_64`, `sonar-scanner-4.8.0.2856-linux`, `libcublas-11-8`, `libnccl`, `libnccl-devel`, `libnpp-11-8`, `libnpp-devel-11-8`, `cuda-cupti-11-8` and various intermediate installation files.

2.1.1
=====
Expand Down
18 changes: 16 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,26 @@ RUN yum install -y 'dnf-command(versionlock)' && \
# `aswf/ci-base`, and we run out of disk space on GitHub Actions if our container
# is too big. A particular offender is CUDA, which comes with all sorts of
# bells and whistles we don't need, and is responsible for at least 5Gb of the
# total image size.
# total image size. We also remove much of the `ci-base` provided builds of LLVM
# and Boost. Removing these plus some additional CUDA packages brings the image
# size down to ~3.6GB.
rm -rf /usr/local/lib/clang && \
rm -f /usr/local/lib/libclang* && \
rm -f /usr/local/lib/libLLVM* && \
rm -f /usr/local/lib/libLTO* && \
rm -f /usr/local/lib/liblld* && \
rm -f /usr/local/lib/libboost* && \
rm -f /usr/local/bin/clang* && \
rm -f /usr/local/bin/ll* && \
rm -f /usr/local/bin/opt && \
rm -f /usr/local/bin/bugpoint && \
rm -rf /var/opt/sonar-scanner-4.8.0.2856-linux && \
rm -rf /tmp/downloads && \
dnf remove -y \
cuda-nsight-compute-11-8.x86_64 \
libcublas-devel-11-8-11.11.3.6-1.x86_64 && \
libcublas-devel-11-8-11.11.3.6-1.x86_64 \
libcublas-11-8 libnccl libnccl-devel \
libnpp-11-8 libnpp-devel-11-8 cuda-cupti-11-8 && \
dnf clean all && \
#
# Now we've installed all our packages, update yum-versionlock for all the
Expand Down
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
parser.add_argument(
"--docker-image-version",
dest = "dockerImageVersion",
default = "3.0.0a6",
default = "3.0.0",
help = "The Docker image tag to use for Docker builds."
)

Expand Down

0 comments on commit 65fc5ef

Please sign in to comment.