Skip to content

Commit

Permalink
Merge branch 'development' into council_overhaul
Browse files Browse the repository at this point in the history
  • Loading branch information
lxgr-linux committed Oct 16, 2023
2 parents 16b8190 + 9dbdc18 commit e18992b
Show file tree
Hide file tree
Showing 373 changed files with 68,648 additions and 35,577 deletions.
10 changes: 10 additions & 0 deletions .fleet/run.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"configurations": [
{
"type": "command",
"name": "ignite chain serve -v",
"program": "./ignite",
"args": ["chain", "serve", "-v"]
},
]
}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
args: chain build --release --release.prefix ${{ steps.vars.outputs.tarball_prefix }} -t linux:amd64 -t darwin:amd64 --yes

- name: Delete the "latest" Release
uses: dev-drprasad/[email protected].0
uses: dev-drprasad/[email protected].1
if: ${{ steps.vars.outputs.is_release_type_latest == 'true' }}
with:
tag_name: ${{ steps.vars.outputs.tag_name }}
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/blockchain-data
/backup
vue/node_modules
vue/dist
/vue
Expand Down
42 changes: 35 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,46 @@
FROM ignitehq/cli:0.20.4

FROM ignitehq/cli:v0.26.1


USER root
RUN apt-get -y -qq update && \
apt-get install -y -qq apt-transport-https curl wget unzip screen bash jq python3 pip && \
apt-get clean

# install python script to download genesis
RUN pip install tendermint-chunked-genesis-download



# install correct go version
RUN wget https://go.dev/dl/go1.20.2.linux-amd64.tar.gz
RUN tar -xvf go1.20.2.linux-amd64.tar.gz
RUN rm /usr/local/go -rf
RUN mv go /usr/local

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 9091
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

COPY scripts/download_genesis.py download_genesis.py
RUN python3 download_genesis.py
RUN mv genesis.json $HOME/.Cardchain/config/genesis.json
RUN wget -O $HOME/.Cardchain/config/addrbook.json "https://raw.githubusercontent.com/DecentralCardGame/Testnet/main/addrbook.json"

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

0 comments on commit e18992b

Please sign in to comment.