Skip to content

Tool for converting configuration files (like appsettings.json) into secret strings for Docker or Koyeb

Notifications You must be signed in to change notification settings

artur10563/JsonToSecrets

Repository files navigation

JsonToDockerVars CLI

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.


Installation and Setup (Windows)

  1. Open PowerShell and navigate to the project folder:
cd "F:\ASP.NET Projects\Json_To_Docker_Vars\JsonToDockerVars"
  1. Publish the project as a single-file, self-contained executable:
   dotnet publish -c Release -r win-x64 --self-contained true /p:PublishSingleFile=true
  1. 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\
  1. Add the folder to your PATH:
setx PATH "$env:PATH;C:\Tools\JsonToDockerVars"
  1. Run:
JsonToSecrets --help"
JsonToSecrets variables --help"
JsonToSecrets sections --help"

About

Tool for converting configuration files (like appsettings.json) into secret strings for Docker or Koyeb

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages