commands

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2015 License: Apache-2.0 Imports: 0 Imported by: 3

Documentation

Overview

Package commands contains the set of Dockerfile commands.

Index

Constants

View Source
const (
	Add        = "ADD"
	Cmd        = "CMD"
	Copy       = "COPY"
	Entrypoint = "ENTRYPOINT"
	Env        = "ENV"
	Expose     = "EXPOSE"
	Extract    = "EXTRACT"
	From       = "FROM"
	Label      = "LABEL"
	Maintainer = "MAINTAINER"
	Onbuild    = "ONBUILD"
	Run        = "RUN"
	User       = "USER"
	Volume     = "VOLUME"
	Workdir    = "WORKDIR"
)

List of Dockerfile commands.

Variables

View Source
var Commands = map[string]struct{}{
	Add:        {},
	Cmd:        {},
	Copy:       {},
	Entrypoint: {},
	Env:        {},
	Expose:     {},
	Extract:    {},
	From:       {},
	Label:      {},
	Maintainer: {},
	Onbuild:    {},
	Run:        {},
	User:       {},
	Volume:     {},
	Workdir:    {},
}

Commands is a set of all Dockerfile commands.

View Source
var FilesystemModifierCommands = map[string]struct{}{
	Add:     {},
	Copy:    {},
	Extract: {},
	Run:     {},
}

FilesystemModifierCommands is a subset of commands that typically modify the filesystem of a container and require a commit.

View Source
var ReplaceEnvAllowed = map[string]struct{}{
	Add:     {},
	Copy:    {},
	Env:     {},
	Expose:  {},
	Extract: {},
	Label:   {},
	User:    {},
	Volume:  {},
	Workdir: {},
}

ReplaceEnvAllowed is a subset of commands for which environment variable interpolation will happen.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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