tini.installer 515 B

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