Polymer With Docker

Use template

git clone repomu
cd repomu
cp .env.example .env 
nano .env

save this code on template with name dockerfile

ENV DEBIAN_FRONTEND=noninteractive

WORKDIR /var/www

# Install needed packages.
RUN apt-get update
RUN apt-get install build-essential -y
RUN apt-get install curl -y

RUN apt-get install -y git \
    && curl -fsSL https://deb.nodesource.com/setup_20.x | bash -\
    && apt-get install -y nodejs \
    && curl -L https://foundry.paradigm.xyz | bash \
    && curl https://sh.rustup.rs -sSf | bash -s -- -y \
    && curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s --

ENV PATH="/root/.cargo/bin:${PATH}"
ENV PATH="/root/bin:${PATH}"
ENV PATH="/root/.foundry/bin:${PATH}"

RUN rustup update stable

RUN git clone https://github.com/open-ibc/ibc-app-solidity-template.git

WORKDIR /var/www/ibc-app-solidity-template

COPY .env .

RUN cargo install --git https://github.com/foundry-rs/foundry --profile local --locked forge \
    && just install

apt install screen
screen -Rd polymer

running this code on screen

docker build -t ibc-app-solidity-template . && docker run --name ibc-app-solidity -it -d ibc-app-solidity-template 

and running Custom IBC Channel

docker exec -it ibc-app-solidity just do-it

Done

Last updated