Documentation ¶
Overview ¶
Package file provides functions to manage docker compose files inside the $HOME/.sourced/compose-files directory
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrConfigActivation = goerrors.NewKind("docker-compose.yml could not be set as active")
ErrConfigActivation is returned when docker-compose.yml could not be set as active
var ErrConfigDownload = goerrors.NewKind("docker-compose.yml config file could not be downloaded")
ErrConfigDownload is returned when docker-compose.yml could not be downloaded
Functions ¶
func ActivateFromRemote ¶ added in v0.17.0
ActivateFromRemote downloads the docker-compose.yml file from the given revision or URL, and sets it as the active compose file.
func InitDefault ¶
InitDefault checks if there is an active docker compose file, and if there isn't the file for this release is downloaded. The current build version must be set with SetVersion. It returns the absolute path to the active docker-compose.yml file
func InitDefaultOverride ¶
InitDefaultOverride returns the path of the default docker-compose.override.yml file, if it does not exists, it is created.