Skip to content

Commit

Permalink
Revert to using babylon-sdk clone / checkout during ibcsim-bcd build
Browse files Browse the repository at this point in the history
Use the sdk contracts for proper versioning
  • Loading branch information
maurolacy committed Nov 26, 2024
1 parent 606e2d6 commit bc7e89a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
5 changes: 1 addition & 4 deletions contrib/images/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ cosmos-relayer-rmi:
docker rmi babylonlabs-io/cosmos-relayer 2>/dev/null; true

build-ibcsim-bcd:
cp -a $(BABYLON_FULL_PATH)/babylon-sdk/ $(BABYLON_FULL_PATH)/contrib/images/ibcsim-bcd
docker build --tag babylonlabs-io/ibcsim-bcd -f ibcsim-bcd/Dockerfile \
$(BABYLON_FULL_PATH)/contrib/images/ibcsim-bcd
rm -rf $(BABYLON_FULL_PATH)/contrib/images/ibcsim-bcd/babylon-sdk
docker build --tag babylonlabs-io/ibcsim-bcd -f ibcsim-bcd/Dockerfile ${BABYLON_FULL_PATH}

ibcsim-bcd-rmi:
docker rmi babylonlabs-io/ibcsim-bcd 2>/dev/null; true
Expand Down
14 changes: 8 additions & 6 deletions contrib/images/ibcsim-bcd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,20 @@ ENV PATH /usr/local/go/bin:$PATH
ENV GOPATH /go
ENV PATH $GOPATH/bin:$PATH

WORKDIR /work

ENV GO111MODULE on
ENV RELAYER_TAG v2.5.2
ENV BABYLON_SDK_TAG v0.6.0-rc.0

# Install the relayer
RUN git clone https://github.com/cosmos/relayer.git
RUN cd relayer && git fetch origin && git checkout ${RELAYER_TAG} && make install && cd -

# Install bcd
ADD babylon-sdk /work/babylon-sdk
RUN cd babylon-sdk && make install && cd -
RUN git clone https://github.com/babylonlabs-io/babylon-sdk.git && \
cd babylon-sdk && \
git checkout ${BABYLON_SDK_TAG} && \
make install && \
cd -

FROM debian:bullseye-slim AS run

Expand All @@ -49,8 +51,8 @@ COPY --from=build-env /go/bin/rly /usr/bin/rly
COPY --from=build-env /go/bin/bcd /usr/bin/bcd

WORKDIR /ibcsim-bcd
COPY wrapper.sh /ibcsim-bcd/wrapper.sh
COPY setup-bcd.sh /ibcsim-bcd/setup-bcd.sh
COPY contrib/images/ibcsim-bcd/wrapper.sh /ibcsim-bcd/wrapper.sh
COPY contrib/images/ibcsim-bcd/setup-bcd.sh /ibcsim-bcd/setup-bcd.sh
COPY --from=build-env /work/babylon-sdk/tests/testdata/babylon_contract.wasm /ibcsim-bcd/babylon_contract.wasm
COPY --from=build-env /work/babylon-sdk/tests/testdata/btc_staking.wasm /ibcsim-bcd/btc_staking.wasm
COPY --from=build-env /work/babylon-sdk/tests/testdata/btc_finality.wasm /ibcsim-bcd/btc_finality.wasm
Expand Down

0 comments on commit bc7e89a

Please sign in to comment.