-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request moby#36336 from cpuguy83/split_installers
Split binary installers/commit scripts
- Loading branch information
Showing
20 changed files
with
239 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/sh | ||
|
||
|
||
# containerd is also pinned in vendor.conf. When updating the binary | ||
# version you may also need to update the vendor version to pick up bug | ||
# fixes or new APIs. | ||
CONTAINERD_COMMIT=cfd04396dc68220d1cecbe686a6cc3aa5ce3667c # v1.0.2 | ||
|
||
install_containerd() { | ||
echo "Install containerd version $CONTAINERD_COMMIT" | ||
git clone https://github.com/containerd/containerd.git "$GOPATH/src/github.com/containerd/containerd" | ||
cd "$GOPATH/src/github.com/containerd/containerd" | ||
git checkout -q "$CONTAINERD_COMMIT" | ||
|
||
( | ||
|
||
if [ "$1" == "static" ]; then | ||
export BUILDTAGS='static_build netgo' | ||
export EXTRA_FLAGS='-buildmod pie' | ||
export EXTRA_LDFLAGS='-extldflags "-fno-PIC -static"' | ||
fi | ||
|
||
make | ||
) | ||
|
||
mkdir -p ${PREFIX} | ||
|
||
cp bin/containerd ${PREFIX}/docker-containerd | ||
cp bin/containerd-shim ${PREFIX}/docker-containerd-shim | ||
cp bin/ctr ${PREFIX}/docker-containerd-ctr | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/sh | ||
|
||
DOCKERCLI_CHANNEL=${DOCKERCLI_CHANNEL:-edge} | ||
DOCKERCLI_VERSION=${DOCKERCLI_VERSION:-17.06.0-ce} | ||
|
||
install_dockercli() { | ||
echo "Install docker/cli version $DOCKERCLI_VERSION from $DOCKERCLI_CHANNEL" | ||
|
||
arch=$(uname -m) | ||
# No official release of these platforms | ||
if [[ "$arch" != "x86_64" ]] && [[ "$arch" != "s390x" ]]; then | ||
build_dockercli | ||
return | ||
fi | ||
|
||
url=https://download.docker.com/linux/static | ||
curl -Ls $url/$DOCKERCLI_CHANNEL/$arch/docker-$DOCKERCLI_VERSION.tgz | \ | ||
tar -xz docker/docker | ||
mkdir -p ${PREFIX} | ||
mv docker/docker ${PREFIX}/ | ||
rmdir docker | ||
} | ||
|
||
build_dockercli() { | ||
git clone https://github.com/docker/docker-ce "$GOPATH/tmp/docker-ce" | ||
cd "$GOPATH/tmp/docker-ce" | ||
git checkout -q "v$DOCKERCLI_VERSION" | ||
mkdir -p "$GOPATH/src/github.com/docker" | ||
mv components/cli "$GOPATH/src/github.com/docker/cli" | ||
go build -buildmode=pie -o ${PREFIX}/docker github.com/docker/cli/cmd/docker | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
|
||
GOMETALINTER_COMMIT=bfcc1d6942136fd86eb6f1a6fb328de8398fbd80 | ||
|
||
install_gometalinter() { | ||
echo "Installing gometalinter version $GOMETALINTER_COMMIT" | ||
go get -d github.com/alecthomas/gometalinter | ||
cd "$GOPATH/src/github.com/alecthomas/gometalinter" | ||
git checkout -q "$GOMETALINTER_COMMIT" | ||
go build -buildmode=pie -o ${PREFIX}/gometalinter github.com/alecthomas/gometalinter | ||
GOBIN=${PREFIX} ${PREFIX}/gometalinter --install | ||
} |
Oops, something went wrong.