Skip to content

Commit

Permalink
Enable docker BuildKit in scripts
Browse files Browse the repository at this point in the history
Set DOCKER_BUILDKIT=1 and COMPOSE_DOCKER_CLI_BUILD=1 envs in scripts. Also use sha to refer to docker frontend image.
  • Loading branch information
georgysavva committed Mar 17, 2021
1 parent fdbe5e1 commit 36f8a67
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# syntax = docker/dockerfile:1.2
# syntax = docker/dockerfile@sha256:6ce32b7af840de740a21ba297f7d1c31e0f1eb0d6b03c0efc03ae0cca9c8fd2a
# Use Docker fronted docker/dockerfile:1.2.1 to enable BuildKit features.

############################
# Build
############################
Expand Down
2 changes: 2 additions & 0 deletions tools/docker-network/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ fi
REPLICAS=$1
GRAFANA=${2:-0}

DOCKER_BUILDKIT=1
COMPOSE_DOCKER_CLI_BUILD=1
echo "Build GoShimmer"
docker-compose -f builder/docker-compose.builder.yml up --abort-on-container-exit --exit-code-from builder

Expand Down
2 changes: 2 additions & 0 deletions tools/integration-tests/runTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

TEST_NAMES='autopeering common drng message value consensus faucet syncbeacon mana'

DOCKER_BUILDKIT=1
COMPOSE_DOCKER_CLI_BUILD=1
echo "Build GoShimmer image"
docker build -t iotaledger/goshimmer ../../.

Expand Down

0 comments on commit 36f8a67

Please sign in to comment.