monkey/deployment_scripts
Daniel Goldberg e226e74100 No more need for run_script.bat.
Cleaned up README.md visually
2020-02-03 12:18:02 +02:00
..
README.md No more need for run_script.bat. 2020-02-03 12:18:02 +02:00
config Remove unused variables 2020-02-03 08:58:42 +02:00
config.ps1 Missing URL path parameter 2020-02-03 11:15:46 +02:00
deploy_linux.sh Add build-essential command 2020-02-03 09:49:01 +02:00
deploy_windows.ps1 No more need for run_script.bat. 2020-02-03 12:18:02 +02:00

README.md

Files used to deploy development version of infection monkey

Windows

Before running the script you must have git installed.
Invoke-WebRequest https://raw.githubusercontent.com/guardicore/monkey/develop/deployment_scripts/deploy_windows.ps1 -OutFile deploy_windows.ps1

Then execute the resulting script with your shell. First argument is an empty directory (script can create one) and second is branch you want to clone.

Example usages:
.\deploy_windows.ps1 (Sets up monkey in current directory under .\infection_monkey)
.\deploy_windows.ps1 -monkey_home "C:\test" (Sets up monkey in C:\test)
.\deploy_windows.ps1 -branch "master" (Sets up master branch instead of develop in current dir)

If you run into Execution Policy warnings, you can disable them by prefixing the following snippet powershell -ExecutionPolicy ByPass -Command "[original command here]"

Don't forget to add python to PATH or do so while installing it via this script.

Linux

Linux deployment script is meant for Ubuntu 16.x machines. You must have root permissions, but don't run the script as root.
wget https://raw.githubusercontent.com/guardicore/monkey/develop/deployment_scripts/deploy_linux.sh Then execute the resulting script with your shell. First argument should be an absolute path of an empty directory (script will create one if doesn't exist, default is ./infection_monkey). Second parameter is the branch you want to clone (develop by default). Example usages:
./deploy_linux.sh (deploys under ./infection_monkey)
./deploy_linux.sh "/home/test/monkey" (deploys under /home/test/monkey)
./deploy_linux.sh "" "master" (deploys master branch in script directory)
./deploy_linux.sh "/home/user/new" "master" (if directory "new" is not found creates it and clones master branch into it)