JsonToDockerVars is a console application that extracts variables from JSON files and outputs them in various formats (docker_string, json, docker_file, koyeb). This README provides copy-paste instructions to build the project and make it globally accessible from the console on Windows.
- Open PowerShell and navigate to the project folder:
cd "F:\ASP.NET Projects\Json_To_Docker_Vars\JsonToDockerVars"- Publish the project as a single-file, self-contained executable:
dotnet publish -c Release -r win-x64 --self-contained true /p:PublishSingleFile=true- Create a folder for global tools and copy the executable:
mkdir C:\Tools\JsonToDockerVars
copy bin\Release\net9.0\win-x64\publish\JsonToDockerVars.exe C:\Tools\JsonToDockerVars\- Add the folder to your PATH:
setx PATH "$env:PATH;C:\Tools\JsonToDockerVars"- Run:
JsonToSecrets --help"
JsonToSecrets variables --help"
JsonToSecrets sections --help"