Last active
March 31, 2019 17:58
-
-
Save 0polar/0bf2fdad524a0b582e0806c28da8c97c to your computer and use it in GitHub Desktop.
follow this link: https://m.do.co/c/af5c4718b77e, sign up, create 10 droplets, each with 1GB RAM & 3 vCPU
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd /var | |
touch swap.img | |
chmod 600 swap.img | |
dd if=/dev/zero of=/var/swap.img bs=1024k count=1000 | |
mkswap /var/swap.img | |
swapon /var/swap.img | |
echo "/var/swap.img none swap sw 0 0" >> /etc/fstab | |
sysctl -w vm.swappiness=5 | |
curl -sL https://get.docker.com | bash - | |
for i in 1 2 3 4 5 6 | |
do | |
docker run --detach --publish 800$i:8001 \ | |
--env DOWNLOADER="zeronet" \ | |
--env SELECTED_PROJECT="auto" \ | |
--env CONCURRENT_ITEMS="6" \ | |
--env SHARED_RSYNC_THREADS="10" \ | |
archiveteam/warrior-dockerfile | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment