forked from siderolabs/tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`img` allows to build docker images inside the buildkit context which will be used in Talos build to build app container images inside buildkit, making sure buildkit is able to track all the dependencies. Signed-off-by: Andrey Smirnov <[email protected]>
- Loading branch information
Showing
5 changed files
with
72 additions
and
0 deletions.
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
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,40 @@ | ||
name: img | ||
dependencies: | ||
- stage: base | ||
- stage: ca-certificates | ||
- stage: golang | ||
- stage: make | ||
- stage: git | ||
- stage: pkg-config | ||
- stage: libseccomp | ||
steps: | ||
- env: | ||
GO111MODULE: off | ||
GOPATH: /go | ||
PKGPATH: src/github.com/genuinetools/img | ||
CGO_ENABLED: "1" | ||
sources: | ||
- url: https://github.com/genuinetools/img/archive/9856fcb98e30a8152a7f5f1445bb3ecc11598e75.tar.gz | ||
destination: img.tar.gz | ||
sha256: 73756b8d6d27d665ceeac8ae06678be477c53a832db2e2e24171672e46811442 | ||
sha512: bd18a8a83c6f99d63f7e520660ac772cbe80cc2281b71a18f71f447e8f6018f17c31c34143c7d7138e18b8d97a1ff6f70eb1b22f153b962f5ae2ba40778ea182 | ||
prepare: | ||
- | | ||
mkdir -p ${GOPATH}/${PKGPATH} | ||
tar -xzf img.tar.gz --strip-components=1 -C ${GOPATH}/${PKGPATH} | ||
build: | ||
- | | ||
export PATH=${GOPATH}/bin:${TOOLCHAIN}/go/bin:${PATH} | ||
cd ${GOPATH}/${PKGPATH} | ||
go get github.com/go-bindata/go-bindata/... | ||
make | ||
install: | ||
- | | ||
cd ${GOPATH}/${PKGPATH} | ||
export PATH=${GOPATH}/bin:${TOOLCHAIN}/go/bin:${PATH} | ||
make install | ||
mkdir -p /rootfs${TOOLCHAIN}/bin | ||
mv ${GOPATH}/bin/img /rootfs${TOOLCHAIN}/bin | ||
finalize: | ||
- from: /rootfs | ||
to: / |
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,29 @@ | ||
name: libseccomp | ||
dependencies: | ||
- stage: base | ||
steps: | ||
- sources: | ||
- url: https://github.com/seccomp/libseccomp/releases/download/v2.4.2/libseccomp-2.4.2.tar.gz | ||
destination: libseccomp.tar.gz | ||
sha256: b54f27b53884caacc932e75e6b44304ac83586e2abe7a83eca6daecc5440585b | ||
sha512: 375a3c7c658be6a08b9bb30963e10bb49e8e066119e0be6d3d97faac3db18b8e2c6938d8b5d3874b2f5331ec8295170112fbae83b5a3b5a5bebc0d6705bdfdbb | ||
prepare: | ||
- | | ||
tar -xzf libseccomp.tar.gz --strip-components=1 | ||
mkdir build | ||
cd build | ||
../configure \ | ||
--prefix=/${TOOLCHAIN} | ||
build: | ||
- | | ||
cd build | ||
make -j $(nproc) | ||
install: | ||
- | | ||
cd build | ||
make install DESTDIR=/rootfs | ||
finalize: | ||
- from: /rootfs | ||
to: / |
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