Skip to content

Commit 69b0f0b

Browse files
committed
[no-relnote] Update release scripts for distroless
Signed-off-by: Evan Lezar <elezar@nvidia.com>
1 parent 7abf5fa commit 69b0f0b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

hack/pull-packages.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ docker run --rm \
5353
-v $(pwd):$(pwd) \
5454
-w $(pwd) \
5555
-u $(id -u):$(id -g) \
56-
--entrypoint="bash" \
56+
--entrypoint="sh" \
5757
${IMAGE} \
58-
-c "cp --preserve=timestamps -R /artifacts/* ${DIST_DIR}"
58+
-c "cp -p -R /artifacts/* ${DIST_DIR}"

scripts/extract-packages.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ function copy-file() {
7070
-v "$(pwd):$(pwd)" \
7171
-w "$(pwd)" \
7272
-u "$(id -u):$(id -g)" \
73-
--entrypoint="bash" \
73+
--entrypoint="sh" \
7474
"${image}" \
75-
-c "cp ${path_in_image} ${path_on_host}"
75+
-c "cp -p ${path_in_image} ${path_on_host}"
7676
fi
7777
}
7878

scripts/utils.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ function copy_file() {
9696
-v "$(pwd):$(pwd)" \
9797
-w "$(pwd)" \
9898
-u "$(id -u):$(id -g)" \
99-
--entrypoint="bash" \
99+
--entrypoint="sh" \
100100
"${image}" \
101-
-c "cp ${path_in_image} ${path_on_host}"
101+
-c "cp -p ${path_in_image} ${path_on_host}"
102102
fi
103103
}
104104

0 commit comments

Comments
 (0)