mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
34f4729bc0
eg.
$ DOCKERD_ROOTLESS_ROOTLESSKIT_FLAGS="-p 0.0.0.0:2376:2376/tcp" \
dockerd-rootless.sh --experimental \
-H tcp://0.0.0.0:2376 \
--tlsverify --tlscacert=ca.pem --tlscert=cert.pem --tlskey=key.pem
This commit bumps up RootlessKit from v0.4.1 to v0.6.0:
27a0c7a248...2fcff6ceae
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
36 lines
926 B
Bash
Executable file
36 lines
926 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# v0.6.0
|
|
ROOTLESSKIT_COMMIT=2fcff6ceae968a1d895e6205e5154b107247356f
|
|
|
|
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="-buildmode=pie"
|
|
_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"
|
|
git checkout -q "$ROOTLESSKIT_COMMIT"
|
|
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
|
|
}
|