-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See https://github.com/containerd/imgcrypt.git It make possible to decrypt images Signed-off-by: Serge Logvinov <[email protected]>
- Loading branch information
1 parent
740da24
commit d98be92
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: imgcrypt | ||
variant: scratch | ||
shell: /toolchain/bin/bash | ||
dependencies: | ||
- stage: base | ||
- stage: ca-certificates | ||
steps: | ||
- sources: | ||
# sync with version and revision in build | ||
- url: https://github.com/containerd/imgcrypt/archive/refs/tags/v1.1.2.tar.gz | ||
destination: imgcrypt.tar.gz | ||
sha256: 0be667c07f3e1f5a52be841e667ffb8ad80b289ce9115795affbefa6c6dcf261 | ||
sha512: 35d50a02ddad63444465f9279af24115027dc6c5f409a411d4fc26d0cd6a0dc57e26314e7f7fa8ce57eee2057a79b1d2001aa156a7b671bf4848667f70eb63c3 | ||
env: | ||
GOPATH: /go | ||
prepare: | ||
- | | ||
mkdir -p ${GOPATH}/src/ | ||
tar -xzf imgcrypt.tar.gz --strip-components=1 -C ${GOPATH}/src/ | ||
build: | ||
- | | ||
export PATH=${PATH}:${TOOLCHAIN}/go/bin | ||
cd ${GOPATH}/src/ | ||
make bin/ctd-decoder VERSION=v1.1.1 | ||
install: | ||
- | | ||
mkdir -p /rootfs/bin | ||
mv ${GOPATH}/src/bin/ctd-decoder /rootfs/bin | ||
finalize: | ||
- from: /rootfs | ||
to: / |