shared_testnet: lower RAM usage during build

This commit is contained in:
Ștefan Talpalaru 2020-06-28 21:40:22 +02:00
parent ea57852359
commit 41a4e47857
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
2 changed files with 4 additions and 3 deletions

View File

@ -26,7 +26,7 @@ git pull
ansible-galaxy install -g -f -r ansible/requirements.yml ansible-galaxy install -g -f -r ansible/requirements.yml
ansible-playbook ansible/nimbus.yml -i ansible/inventory/test -t beacon-node -u YOUR_USER -K -l nimbus-slaves[5:8] ansible-playbook ansible/nimbus.yml -i ansible/inventory/test -t beacon-node -u YOUR_USER -K -l nimbus-slaves[5:8]
# faster way to pull the Docker image and recreate the containers # faster way to pull the Docker image and recreate the containers (this also stops any running container)
ansible nimbus-slaves[5:8] -i ansible/inventory/test -u YOUR_USER -o -m shell -a "echo; cd /docker/beacon-node-testnet2-1; docker-compose --compatibility pull; docker-compose --compatibility up --no-start; echo '---'" | sed 's/\\n/\n/g' ansible nimbus-slaves[5:8] -i ansible/inventory/test -u YOUR_USER -o -m shell -a "echo; cd /docker/beacon-node-testnet2-1; docker-compose --compatibility pull; docker-compose --compatibility up --no-start; echo '---'" | sed 's/\\n/\n/g'
# build beacon_node in an external volume # build beacon_node in an external volume

View File

@ -82,8 +82,9 @@ if [[ "$BUILD" == "1" ]]; then
git config pull.rebase false git config pull.rebase false
git checkout devel git checkout devel
git pull git pull
make -j$(nproc) update # don't use too much RAM
make LOG_LEVEL="TRACE" NIMFLAGS="-d:insecure -d:testnet_servers_image" SCRIPT_PARAMS="--skipGoerliKey --writeLogFile=false --buildOnly" ${NETWORK} make update
make LOG_LEVEL="TRACE" NIMFLAGS="-d:insecure -d:testnet_servers_image --parallelBuild:1" SCRIPT_PARAMS="--skipGoerliKey --writeLogFile=false --buildOnly" ${NETWORK}
fi fi
####### #######