Skip to content

Commit

Permalink
feat: add 'imgcrypt' package
Browse files Browse the repository at this point in the history
See https://github.com/containerd/imgcrypt.git

It make possible to decrypt images

Signed-off-by: Serge Logvinov <[email protected]>
  • Loading branch information
sergelogvinov committed Aug 6, 2021
1 parent 0c011c0 commit 5ab3ce2
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ COMMON_ARGS += --platform=$(PLATFORM)
empty :=
space = $(empty) $(empty)

TARGETS = ca-certificates cni containerd cryptsetup dosfstools eudev fhs grub ipmitool iptables ipxe kernel kmod libaio libjson-c liblzma libpopt libressl libseccomp linux-firmware lvm2 musl open-iscsi open-isns raspberrypi-firmware runc socat syslinux u-boot util-linux xfsprogs
TARGETS = ca-certificates cni containerd imgcrypt cryptsetup dosfstools eudev fhs grub ipmitool iptables ipxe kernel kmod libaio libjson-c liblzma libpopt libressl libseccomp linux-firmware lvm2 musl open-iscsi open-isns raspberrypi-firmware runc socat syslinux u-boot util-linux xfsprogs

all: $(TARGETS) ## Builds all known pkgs.

Expand Down
31 changes: 31 additions & 0 deletions imgcrypt/pkg.yaml
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.1.tar.gz
destination: imgcrypt.tar.gz
sha256: 13ec4d41e870ac8e3d2ec407bc8694379a8cd4b81c958f61f6f24efd7df88c64
sha512: 626e2689c1b3efbc81d2697a83b985f92a8adb08eae8547a7f45d39a46b1bd4d020adb0728bec86fcffd29602ef38547a8d4f1441e1437ec04e8b5964821adcd
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: /

0 comments on commit 5ab3ce2

Please sign in to comment.