Build or install from source
Before being able to compile the source code you first have to download it from GitHub and install Golang (if you don't have it already).
Clone source from GitHub¶
git clone https://github.com/compose-generator/compose-generator.git cd compose-generator
For compiling Compose Generator from source you need to have Go 1.17 or higher installed on your system. Please refer to the official guide on how to install Go.
Build from source¶
If you want to build the executable, you can use the
build.sh for Linux or the
build.bat file for Windows:
The executables will end up in the
bin subfolder for the
Install from source¶
If you don't care about the executable and you just want to use Compose Generator, you can use the
install.sh for Linux or the
install.bat for Windows. This will install the executable to a path, located in the PATH, so your OS can find it and makes it available as a command: