github.com/Heebron/moby@v0.0.0-20221111184709-6eab4f55faf7/hack/dockerfile/install/tini.installer (about) 1 #!/bin/sh 2 3 # TINI_VERSION specifies the version of tini (docker-init) to build, and install 4 # from the https://github.com/krallin/tini repository. This binary is used 5 # when starting containers with the `--init` option. 6 : "${TINI_VERSION:=v0.19.0}" 7 8 install_tini() { 9 echo "Install tini version $TINI_VERSION" 10 git clone https://github.com/krallin/tini.git "$GOPATH/tini" 11 cd "$GOPATH/tini" 12 git checkout -q "$TINI_VERSION" 13 cmake . 14 make tini-static 15 mkdir -p "${PREFIX}" 16 cp tini-static "${PREFIX}/docker-init" 17 }