Commit Graph

261 Commits (1e86c49e321e16cd68d935b0d4bbbf05ba511b21)

Author SHA1 Message Date
Wilken Rivera e1a46ec293
Fix gosimple S1025 linting errors (#8838)
6 years ago
Megan Marsh d252a24b82 allow user to set winrm_host override like we do ssh_host override
6 years ago
Sylvia Moss dc31bad539
Sharing info with post-processors via artifact (#8632)
6 years ago
Wilken Rivera a72242cd70
Merge pull request #8498 from hashicorp/f-builder_docker-typeassertion-check
6 years ago
nywilken 9403d55549 builder/docker: Add type assertion check when reading config from state bag
6 years ago
nywilken 0ba6b22fee builder/docker: Update type of config stored in state bag
6 years ago
Adrien Delorme 4b7132c87c Merge remote-tracking branch 'origin/master' into sharing_info
6 years ago
Adrien Delorme 0785c2f6fc
build using HCL2 (#8423)
6 years ago
Megan Marsh 0f6d1beccf add an extra string array to the Prepare() return values in the builder interfaces; this sets up the ability for builders to give the provisioners custom user-accessible build-time variables.
6 years ago
Megan Marsh 84063d2132 implement ID and Type values in the provisioner template info sharing
6 years ago
henry-aj-jones d317d7f3d1 post-processor/docker-tag: Allow to tag an artifact with multiple tags (#8392)
7 years ago
Adrien Delorme 078ba7c8c3 commit old code generation tool
7 years ago
Megan Marsh de8e8557ae make config dir if it doens't exist.
7 years ago
Megan Marsh 7f040dfed8 update tests
7 years ago
Megan Marsh 7c41244e15 use a unique temp dir for each build to prevent concurrent builds from stomping on each other
7 years ago
Adrien Delorme 5517d41468 make sure all documentation fields are there
7 years ago
Adrien Delorme 4cb7c30987 Merge remote-tracking branch 'origin/master' into scrape_doc_to_builder_struct_config
7 years ago
Megan Marsh 773e76c1ce remove unused import
7 years ago
Megan Marsh b6f3742425 check container os, not host os, when creating container dir default
7 years ago
Megan Marsh 140785f088 make sure we create the temp dir explicitly when we are setting up the config dir in docker. Otherwise, we create it with root later on and it causes permissions failures.
7 years ago
Megan Marsh eb8c74bf85 allow ssh_host config option to override host logic for all builders
7 years ago
Megan Marsh 8d5ecb9514 fix bug where ReadAll on the stderr pipe was causing an infinite hang because there was no stderr to report
7 years ago
Adrien Delorme 696fce9739 docker: rewrap struct comments for documentation generation
7 years ago
Adrien Delorme 4399684372 make fmt autogenerated docs
7 years ago
Adrien Delorme e6cbb013ba add // go:generate struct-markdown to all previously edited files
7 years ago
Adrien Delorme f1917edd34 generate the comments for config struct of builders scraping doc website
7 years ago
Adrien Delorme 2da36b7374 builder/docker: default container dir to "c:/packer-files" on windows
7 years ago
Megan Marsh 71f2017209 read stderr before we try to read the artchive.
7 years ago
Adrien Delorme 63f5bbbc73 use our own copy of iochan.LineReader
7 years ago
Adrien Delorme 6ff392d713 Update windows_container_communicator.go
7 years ago
Adrien Delorme f555e7a9f2 allow a provisioner to timeout
7 years ago
Adrien Delorme a81abd297b Merge remote-tracking branch 'origin/master' into context_provisioner
7 years ago
Adrien Delorme c4f3dccc14 rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts
7 years ago
Adrien Delorme a4bf94dd3c change Builder to be passed a context for cancellation
7 years ago
Megan Marsh af06334114 fix tests
7 years ago
Megan Marsh 6407a579f0 Document why we need windows communicator in code
7 years ago
Megan Marsh 12b9004c76 reduce duplicated code
7 years ago
Megan Marsh 0860edeed8 fix mocks
7 years ago
Megan Marsh 70150ffa0f set powershell entrypoint for windows containers
7 years ago
Megan Marsh 36f2634352 can't use docker cp so call powershell to do this natively. Fix implementation for upload, uploadDir, and download in windows container communicator
7 years ago
Megan Marsh af01860fa9 remove old docker-toolbox limitation.
7 years ago
Megan Marsh 3b87f2a519 stop container before committing if windows
7 years ago
Megan Marsh 8f3313d81e Create new docker communicator for windows containers
7 years ago
Adrien Delorme 9f82b75e57 Use the hashicorp/go-getter to download files
7 years ago
Megan Marsh 3b6ff0fe3e
Merge pull request #7106 from hashicorp/revert_docker_changes
7 years ago
Adrien Delorme f57953d4ff Docker needs a temporary dir that is inside the $HOME dir
7 years ago
Adrien Delorme 9f7b4ffc17
Merge branch 'master' into pr/6950
7 years ago
Ladar Levison 6ac5971288 Fixed cmd order for docker driver. Added config to post proc.
7 years ago
Ladar Levison 10095678c8 Adding driver changes.
7 years ago
Ladar Levison 21fdbadf04 Adding changes to import prototype.
7 years ago
Ladar Levison 050f809a1c Add changes var to docker driver import func.
7 years ago
Adrien Delorme 2718a5ed62 Revert "revert changes to docker entrypoint; since this is a backwards-breaking change it needs to wait for a minor release"
7 years ago
Megan Marsh 2a79d64ae0 revert changes to docker entrypoint; since this is a backwards-breaking change it needs to wait for a minor release
7 years ago
Adrien Delorme b7222d1f56 Add tmp package that offers Dir & File funcs
7 years ago
Ali Rizvi-Santiago a6af04417e Moved the entrypoint argument for the docker builder in front of the image so it's passed correctly as an argument.
7 years ago
Ali Rizvi-Santiago 2e977019e4 Modified the docker builder's default run_command to specify the shell via the entrypoint command line argument as suggested by @vrubiolo in #6920.
7 years ago
Ali Rizvi-Santiago 310ea6c006 Updated docker's default config to use regular bourne shell instead of bourne again. Closes #6920.
7 years ago
Megan Marsh 38cc525ec7 new option allowing user to clean up the ephemeral ssh key from the authorized_keys file
8 years ago
Adrien Delorme 61480f41dc fix some go vet issues in tests ( composite literal uses unkeyed fields )
8 years ago
Adrien Delorme 41f6e0334d refactor all copy pasted sshConfig with into communicator.Config.SSHConfigFunc
8 years ago
Megan Marsh ee1ff3132d remove attempt to discover whether destination is a directory from upload function in various communicators
8 years ago
Matthew Hooker ff64ccda55
Merge pull request #5426 from hashicorp/fix_4915
8 years ago
Matthew Hooker 8cd403425e
test fixes WIP
8 years ago
Matthew Hooker 7a189a83a1
fix imports
8 years ago
Matthew Hooker a831d522be
change run signatures
8 years ago
Matthew Hooker 366dc3da0a
move multistep imports to helper.
8 years ago
Matthew Hooker ebe995c0ff
run goimports
8 years ago
Krzysztof Wilczynski 567b566c23
docker: Remove AWS credentials and Session Token from being shown in the log.
8 years ago
Matthew Hooker b07a0cd6f0
fix tests
9 years ago
Matthew Hooker 1901c0385f
remove login_email from docker
9 years ago
Aaron Browne ffc63a8724 Use amazon common AccessConfig for ecr_login
9 years ago
Aaron Browne 8df643c343 Add aws_profile option to docker-push ecr_login
9 years ago
localghost 5866d4ea24 Move container user inspect to StepConnectDocker.
9 years ago
Megan Marsh 8452ca898c implemented for docker communicator
9 years ago
localghost ba72021274 Fix owner of files uploaded to docker container run as non-root.
9 years ago
Matthew Hooker b3661c1f63
builder/docker: set user during exec.
9 years ago
Matthew Hooker 392af507e0
builder/docker: respect rsync semantics when uploading directories.
9 years ago
Matthew Hooker 4edbd5322c
docker: stream uploads over stdin
9 years ago
Michael Juliano c8db128dc5
Modified func Upload to use docker cp
9 years ago
Megan Marsh ef858857e4 fix bug introduced by 5221
9 years ago
Sergei A Mamonov 07f7183b64 Add docker container dir to template
9 years ago
Megan Marsh 199b9062b0 fix file copy script to prevent error when encountering empty directory
9 years ago
Megan Marsh a2f7a65e35 fix communicator tests
9 years ago
Megan Marsh a281e60e15 de-mangle windows filepath to something docker can handle
9 years ago
Matthew Hooker 6581e0b7d6
add hostkeycallback everywhere else
9 years ago
Matthew Hooker 81522dced0
move packer to hashicorp
9 years ago
Matthew Hooker 79287d7e47
simplify some code
9 years ago
Matthew Hooker 230079f73a
spell fixes
9 years ago
guessi 66615e3f56 reuse the func DockerDriver.Version()
9 years ago
guessi 5eae809b0c improve description
9 years ago
guessi c5e01da3c6 Conditional ignore `force` flag for `docker-tag`
9 years ago
Matthew Hooker c41e32dbc1
print stderr on docker import failure
9 years ago
Matthew Hooker a51f492558
communicator/docker: preserve file mode.
9 years ago
Matthew Hooker 9e2d69fb97
builder/docker: create export dir if needed
9 years ago
Rickard von Essen 112f5abdae
docker: Fix crash when performing log in to ECR with an invalid URL.
9 years ago
Florian Rey 73c5eac4f0 Handle commit author & message the same way
10 years ago
Florian Rey 06bebb63d0 Add log
10 years ago
Florian Rey c925acf502 Introduce docker commit changes
10 years ago
Matthew Hooker 48bdae93d1 aws-sdk: use session.NewSession
10 years ago
Rickard von Essen 13c9db5dd5 Merge pull request #3885 from orivej/on-error
10 years ago