https://github.com/foospidy/sigsci-docker-brew
Install and setup of a docker image for running Signal Sciences in reverse proxy mode on OSX
https://github.com/foospidy/sigsci-docker-brew
agent bash brew docker rasp signal-sciences signalsciences sigsci waf
Last synced: 4 months ago
JSON representation
Install and setup of a docker image for running Signal Sciences in reverse proxy mode on OSX
- Host: GitHub
- URL: https://github.com/foospidy/sigsci-docker-brew
- Owner: foospidy
- License: gpl-3.0
- Created: 2018-03-29T14:56:05.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-15T16:33:14.000Z (over 6 years ago)
- Last Synced: 2024-12-27T20:43:28.517Z (5 months ago)
- Topics: agent, bash, brew, docker, rasp, signal-sciences, signalsciences, sigsci, waf
- Language: Shell
- Size: 16.6 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sigsci-docker-brew
Install and setup of a docker image for running Signal Sciences in reverse proxy mode on OSX
[](https://travis-ci.org/foospidy/sigsci-docker-brew)
### Dependencies
Before running, make sure you have the follwing tools installed on your Mac.
- [Virutalbox](https://www.virtualbox.org/wiki/Downloads)
- [Homebrew](https://brew.sh/)### Instructions
1. Export your Signal Sciences agent keys to environment variables
- `$ export SIGSCI_ACCESSKEYID=`
- `$ export SIGSCI_SECRETACCESSKEY=`
2. Run `./sigsci_osx.sh`Alternatively, the agent can run as a "sidecar", which means it will listen for connections from a Signal Sciences module over tcp on port 9999.
Run `./sigsci_osx.sh sidecar`
This script will install docker and docker-machine if you don't already have it installed. By default it will start a docker container with the agent in reverse proxy mode listening on port 80, and proxy connections to port 8080 (the web app running on your Mac).
Optionally, you can adjust configuration with the following variables:
- SIGSCI_PORT - this is the port the agent will listen on.
- Example: `export SIGSCI_PORT=8080`
- SIGSCI_WEBAPP_HOST - this is the ip address of the host running your web application.
- Example: `export SIGSCI_WEBAPP_HOST=192.168.1.5`
- SIGSCI_WEBAPP_PORT - this is the port your web application is listening on.
- Example: `export SIGSCI_WEBAPP_PORT=8085`When the docker container starts you will see the agent start up and the agent logs. You can press ctrl+c to stop the agent and the container.