Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
c6243a2d
Commit
c6243a2d
authored
Sep 05, 2014
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
command/build: -color [GH-1433]
parent
b085c1d9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
9 deletions
+15
-9
CHANGELOG.md
CHANGELOG.md
+4
-3
command/build/command.go
command/build/command.go
+9
-6
website/source/docs/command-line/build.html.markdown
website/source/docs/command-line/build.html.markdown
+2
-0
No files found.
CHANGELOG.md
View file @
c6243a2d
...
...
@@ -15,8 +15,6 @@ FEATURES:
Packer will look in the PWD and the directory with
`packer`
for
binaries named
`packer-TYPE-NAME`
.
*
builder/docker: Images can now be committed instead of exported. [GH-1198]
*
builder/docker: Can now specify login credentials to pull images.
*
builder/docker: Support mounting additional volumes. [GH-1430]
*
builder/virtualbox-ovf: New
`import_flags`
setting can be used to add
new command line flags to
`VBoxManage import`
to allow things such
as EULAs to be accepted. [GH-1383]
...
...
@@ -25,7 +23,6 @@ FEATURES:
*
builder/vmware: VMware Player 6 is now supported. [GH-1168]
*
builder/vmware-vmx: Boot commands and the HTTP server are supported.
[GH-1169]
*
post-processor/docker-push: Can now specify login credentials. [GH-1243]
IMPROVEMENTS:
...
...
@@ -37,6 +34,8 @@ IMPROVEMENTS:
*
builder/amazon-instance: EBS AMIs can be used as a source. [GH-1453]
*
builder/digitalocean: Can set API URL endpoint. [GH-1448]
*
builder/digitalocean: Region supports variables. [GH-1452]
*
builder/docker: Can now specify login credentials to pull images.
*
builder/docker: Support mounting additional volumes. [GH-1430]
*
builder/parallels/all: Path to tools ISO is calculated automatically. [GH-1455]
*
builder/parallels-pvm:
`reassign_mac`
option to choose wehther or not
to generate a new MAC address. [GH-1461]
...
...
@@ -44,6 +43,8 @@ IMPROVEMENTS:
*
builder/qemu: Can specify "tcg" acceleration type. [GH-1395]
*
builder/virtualbox/all:
`iso_interface`
option to mount ISO with SATA. [GH-1200]
*
builder/vmware-vmx: Proper
`floppy_files`
support. [GH-1057]
*
command/build: Add
`-color=false`
flag to disable color. [GH-1433]
*
post-processor/docker-push: Can now specify login credentials. [GH-1243]
BUG FIXES:
...
...
command/build/command.go
View file @
c6243a2d
...
...
@@ -21,13 +21,12 @@ func (Command) Help() string {
}
func
(
c
Command
)
Run
(
env
packer
.
Environment
,
args
[]
string
)
int
{
var
cfgDebug
bool
var
cfgForce
bool
var
cfgParallel
bool
var
cfgColor
,
cfgDebug
,
cfgForce
,
cfgParallel
bool
buildOptions
:=
new
(
cmdcommon
.
BuildOptions
)
cmdFlags
:=
flag
.
NewFlagSet
(
"build"
,
flag
.
ContinueOnError
)
cmdFlags
.
Usage
=
func
()
{
env
.
Ui
()
.
Say
(
c
.
Help
())
}
cmdFlags
.
BoolVar
(
&
cfgColor
,
"color"
,
true
,
"enable or disable color"
)
cmdFlags
.
BoolVar
(
&
cfgDebug
,
"debug"
,
false
,
"debug mode for builds"
)
cmdFlags
.
BoolVar
(
&
cfgForce
,
"force"
,
false
,
"force a build if artifacts exist"
)
cmdFlags
.
BoolVar
(
&
cfgParallel
,
"parallel"
,
true
,
"enable/disable parallelization"
)
...
...
@@ -95,9 +94,13 @@ func (c Command) Run(env packer.Environment, args []string) int {
buildUis
:=
make
(
map
[
string
]
packer
.
Ui
)
for
i
,
b
:=
range
builds
{
ui
:=
&
packer
.
ColoredUi
{
Color
:
colors
[
i
%
len
(
colors
)],
Ui
:
env
.
Ui
(),
var
ui
packer
.
Ui
ui
=
env
.
Ui
()
if
cfgColor
{
ui
=
&
packer
.
ColoredUi
{
Color
:
colors
[
i
%
len
(
colors
)],
Ui
:
env
.
Ui
(),
}
}
buildUis
[
b
.
Name
()]
=
ui
...
...
website/source/docs/command-line/build.html.markdown
View file @
c6243a2d
...
...
@@ -12,6 +12,8 @@ artifacts that are created will be outputted at the end of the build.
## Options
*
`-color=false`
- Disables colorized output. Enabled by default.
*
`-debug`
- Disables parallelization and enables debug mode. Debug mode flags
the builders that they should output debugging information. The exact behavior
of debug mode is left to the builder. In general, builders usually will stop
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment