Skip to content

Commit

Permalink
chore: set platform local to docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilxTenfen committed Sep 2, 2024
1 parent 4bf9af9 commit 997de7c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contrib/images/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ BABYLON_FULL_PATH := $(shell git rev-parse --show-toplevel)
all: babylond cosmos-relayer

babylond: babylond-rmi
docker build --tag babylonlabs-io/babylond -f babylond/Dockerfile ${BABYLON_FULL_PATH}
docker build --tag babylonlabs-io/babylond -f babylond/Dockerfile ${BABYLON_FULL_PATH} --platform=local

babylond-e2e:
docker build --tag babylonlabs-io/babylond -f babylond/Dockerfile ${BABYLON_FULL_PATH} \
--build-arg BUILD_TAGS="e2e"
--platform=local --build-arg BUILD_TAGS="e2e"

babylond-rmi:
docker rmi babylonlabs-io/babylond 2>/dev/null; true
Expand All @@ -17,12 +17,12 @@ e2e-init-chain-rmi:
docker rmi babylonlabs-io/babylond-e2e-init-chain --force 2>/dev/null; true

e2e-init-chain:
docker build -t babylonlabs-io/babylond-e2e-init-chain --build-arg E2E_SCRIPT_NAME=chain --platform=linux/x86_64 \
docker build -t babylonlabs-io/babylond-e2e-init-chain --build-arg E2E_SCRIPT_NAME=chain --platform=local \
-f e2e-initialization/init.Dockerfile ${BABYLON_FULL_PATH}

cosmos-relayer: cosmos-relayer-rmi
docker build --tag babylonlabs-io/cosmos-relayer:${RELAYER_TAG} -f cosmos-relayer/Dockerfile \
${BABYLON_FULL_PATH}/contrib/images/cosmos-relayer
${BABYLON_FULL_PATH}/contrib/images/cosmos-relayer --platform=local
docker tag babylonlabs-io/cosmos-relayer:${RELAYER_TAG} babylonlabs-io/cosmos-relayer:latest

cosmos-relayer-rmi:
Expand Down

0 comments on commit 997de7c

Please sign in to comment.