-
Notifications
You must be signed in to change notification settings - Fork 35
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
1 parent
fb08aaa
commit 06de00b
Showing
4 changed files
with
206 additions
and
251 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 |
---|---|---|
@@ -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 |
Oops, something went wrong.