Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateGroup ¶
func CreateGroup(user string)
CreateGroup creates the docker group so docker can run without root privileges.
func GetCompose ¶
GetCompose downloads the docker compose image from the AppNeta portal.
func InstallCompose ¶
func InstallCompose()
InstallCompose installs docker-compose if it is not already intstalled.
func Scaffold ¶
func Scaffold(hostname string)
Scaffold creates a directory in the docker config directory for docker-compose files.
func SetupCompose ¶
func SetupCompose(hostname, outDir string)
SetupCompose runs AppNeta's docker-compose setup script.
Username is set to: TOK-$APPNETA_SERVER_KEY
Command should mimic: echo "$ACR_PASSWORD" | $DOCKER_CMD login -u "$ACR_USERNAME" --password-stdin "$ACR_REGISTRY"
Types ¶
type AppNetaError ¶
type AppNetaError struct { HTTPStatusCode int `json:"httpStatusCode"` Messages []string `json:"messages"` }
AppNetaError is the JSON response received from AppNeta if there is an error with the request.
Click to show internal directories.
Click to hide internal directories.