docker

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2020 License: BSD-3-Clause-Clear Imports: 20 Imported by: 0

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 EnableStartup

func EnableStartup()

EnableStartup enables docker to start on boot.

func GetCompose

func GetCompose(apiKey string, hostname string, outDir string)

GetCompose downloads the docker compose image from the AppNeta portal.

func Install

func Install()

Install installs docker.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL