cri-cni-release: add imgcrypt binaries (v1.1.0)
Add `ctd-decoder` and `ctr-enc`. Close issue 5265 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
parent
85041ffe58
commit
92ea98eda5
1
Makefile
1
Makefile
@ -282,6 +282,7 @@ install-cri-deps: $(BINARIES)
|
||||
DESTDIR=$(CRIDIR) script/setup/install-runc
|
||||
DESTDIR=$(CRIDIR) script/setup/install-cni
|
||||
DESTDIR=$(CRIDIR) script/setup/install-critools
|
||||
DESTDIR=$(CRIDIR) script/setup/install-imgcrypt
|
||||
|
||||
@install -d $(CRIDIR)/bin
|
||||
@install $(BINARIES) $(CRIDIR)/bin
|
||||
|
1
script/setup/imgcrypt-version
Normal file
1
script/setup/imgcrypt-version
Normal file
@ -0,0 +1 @@
|
||||
v1.1.0
|
35
script/setup/install-imgcrypt
Executable file
35
script/setup/install-imgcrypt
Executable file
@ -0,0 +1,35 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright The containerd Authors.
|
||||
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
#
|
||||
# Builds and installs imgcrypt including ctd-decoder and ctr-enc
|
||||
# to /usr/local/bin.
|
||||
#
|
||||
set -eu -o pipefail
|
||||
|
||||
script_dir="$(cd -- "$(dirname -- "$0")" > /dev/null 2>&1; pwd -P)"
|
||||
|
||||
: "${IMGCRYPT_COMMIT:=$(cat "${script_dir}/imgcrypt-version")}"
|
||||
|
||||
TMPROOT=$(mktemp -d)
|
||||
git clone https://github.com/containerd/imgcrypt.git "${TMPROOT}"/imgcrypt
|
||||
pushd "${TMPROOT}"/imgcrypt
|
||||
git checkout "${IMGCRYPT_COMMIT}"
|
||||
make
|
||||
make install -e DESTDIR="${DESTDIR}/usr/local"
|
||||
|
||||
popd
|
||||
rm -fR "${TMPROOT}"
|
Loading…
Reference in New Issue
Block a user