Install Docker (on linux) or Docker-toolbox (on Windows/Mac)
Linux only: Use docker without sudo
- Download zip and unzip or “git clone” from Stream Server repository
$ git clone https://github.com/madgik/Docker-StreamServer.git
- Open a terminal (Docker Quickstart Terminal on Windows/Mac or standard terminal on Linux).
- Linux only:
$ sudo service docker start
- Navigate to the Stream Server Directory:
$ cd <path to Docker-StreamServer>
- Build Stream Server image (this may take a few minutes the first time):
$ docker build -t streamserver .
- Execute:
$ docker run -i -t --rm -p 8989:8989 --name streamserver streamserver
2. Leave this console open while you are working and then stop the container.
3. Find your docker machine IP
- On Linux is: localhost
- On Windows/Mac open a new Docker Quickstart Terminal and run:
```
$ docker-machine ip
```
It will return your docker-machine ip **(from now on use this instead of localhost if you are on Windows or Mac)**.
Test the Stream Server by opening http://docker-machine-ip:8989/measurements on your browser
To gracefully stop your docker container:
- Select your Stream Server docker console.
- Press Ctrl+C.
- Close the console.