This commit is contained in:
Ian Norden 2020-03-25 19:16:49 -05:00
commit f4a20de5ae
4 changed files with 15 additions and 11 deletions

View File

@ -51,6 +51,7 @@ COPY --chown=5000:5000 --from=builder /go/src/github.com/vulcanize/vulcanizedb/d
COPY --from=builder /go/src/github.com/vulcanize/vulcanizedb/vulcanizedb vulcanizedb COPY --from=builder /go/src/github.com/vulcanize/vulcanizedb/vulcanizedb vulcanizedb
COPY --from=builder /go/src/github.com/pressly/goose/cmd/goose/goose goose COPY --from=builder /go/src/github.com/pressly/goose/cmd/goose/goose goose
COPY --from=builder /go/src/github.com/vulcanize/vulcanizedb/db/migrations migrations/vulcanizedb COPY --from=builder /go/src/github.com/vulcanize/vulcanizedb/db/migrations migrations/vulcanizedb
COPY --from=builder /go/src/github.com/vulcanize/vulcanizedb/environments environments
COPY --from=builder /go/src/github.com/ipfs/go-ipfs/ipfs ipfs COPY --from=builder /go/src/github.com/ipfs/go-ipfs/ipfs ipfs
EXPOSE $EXPOSE_PORT_1 EXPOSE $EXPOSE_PORT_1

View File

@ -14,7 +14,7 @@ set +x
#test $DATABASE_PASSWORD #test $DATABASE_PASSWORD
#test $IPFS_INIT #test $IPFS_INIT
#test $IPFS_PATH #test $IPFS_PATH
VDB_COMMAND=${VARIABLE:-headerSync} VDB_COMMAND=${VDB_COMMAND:-superNode}
set +e set +e
# Construct the connection string for postgres # Construct the connection string for postgres
@ -39,7 +39,7 @@ export IPFS_PGPORT=$DATABASE_PORT
export IPFS_PGPASSWORD=$DATABASE_PASSWORD export IPFS_PGPASSWORD=$DATABASE_PASSWORD
if [ ! -d "~/.ipfs" ]; then if [ ! -d "$HOME/.ipfs" ]; then
# initialize PG-IPFS # initialize PG-IPFS
echo "Initializing Postgres-IPFS profile" echo "Initializing Postgres-IPFS profile"
./ipfs init --profile=postgresds ./ipfs init --profile=postgresds
@ -51,11 +51,14 @@ if [ ! -d "~/.ipfs" ]; then
fi fi
fi fi
echo "Beginning the vulcanizedb super node process"
DEFAULT_OPTIONS="--config=config.toml" echo "Beginning the vulcanizedb process"
VDB_FULL_CL=${VARIABLE:-$DEFAULT_OPTIONS} VDB_CONFIG_FILE=${VDB_CONFIG_FILE:-config.toml}
# XXX stdout, not logfile DEFAULT_OPTIONS="--config=$VDB_CONFIG_FILE"
./vulcanizedb ${VDB_COMMAND} $VDB_FULL_CL VDB_FULL_CL=${VDB_FULL_CL:-$VDB_COMMAND $DEFAULT_OPTIONS}
echo running: ./vulcanizedb $VDB_FULL_CL $@
./vulcanizedb $VDB_FULL_CL $@
rv=$? rv=$?
if [ $rv != 0 ]; then if [ $rv != 0 ]; then

View File

@ -6,7 +6,7 @@
password = "" # $DATABASE_PASSWORD password = "" # $DATABASE_PASSWORD
[ipfs] [ipfs]
path = "/root/.btc/.ipfs" # $IPFS_PATH path = "~/.ipfs" # $IPFS_PATH
[resync] [resync]
chain = "bitcoin" # $RESYNC_CHAIN chain = "bitcoin" # $RESYNC_CHAIN
@ -20,7 +20,7 @@
[superNode] [superNode]
chain = "bitcoin" # $SUPERNODE_CHAIN chain = "bitcoin" # $SUPERNODE_CHAIN
server = true # $SUPERNODE_SERVER server = true # $SUPERNODE_SERVER
ipcPath = "/root/.vulcanize/btc/vulcanize.ipc" # $SUPERNODE_IPC_PATH ipcPath = "~/.vulcanize/vulcanize.ipc" # $SUPERNODE_IPC_PATH
wsPath = "127.0.0.1:8082" # $SUPERNODE_WS_PATH wsPath = "127.0.0.1:8082" # $SUPERNODE_WS_PATH
httpPath = "127.0.0.1:8083" # $SUPERNODE_HTTP_PATH httpPath = "127.0.0.1:8083" # $SUPERNODE_HTTP_PATH
sync = true # $SUPERNODE_SYNC sync = true # $SUPERNODE_SYNC

View File

@ -6,7 +6,7 @@
password = "" # $DATABASE_PASSWORD password = "" # $DATABASE_PASSWORD
[ipfs] [ipfs]
path = "/root/.eth/.ipfs" # $IPFS_PATH path = "~/.ipfs" # $IPFS_PATH
[resync] [resync]
chain = "ethereum" # $RESYNC_CHAIN chain = "ethereum" # $RESYNC_CHAIN
@ -20,7 +20,7 @@
[superNode] [superNode]
chain = "ethereum" # $SUPERNODE_CHAIN chain = "ethereum" # $SUPERNODE_CHAIN
server = true # $SUPERNODE_SERVER server = true # $SUPERNODE_SERVER
ipcPath = "/root/.vulcanize/eth/vulcanize.ipc" # $SUPERNODE_IPC_PATH ipcPath = "~/.vulcanize/vulcanize.ipc" # $SUPERNODE_IPC_PATH
wsPath = "127.0.0.1:8081" # $SUPERNODE_WS_PATH wsPath = "127.0.0.1:8081" # $SUPERNODE_WS_PATH
httpPath = "127.0.0.1:8082" # $SUPERNODE_HTTP_PATH httpPath = "127.0.0.1:8082" # $SUPERNODE_HTTP_PATH
sync = true # $SUPERNODE_SYNC sync = true # $SUPERNODE_SYNC