Skip to content

Commit

Permalink
update Docker build and instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
dekm committed Mar 13, 2024
1 parent 9ce6d2a commit 7e4a01e
Show file tree
Hide file tree
Showing 4 changed files with 633 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# docker build . -t unigrid/paxd:latest
# docker run --name paxd --rm -it unigrid/paxd:latest /bin/sh
# docker cp pax:/usr/bin/paxd /path/to/local/directory
# docker cp paxd:/usr/bin/paxd /path/to/local/directory

# Use the Go alpine image as the base for the builder stage
FROM golang:1.21-alpine AS go-builder
Expand Down
4 changes: 2 additions & 2 deletions docker/run_paxd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if test -n "$1"; then
fi

# Create a unique log file name with timestamp
LOG_FILE="/root/paxd_$(date +%Y%m%d_%H%M%S).log"
# LOG_FILE="/root/paxd_$(date +%Y%m%d_%H%M%S).log"

mkdir -p /root/log
paxd start --rpc.laddr tcp://0.0.0.0:26657 --api.enable=true --api.swagger=true --api.address tcp://0.0.0.0:1317 --trace >> "$LOG_FILE" 2>&1
paxd start --rpc.laddr tcp://0.0.0.0:26657 --api.enable=true --api.swagger=true --api.address tcp://0.0.0.0:1317 --trace #>> "$LOG_FILE" 2>&1
Loading

0 comments on commit 7e4a01e

Please sign in to comment.