Skip to content

Commit df50c6c

Browse files
Merge pull request #374 from puneetmatharu/copy-security-md-into-docker-image
Add SECURITY.md to image
2 parents 15949e0 + b82958f commit df50c6c

6 files changed

Lines changed: 23 additions & 5 deletions

File tree

ML-Frameworks/pytorch-aarch64/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ where `YY` is the year, and `MM` the month of the increment.
88
## [unreleased]
99

1010
### Added
11+
- Adds `SECURITY.md` to built image.
1112

1213
### Changed
1314
- Updates ACL URL from [ML Platform](https://review.mlplatform.org/ml/ComputeLibrary) to [GitHub](https://github.com/ARM-software/ComputeLibrary.git).
@@ -18,9 +19,10 @@ where `YY` is the year, and `MM` the month of the increment.
1819
- ACL_HASH to 531a4968cecb7b4fc0a3b65482e2c524289e087e, from main, September 23rd.
1920
- TORCH_AO_HASH to 8e2ca35ea603349e71c2467e10fd371e34bf52bc, from main, September 23rd.
2021
- KLEIDIAI_HASH to bd2e6ae060014035e25bf4986be682762c446c2d, v1.14 from main.
21-
- Update torchvision from 0.23.0 to a nightly build, 0.25.0.dev20250923
22+
- Update torchvision from 0.23.0 to a nightly build, 0.25.0.dev20250923.
2223
- Change of flag name in `./build.sh` from `--force` to `--fresh`
2324
- Add `intx_packing_format="opaque_aten_kleidiai"` to `Int8DynamicActivationIntxWeightConfig` due to torchao API change
25+
- Updates `dockerize.sh` build to use BuildKit (to add extra build contexts).
2426

2527
### Removed
2628
- Removes WIP ComputeLibrary patch https://review.mlplatform.org/c/ml/ComputeLibrary/+/12818/1.

ML-Frameworks/pytorch-aarch64/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,13 @@ COPY bash_profile /home/$DOCKER_USER/.bash_profile
5757
RUN chown $DOCKER_USER:$DOCKER_USER /home/$DOCKER_USER/.bash_profile
5858

5959
# Add welcome message to warn about dev quality
60-
COPY welcome.txt /home/$DOCKER_USER/.
60+
COPY welcome.txt /home/$DOCKER_USER/
6161
RUN echo '[ ! -z "$TERM" -a -r /home/$DOCKER_USER/welcome.txt ] && cat /home/$DOCKER_USER/welcome.txt' >> /etc/bash.bashrc
6262
RUN echo 'export PATH="$HOME/.local/bin:$PATH"' >> /etc/bash.bashrc
6363

64+
# Grab the SECURITY.md from the root directory
65+
COPY --from=rootdir SECURITY.md /home/$DOCKER_USER/
66+
6467
# Move to userland
6568
WORKDIR /home/$DOCKER_USER
6669
USER $DOCKER_USER

ML-Frameworks/pytorch-aarch64/dockerize.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,12 @@ if ! [ -e "$1" ] || ! [ -e "$2" ]; then
3535
exit 1
3636
fi
3737

38-
docker build -t toolsolutions-pytorch:latest \
39-
--build-arg TORCH_WHEEL=$1 \
38+
docker buildx \
39+
build --load \
40+
-t toolsolutions-pytorch:latest \
41+
--build-context rootdir=../.. \
4042
--build-arg DOCKER_IMAGE_MIRROR \
43+
--build-arg TORCH_WHEEL=$1 \
4144
--build-arg TORCH_AO_WHEEL=$2 \
4245
--build-arg USERNAME=ubuntu \
4346
.

ML-Frameworks/tensorflow-aarch64/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ where `YY` is the year, and `MM` the month of the increment.
99

1010
### Added
1111
- Adds WIP patch to upgrade Compute Library to 52.4.0
12+
- Adds `SECURITY.md` to built image
1213

1314
### Changed
1415
- Updates TensorFLow hash to 6aa8fd07270293b918255af5988aef45b844c5b4 # from nightly, September 22nd
16+
- Updates `dockerize.sh` build to use BuildKit (to add extra build contexts)
1517

1618
### Removed
1719
- Removed previous patch updating oneDNN and Compute Library that has been merged upstream

ML-Frameworks/tensorflow-aarch64/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ COPY welcome.txt /home/$DOCKER_USER/.
5757
RUN echo '[ ! -z "$TERM" -a -r /home/$DOCKER_USER/welcome.txt ] && cat /home/$DOCKER_USER/welcome.txt' >> /etc/bash.bashrc
5858
RUN echo 'export PATH="$HOME/.local/bin:$PATH"' >> /etc/bash.bashrc
5959

60+
# Grab the SECURITY.md from the root directory
61+
COPY --from=rootdir SECURITY.md /home/$DOCKER_USER/
62+
6063
# Move to userland
6164
WORKDIR /home/$DOCKER_USER
6265
USER $DOCKER_USER

ML-Frameworks/tensorflow-aarch64/dockerize.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ if ! [ -e "$1" ]; then
3232
exit 1
3333
fi
3434

35-
docker build -t toolsolutions-tensorflow:latest \
35+
docker buildx \
36+
build --load \
37+
-t toolsolutions-tensorflow:latest \
38+
--build-context rootdir=../.. \
3639
--build-arg TENSORFLOW_WHEEL=$1 \
3740
.
41+
42+
[[ $* == *--build-only* ]] && exit 0
3843
docker run --rm -it toolsolutions-tensorflow:latest

0 commit comments

Comments
 (0)