Container
Instructions for running a Fortified ID product from a container image
Use the container installation method when the product should run from a Docker image. This method is suitable for environments where container images are already used for deployment, versioning, and rollback.
Prepare
Section titled “Prepare”Begin by obtaining authentication credentials from your Fortified ID representative. Use the credentials to log in to the FortifiedID Docker Registry by any available method, see here for instructions on Unix/Linux and Windows.
Example for Unix/Linux:
Transfer the token from customer_access_credentials.json to password.txt:
- Open the
customer_access_credentials.jsonfile that you have received. - Locate and copy the access_token value.
- Open or create the
password.txt file. - Paste the access_token value into
password.txt. - Replace
<username>with your username that you have received in the following command and execute it.
cat ./password.txt | docker login fortifiedid.jfrog.io --username <username> --password-stdinDepending on your system configuration, you may need to run the logon command with different user rights, such as the root user and the current user account.
Verify
Section titled “Verify”To verify the Docker setup, run the server:
Replace <container_display_name> with the container name and replace <product_name>:<version> with the image product name and version.
docker run --detach --name <container_display_name> fortifiedid.jfrog.io/docker/fortifiedid/<product_name>:<version> -c Node config/config.jsonParameter explanation:
-c | Direct system output to stdout. | ||
Node | Start the Node module. | ||
config/config.json | Use the given configuration file. Path is relative to SERVER_HOME inside the container. |
Check the log to ensure that the server was successfully bootstrapped:
docker logs -f <container_display_name>