mirror of
https://github.com/docker/cli.git
synced 2025-08-29 00:47:54 +03:00
That is, the helper to be used from the plugin's `main`. Also add a `helloworld` plugin example and build integration. Signed-off-by: Ian Campbell <ijc@docker.com>
19 lines
353 B
Bash
Executable File
19 lines
353 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Build a static binary for the host OS/ARCH
|
|
#
|
|
|
|
set -eu -o pipefail
|
|
|
|
source ./scripts/build/.variables
|
|
|
|
export CGO_ENABLED=1
|
|
export GOOS=darwin
|
|
export GOARCH=amd64
|
|
export CC=o64-clang
|
|
export CXX=o64-clang++
|
|
export LDFLAGS="$LDFLAGS -linkmode external -s"
|
|
export LDFLAGS_STATIC_DOCKER='-extld='${CC}
|
|
|
|
source ./scripts/build/plugins
|