Installation
Securosys Docker Signing Notation Plugin
In this guide we will use the Linux Ubuntu 22 (amd 64), for other operating systems and Linux distributions please refer to the referenced guides.
Note on some occasion's commands may require root permissions. Your system and docker user permissions should be configured beforehand to avoid any potential permission issues.
Install Securosys Docker Signing Notation Plugin by command
From within the same directory where you have downloaded the Securosys Docker Signing Notation Plugin binary file use the install command below. This will automatically create the required directory structure and install the plugin and config in the appropriate directory.
./notation-securosys install
Example output:
Installation
Detected operating system: linux
Installing plugin to ${HOME}/.config/notation/plugins/securosys
Generate default plugin config in ${HOME}/.config/notation/plugins/securosys/config.json
************************************
If you put the configuration file into the default directory which is: "${HOME}/.config/notation/plugins/securosys/config.json", all methods will work correct without any additional configuration.
In other case, if you want to place the file somewhere else, you can use plugin config file with 3 options:
1) Add this to temporary system environment:
export CONFIG_PATH=PathToConfigFile
2) Add this to your system environment:
CONFIG_PATH=PathToConfigFile
3) Use this before every command:
CONFIG_PATH=PathToConfigFile ./notation-securosys [command]
************************************
Manual installation of Securosys plugin (option)
Notation searches for available plugins within the plugins directory. Verify if Notation has automatically created these directories within the installation. If not (currently Notation with version 1.1.0 does not automatically create its directory structure), create the directory structure manually. Otherwise, proceed directly to the next chapter.
Run the below command to create the directories for the Securosys Docker Signing Notation Plugin.
mkdir -p {BINARY_PATH}
Depending on your operating system, replace the variable with the respective path:
Variable | Variable options |
---|---|
{BINARY_PATH} | The Notary Notation Securosys Docker Trust Image Signing Plugin directory: Linux: "${HOME}/.config/notation/plugins/securosys" macOS: "${HOME}/Library/Application\ Support/notation/plugins/securosys" Windows: "%USERPROFILE%/AppData/Roaming/notation/plugins/securosys" |
Example command for Linux Ubuntu 22:
mkdir -p ${HOME}/.config/notation/plugins/securosys
View more details on the Notation directory structure.
Navigate to the directory where you downloaded and extracted the Securosys Docker Signing plugin binary file and copy the notation-securosys plugin binary to the securosys directory with the following command:
cp notation-securosys {BINARY_PATH}
Example command and command output:
cp notation-securosys ${HOME}/.config/notation/plugins/securosys
Navigate to the directory where you downloaded and extracted the
Securosys Docker Signing plugin config file
and copy the config.json
plugin binary to the securosys directory with the following command:
cp config.json {BINARY_PATH}
Example command and command output:
cp config.json ${HOME}/.config/notation/plugins/securosys