Skip to content

Instantly share code, notes, and snippets.

@albertywu
Last active June 2, 2020 17:41
Show Gist options
  • Select an option

  • Save albertywu/5bd415d545340f11ba2b9095b18572ff to your computer and use it in GitHub Desktop.

Select an option

Save albertywu/5bd415d545340f11ba2b9095b18572ff to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# --- NORMAL-MODE BENCHMARKS ---
echo "--- web-code-base normal ---"
docker system prune --all --force
docker pull 027047743804.dkr.ecr.us-west-1.amazonaws.com/web-code-base@sha256:ddfb3a6aecf3fa9fbafceb600f5d670efed472196b0dc405fc23b897a2a100d1
time IMAGE="web-code-base:normal-build" docker-compose --file tools/ci/scripts/docker/docker-compose-base.yml build web-code-base
echo "--- web-code normal ---"
docker system prune --all --force
docker pull 027047743804.dkr.ecr.us-west-1.amazonaws.com/web-code-base@sha256:ddfb3a6aecf3fa9fbafceb600f5d670efed472196b0dc405fc23b897a2a100d1
time IMAGE="web-code:normal-build" docker-compose --file tools/ci/scripts/docker/docker-compose.yml build web-code
# --- BUILDKIT BENCHMARKS ---
echo "--- web-code-base buildkit ---"
docker system prune --all --force
docker pull 027047743804.dkr.ecr.us-west-1.amazonaws.com/web-code-base@sha256:ddfb3a6aecf3fa9fbafceb600f5d670efed472196b0dc405fc23b897a2a100d1
time COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 IMAGE="web-code-base:buildkit-build" docker-compose --file tools/ci/scripts/docker/docker-compose-base.yml build web-code-base
echo "--- web-code buildkit ---"
docker system prune --all --force
docker pull 027047743804.dkr.ecr.us-west-1.amazonaws.com/web-code-base@sha256:ddfb3a6aecf3fa9fbafceb600f5d670efed472196b0dc405fc23b897a2a100d1
time COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 IMAGE="web-code:buildkit-build" docker-compose --file tools/ci/scripts/docker/docker-compose.yml build web-code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment