Skip to content

Commit

Permalink
update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickwieth committed Aug 10, 2023
1 parent fb08aaa commit 06de00b
Show file tree
Hide file tree
Showing 4 changed files with 206 additions and 251 deletions.
36 changes: 30 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,42 @@
FROM ignitehq/cli:0.20.4

FROM ignitehq/cli:v0.27.1


USER root
RUN apt-get -y -qq update && \
apt-get install -y -qq apt-transport-https curl wget unzip screen && \
apt-get clean
#
# install jq to parse json within bash scripts
RUN curl -o /usr/local/bin/jq http://stedolan.github.io/jq/download/linux64/jq && \
chmod +x /usr/local/bin/jq



USER tendermint
WORKDIR /home/tendermint

RUN export GOPATH=$HOME/go
RUN wget https://github.com/DecentralCardGame/go-faucet/archive/master.zip && \
unzip master.zip -d . && cd go-faucet-master && go build

EXPOSE 1317
EXPOSE 26657
EXPOSE 26658
EXPOSE 9090
EXPOSE 4500

WORKDIR .
COPY --chown=tendermint:tendermint . .

RUN chmod +x ./docker-run.sh

RUN ignite chain build
#RUN ignite chain init
#RUN python3 ./scripts/migrate_with_data.py ./blockchain-data/exported_genesis.json ~/.Cardchain/config/genesis.json
RUN ignite chain init

#RUN mkdir -p $HOME/.Cardchain/config
RUN wget -O $HOME/.Cardchain/config/genesis.json "https://raw.githubusercontent.com/DecentralCardGame/Testnet/Testnet4/genesis.json"
RUN wget -O $HOME/.Cardchain/config/addrbook.json "https://raw.githubusercontent.com/DecentralCardGame/Testnet/Testnet4/addrbook.json"

ENTRYPOINT ./docker-run.sh
RUN echo $HOME

RUN chmod +x ./docker-run.sh
ENTRYPOINT ./docker-run.sh
Loading

0 comments on commit 06de00b

Please sign in to comment.