Skip to content

Commit

Permalink
cosmos-gravity-bridge relase artifacts for docker runner
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitryhil committed Sep 23, 2021
1 parent 9c0a264 commit 11fdaf7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 43 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ release/
/vendor/
/.idea/
*.iml
/tests/dockerfile/onomy.tar.gz
46 changes: 3 additions & 43 deletions deploy/single-node-runner-rinkeby/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@ RUN DEBIAN_FRONTEND="noninteractive" apt-get install --no-install-recommends -yq
tar \
git

# ------------------ clone repository ------------------
# ------------------ onomy chain ------------------

ARG ONOMY_DIR=/go/src/github.com/onomyprotocol/onomy/
# clone the repo
COPY . $ONOMY_DIR

# ------------------ onomy chain ------------------

# install golang
RUN curl https://dl.google.com/go/go1.16.4.linux-amd64.tar.gz --output go.tar.gz
RUN tar -C /usr/local -xzf go.tar.gz
Expand All @@ -30,48 +28,10 @@ RUN make build
# copy binary to bin
RUN cp onomyd /usr/bin/onomyd

# ------------------ gravity repo ------------------

ARG GRAVITY_DIR=/go/src/github.com/onomyprotocol/cosmos-gravity-bridge/
# clone the repo
RUN mkdir $GRAVITY_DIR
RUN git clone https://github.com/onomyprotocol/cosmos-gravity-bridge.git $GRAVITY_DIR

# ------------------ orchestrator ------------------

# install rust
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
# check cargo works
RUN cargo version

# build orchestrator artifact
WORKDIR $GRAVITY_DIR/orchestrator
RUN rustup target add x86_64-unknown-linux-musl
RUN apt-get install --no-install-recommends -yq musl-tools
RUN cargo build --target=x86_64-unknown-linux-musl --release --all
# copy binary to bin
RUN ls target/x86_64-unknown-linux-musl
RUN ls target/x86_64-unknown-linux-musl/release
RUN cp target/x86_64-unknown-linux-musl/release/gbt /usr/bin/gbt

# ------------------ contract-deployer ------------------

RUN apt-get install --no-install-recommends -yq python3 \
make \
g++

RUN curl -sL https://deb.nodesource.com/setup_15.x | bash -
RUN apt-get -y install nodejs

# build contract-deployer
WORKDIR $GRAVITY_DIR/solidity
RUN npm ci
RUN chmod -R +x scripts
RUN npm run typechain

# go to root home
WORKDIR /root/home
ADD https://github.com/onomyprotocol/cosmos-gravity-bridge/releases/download/v0.0.0-20210915184851/gbt /usr/bin/gbt
RUN chmod 777 /usr/bin/gbt

# ------------------ ethereum go (geth) ------------------
RUN add-apt-repository -y ppa:ethereum/ethereum
Expand Down
Binary file modified deploy/single-node-runner-rinkeby/client/linux/gbt
100755 → 100644
Binary file not shown.

0 comments on commit 11fdaf7

Please sign in to comment.