Skip to content

Commit

Permalink
docker hotfix to run properly
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitarSD committed Feb 15, 2019
1 parent 3d60d8b commit 29cff21
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 10 additions & 4 deletions core/scripts/docker/start_eosio_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,19 @@ fi

if [ ${NODEOS_ENVIRONMENT} != "test" ]
then
script="sh ./node/init_node.sh"

docker run --name ${CONTAINER_NAME} -d \
-p ${NODEOS_PORT}:${NODEOS_PORT} -p 4949:4949 \
--mount type=bind,src="$(pwd)"/node,dst=/opt/eosio/bin/node \
--mount type=bind,src="$(pwd)"/config,dst=/opt/eosio/bin/config \
-w "/opt/eosio/bin/" ${IMAGE_NAME} /bin/bash -c "$script"
-w "/opt/eosio/bin/" ${IMAGE_NAME} /bin/bash -c "keosd --http-server-address=0.0.0.0:4949 & nodeos -e -p eosio -d /mnt/dev/data \
--config-dir /mnt/dev/config \
--http-validate-host=false \
--plugin eosio::producer_plugin \
--plugin eosio::chain_api_plugin \
--plugin eosio::http_plugin \
--http-server-address=0.0.0.0:8888 \
--access-control-allow-origin=* \
--contracts-console \
--verbose-http-errors "



Expand Down
2 changes: 0 additions & 2 deletions core/scripts/start_windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ docker stop ${CONTAINER_NAME} 2>/dev/null || true && docker rm --force ${CONTAIN
echo "=== DOCKER: CONTAINER ID ==="
docker run --name ${CONTAINER_NAME} -d \
-p 8888:8888 -p 4949:4949 \
--mount type=bind,src="$(pwd)"/node,dst=/opt/eosio/bin/node \
--mount type=bind,src="$(pwd)"/config,dst=/opt/eosio/bin/config \
--workdir //opt/eosio/bin/ ${IMAGE_NAME} //bin/bash -c "keosd --http-server-address=0.0.0.0:4949 & nodeos -e -p eosio -d /mnt/dev/data \
--config-dir /mnt/dev/config \
--http-validate-host=false \
Expand Down

0 comments on commit 29cff21

Please sign in to comment.