b35a1707e3
The golangci-lint, gotestsum, shfmt, and vndr utilities should generally
be ok to be pinned by version instead of a specific sha. Also rename
the corresponding env-vars / build-args accordingly:
- GOLANGCI_LINT_COMMIT -> GOLANGCI_LINT_VERSION
- GOTESTSUM_COMMIT -> GOTESTSUM_VERSION
- SHFMT_COMMIT -> SHFMT_VERSION
- VNDR_COMMIT -> VNDR_VERSION
- CONTAINERD_COMMIT -> CONTAINERD_VERSION
- RUNC_COMMIT -> RUNC_VERSION
- ROOTLESS_COMMIT -> ROOTLESS_VERSION
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit a7a7c732c0
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
17 lines
515 B
Bash
Executable file
17 lines
515 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# TINI_VERSION specifies the version of tini (docker-init) to build, and install
|
|
# from the https://github.com/krallin/tini repository. This binary is used
|
|
# when starting containers with the `--init` option.
|
|
: "${TINI_VERSION:=v0.19.0}"
|
|
|
|
install_tini() {
|
|
echo "Install tini version $TINI_VERSION"
|
|
git clone https://github.com/krallin/tini.git "$GOPATH/tini"
|
|
cd "$GOPATH/tini"
|
|
git checkout -q "$TINI_VERSION"
|
|
cmake .
|
|
make tini-static
|
|
mkdir -p "${PREFIX}"
|
|
cp tini-static "${PREFIX}/docker-init"
|
|
}
|