mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
e32ae1973a
v0.13.1 - Refactor `ParsePortSpec` to handle IPv6 addresses, and improve validation v0.13.0 - `rootlesskit --pidns`: fix propagating exit status - Support cgroup2 evacuation, e.g., `systemd-run -p Delegate=yes --user -t rootlesskit --cgroupns --pidns --evacuate-cgroup2=evac --net=slirp4netns bash` v0.12.0 - Port forwarding API now supports setting `ChildIP` - The `vendor` directory is no longer included in this repo. Run `go mod vendor` if you need Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
37 lines
978 B
Bash
Executable file
37 lines
978 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# v0.13.1
|
|
: "${ROOTLESSKIT_COMMIT:=5c30c9c2586add2ad659132990fdc230f05035fa}"
|
|
|
|
install_rootlesskit() {
|
|
case "$1" in
|
|
"dynamic")
|
|
install_rootlesskit_dynamic
|
|
return
|
|
;;
|
|
"")
|
|
export CGO_ENABLED=0
|
|
_install_rootlesskit
|
|
;;
|
|
*)
|
|
echo 'Usage: $0 [dynamic]'
|
|
;;
|
|
esac
|
|
}
|
|
|
|
install_rootlesskit_dynamic() {
|
|
export ROOTLESSKIT_LDFLAGS="-linkmode=external" install_rootlesskit
|
|
export BUILD_MODE=${GO_BUILDMODE}
|
|
_install_rootlesskit
|
|
}
|
|
|
|
_install_rootlesskit() (
|
|
echo "Install rootlesskit version $ROOTLESSKIT_COMMIT"
|
|
git clone https://github.com/rootless-containers/rootlesskit.git "$GOPATH/src/github.com/rootless-containers/rootlesskit"
|
|
cd "$GOPATH/src/github.com/rootless-containers/rootlesskit" || exit 1
|
|
git checkout -q "$ROOTLESSKIT_COMMIT"
|
|
export GO111MODULE=on
|
|
for f in rootlesskit rootlesskit-docker-proxy; do
|
|
go build $BUILD_MODE -ldflags="$ROOTLESSKIT_LDFLAGS" -o "${PREFIX}/$f" github.com/rootless-containers/rootlesskit/cmd/$f
|
|
done
|
|
)
|