Add info about initial login username and password. Add info about configuring using environment variables, with custom username and password example.
3.4 KiB
title, description, lead, date, lastmod, draft, images, menu, weight, toc
| title | description | lead | date | lastmod | draft | images | menu | weight | toc | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Installation | Install a Kerberos Agent where and how you want. | Install a Kerberos Agent where and how you want. | 2020-10-06T08:49:31+00:00 | 2020-10-06T08:49:31+00:00 | false |
|
202 | true |
The easiest to get your Kerberos Agent up and running is to use our Docker image on Docker hub. Once you selected a specific tag, run below command, which will open the web interface of your Kerberos agent on port 80. For persisting your configuration and/or recordings attach a volume. For more in depth configuration and installation verify the Kerberos Agent repo.
Running as a container
We are creating Docker images as part of our CI/CD process. You'll find our Docker images on Docker hub. Pick a specific tag of choice, or use latest. Once done run below command, this will open the web interface of your Kerberos agent on port 80.
docker run -p 80:80 --name mycamera -d kerberos/agent:latest
Or for a develop build:
docker run -p 80:80 --name mycamera -d kerberos/agent-dev:latest
Feel free to use another port if your host system already has a workload running on 80. For example 81.
docker run -p 81:80 --name mycamera -d kerberos/agent-dev:latest
Login with default username and password which are root/root.
Attach a volume
By default your Kerberos agent will store all its configuration and recordings inside the container. It might be interesting to store both configuration and your recordings outside the container, on your local disk. This helps persisting your storage even after you decide to wipe out your Kerberos agent.
You attach a volume to your container by leveraging the -v option. To mount your own configuration file, execute as following:
-
Decide where you would like to store your configuration and recordings; create a new directory for the config file and recordings folder accordingly.
mkdir agent mkdir agent/config mkdir agent/recordings -
Once you have located your desired directory, copy the latest
config.jsonfile into your config directory.wget https://raw.githubusercontent.com/kerberos-io/agent/master/machinery/data/config/config.json -O agent/config/config.json -
Run the docker command as following to attach your config directory and recording directory.
docker run -p 80:80 --name mycamera -v $(pwd)/agent/config:/home/agent/data/config -v $(pwd)/agent/recordings:/home/agent/data/recordings -d kerberos/agent:latest
Login with default username and password which are root/root.
Configure using environment variables
If you prefer to configure Kerberos Agent using environment variables instead of or in addition to mounted config file, you can do that as well. See the list of available environment variables.
For example, to pre-configure a different username and password, use this docker run command:
docker run -p 80:80 --name mycamera -v $(pwd)/agent/config:/home/agent/data/config -v $(pwd)/agent/recordings:/home/agent/data/recordings -d -e AGENT_USERNAME=user -e AGENT_PASSWORD=secret kerberos/agent:latest
This will let you login using username user and password secret.