Signing Agent
Docker
TL;DR
- Create a Docker volume
- Create a Docker container
- Run a Docker volume that references your configuration file
Prerequisites
- Docker installed
- The Signing Agent repository cloned to a local folder
Create a Docker volume for storing config data
You need to create a local folder to store the config.yaml
file and also the agent database. When you run the Docker image, you must reference this local folder since it is shared between the local system and the Docker image. For this reason, we need to create the Docker volume first. If you are curious, you can go here to learn more about Docker volumes.
1. Create a local folder and name it volume
.
2. With Docker running, create the Docker volume (please use full path) in your:
docker volume create --name volume_folder --opt type=none --opt device={path-to-your-volume-folder}/volume --opt o=bind
Configure your data
A config-template.yaml is provided. Review the configuration documentation to determine which settings you wish to apply.
Build and Run the Signing Agent image
1. Build a Docker image:
./build.sh docker_latest
Important! Before running the Docker image, please make sure to copy the config-template.yaml
(YAML configuration) file to your local volume
(rename it to config.yaml
.
2. Run the Docker image in the terminal, using the command:
docker run -ti --rm -v {path-to-the-volume-folder}:/volume -p 8007:8007 signing-agent:latest
What next?
You can now test and deploy the Docker image.
When running as a Docker container, a host directory must be mounted as a virtual volume: in order to ensure data persistency between different container versions.