mirror of https://github.com/docker/compose.git
19 lines
527 B
Bash
Executable File
19 lines
527 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
./script/clean
|
|
|
|
DOCKER_COMPOSE_GITSHA="$(script/build/write-git-sha)"
|
|
TAG="docker/compose:tmp-glibc-linux-binary-${DOCKER_COMPOSE_GITSHA}"
|
|
|
|
docker build -t "${TAG}" . \
|
|
--build-arg BUILD_PLATFORM=debian \
|
|
--build-arg GIT_COMMIT="${DOCKER_COMPOSE_GITSHA}"
|
|
TMP_CONTAINER=$(docker create "${TAG}")
|
|
mkdir -p dist
|
|
ARCH=$(uname -m)
|
|
docker cp "${TMP_CONTAINER}":/usr/local/bin/docker-compose "dist/docker-compose-Linux-${ARCH}"
|
|
docker container rm -f "${TMP_CONTAINER}"
|
|
docker image rm -f "${TAG}"
|