forked from cosmos/relayer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
205 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM golang:1.21-alpine AS builder | ||
|
||
WORKDIR /opt/ | ||
|
||
RUN set -eux; apk add --no-cache ca-certificates build-base git linux-headers | ||
|
||
RUN git clone https://github.com/Stride-Labs/v4-chain.git \ | ||
&& cd v4-chain/protocol \ | ||
&& git checkout fafd3a9e2083180d7f7809f5080897e714e52bec | ||
|
||
WORKDIR /opt/v4-chain/protocol | ||
|
||
RUN make build | ||
|
||
FROM alpine:3.16 | ||
COPY --from=builder /opt/v4-chain/protocol/build/dydxprotocold /usr/local/bin/ | ||
RUN apk add bash vim \ | ||
&& addgroup -g 1000 dydx \ | ||
&& adduser -S -h /var/cosmos-chain/dydx -D dydx -u 1000 -G dydx | ||
|
||
USER 1000 | ||
WORKDIR /var/cosmos-chain/dydx | ||
|
||
EXPOSE 26657 26656 1317 9090 | ||
|
||
CMD ["dydxprotocold", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
build-docker: | ||
docker build --tag stride:dydx-interchain . | ||
|
||
test: | ||
go test -timeout 15m -run ^TestScenarioStrideICAandICQ$$ github.com/cosmos/relayer/v2/interchaintest/stride -race -v -count=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.