monkey/deployment_scripts/README.md

33 lines
1.8 KiB
Markdown
Raw Normal View History

# Files used to deploy development version of infection monkey
2018-12-10 20:10:35 +08:00
## Windows
Before running the script you must have git installed.<br>
2020-01-05 05:31:09 +08:00
`Invoke-WebRequest https://raw.githubusercontent.com/guardicore/monkey/develop/deployment_scripts/deploy_windows.ps1 -OutFile deploy_windows.ps1`
2020-01-05 05:31:09 +08:00
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:<br>
`.\deploy_windows.ps1` (Sets up monkey in current directory under .\infection_monkey)<br>
`.\deploy_windows.ps1 -monkey_home "C:\test"` (Sets up monkey in C:\test)<br>
`.\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]"`
2020-01-05 05:31:09 +08:00
Don't forget to add python to PATH or do so while installing it via this script.<br>
2018-12-10 20:10:35 +08:00
## Linux
2019-10-24 17:54:00 +08:00
Linux deployment script is meant for Ubuntu 16.x machines.
2019-07-12 22:25:04 +08:00
You must have root permissions, but don't run the script as root.<br>
`wget https://raw.githubusercontent.com/guardicore/monkey/develop/deployment_scripts/deploy_linux.sh`
Then execute the resulting script with your shell.
2019-10-24 17:54:00 +08:00
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:<br>
2020-01-05 05:31:09 +08:00
`./deploy_linux.sh` (deploys under ./infection_monkey)<br>
`./deploy_linux.sh "/home/test/monkey"` (deploys under /home/test/monkey)<br>
`./deploy_linux.sh "" "master"` (deploys master branch in script directory)<br>
`./deploy_linux.sh "/home/user/new" "master"` (if directory "new" is not found creates it and clones master branch into it)<br>