Skip to content

Commit

Permalink
rm useless and add run-docker.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
SatoKentaNayoro committed Mar 11, 2023
1 parent 0f97629 commit 668c85a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ RUN git clone -b testnet3-hxc https://github.com/hxuchen/aleo-explorer.git && \

# run
USER root
CMD cd /aleo-explorer && python3 --version && python3 main.py
EXPOSE 8000
CMD cd /aleo-explorer && python3 main.py
22 changes: 22 additions & 0 deletions run-docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

# simply example
docker build -t aleo-explorer:testnet3 . --progress=plain > build.log 2>&1

docker run -di \
--name aleo-explorer2 \
-p 8000:8000 \
-p 8001:8001 \
-e PYTHONUNBUFFERED=1 \
-e DB_DATABASE=aleo \
-e DB_HOST=192.168.1.200 \
-e DB_PASS=passwd \
-e DB_SCHEMA=explorer \
-e DB_USER=user \
-e P2P_NODE_HOST=192.168.1.200 \
-e P2P_NODE_PORT=4130 \
-e DEBUG=1 \
-e BLOCK_GENESIS=/mnt/block.genesis \
-v /Users/huangxuchen/my_proj/aleo-explorer/node/testnet3/block.genesis:/mnt/block.genesis \
aleo-explorer:testnet3

0 comments on commit 668c85a

Please sign in to comment.