Skip to content

Commit

Permalink
fix in scirpt not found error
Browse files Browse the repository at this point in the history
in paketo image bash is not installed
add mkdir, sha256sum, sha1sum

Signed-off-by: Rui Yang <[email protected]>
  • Loading branch information
Rui Yang committed Jul 3, 2023
1 parent 630ab67 commit da4c0ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ FROM ${base_image} AS resource
USER root

COPY --from=busybox:uclibc /bin/mktemp /bin/
COPY --from=busybox:uclibc /bin/mkdir /bin/
COPY --from=busybox:uclibc /bin/sha256sum /bin/
COPY --from=busybox:uclibc /bin/sha1sum /bin/
COPY --from=stedolan/jq /usr/local/bin/jq /bin/
COPY --from=tarampampam/curl /bin/curl /bin/

Expand Down
6 changes: 3 additions & 3 deletions assets/in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
# vim: set ft=sh

set -e
Expand Down Expand Up @@ -61,14 +61,14 @@ if ! [ "$sha256" = "null" ]; then
fi

if [ "$fetch_tarball" = "true" ]; then
pushd $destination >/dev/null
( cd $destination
curl --retry 5 --fail -L "$url" -o release.tgz
if [ "$sha256" = "null" ]; then
echo "$sha1 release.tgz" | sha1sum -c -
else
echo "$sha256 release.tgz" | sha256sum -c -
fi
popd >/dev/null
)
fi

jq -n '{
Expand Down

0 comments on commit da4c0ff

Please sign in to comment.