Skip to content

Commit

Permalink
Release: nydus-snapshotter naming fixes
Browse files Browse the repository at this point in the history
A few tweaks to pull the correct nydus-snapshotter tarball
are needed: the remote repo, the tarball suffix, the "linux"
string within the tarball name, and no need for amd64-x86_64
checking

Signed-off-by: Chris Porter <[email protected]>
  • Loading branch information
portersrc committed Apr 24, 2024
1 parent 6be3af2 commit 831dca3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions install/pre-install-payload/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,9 @@ ENV GOARCH=${ARCH}

RUN mkdir -p ${NODE_DESTINATION}/bin && \
apk add --no-cache curl && \
if [ "${ARCH}" = "amd64" ]; then ARCH=x86_64; fi && \
curl -fOL --progress-bar ${NYDUS_SNAPSHOTTER_REPO}/releases/download/${NYDUS_SNAPSHOTTER_VERSION}/nydus-snapshotter-${NYDUS_SNAPSHOTTER_VERSION}-${ARCH}.tgz && \
tar xvzpf nydus-snapshotter-${NYDUS_SNAPSHOTTER_VERSION}-${ARCH}.tgz -C / && \
rm nydus-snapshotter-${NYDUS_SNAPSHOTTER_VERSION}-${ARCH}.tgz && \
curl -fOL --progress-bar ${NYDUS_SNAPSHOTTER_REPO}/releases/download/${NYDUS_SNAPSHOTTER_VERSION}/nydus-snapshotter-${NYDUS_SNAPSHOTTER_VERSION}-linux-${ARCH}.tar.gz && \
tar xvzpf nydus-snapshotter-${NYDUS_SNAPSHOTTER_VERSION}-linux-${ARCH}.tar.gz -C / && \
rm nydus-snapshotter-${NYDUS_SNAPSHOTTER_VERSION}-linux-${ARCH}.tar.gz && \
mv /nydus-snapshotter/* ${NODE_DESTINATION}/bin/ && \
rm -rf /nydus-snapshotter

Expand Down
2 changes: 1 addition & 1 deletion install/pre-install-payload/payload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ official_containerd_repo=${official_containerd_repo:-"https://github.com/contain
official_containerd_version=${official_containerd_version:-"1.7.7"}
vfio_gpu_containerd_repo=${vfio_gpu_containerd_repo:-"https://github.com/confidential-containers/containerd"}
vfio_gpu_containerd_version=${vfio_gpu_containerd_version:-"1.7.0.0"}
nydus_snapshotter_repo=${nydus_snapshotter_repo:-"https://github.com/fidencio/nydus-snapshotter"}
nydus_snapshotter_repo=${nydus_snapshotter_repo:-"https://github.com/containerd/nydus-snapshotter"}
nydus_snapshotter_version=${nydus_snapshotter_version:-"v0.13.3-multiarch"}
containerd_dir="$(mktemp -d -t containerd-XXXXXXXXXX)/containerd"
extra_docker_manifest_flags="${extra_docker_manifest_flags:-}"
Expand Down

0 comments on commit 831dca3

Please sign in to comment.