packer-cn/builder/docker
Adrien Delorme 9f82b75e57 Use the hashicorp/go-getter to download files
* removed packer.Cache and references since packer.Cache is never used except in the download step. The download step now uses the new func packer.CachePath(targetPath) for this, the behavior is the same.
* removed download code from packer that was reimplemented into the go-getter library: progress bar, http download restart, checksuming from file, skip already downloaded files, symlinking, make a download cancellable by context.
* on windows if packer is running without symlinking rights and we are getting a local file, the file will be copied instead to avoid errors.
* added unit tests for step_download that are now CI tested on windows, mac & linux.
* files are now downloaded under cache dir `sha1(filename + "?checksum=" + checksum) + file_extension`
* since the output dir is based on the source url and the checksum, when the checksum fails, the file is auto deleted.
* a download file is protected and locked by a file lock,
* updated docs
* updated go modules and vendors
2019-03-13 12:11:58 +01:00
..
test-fixtures
artifact_export.go
artifact_export_test.go run goimports 2018-01-22 17:21:10 -08:00
artifact_import.go
artifact_import_test.go run goimports 2018-01-22 17:21:10 -08:00
builder.go Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00
builder_test.go run goimports 2018-01-22 17:21:10 -08:00
comm.go refactor all copy pasted sshConfig with into communicator.Config.SSHConfigFunc 2018-08-22 17:02:23 +02:00
communicator.go remove attempt to discover whether destination is a directory from upload function in various communicators 2018-04-10 08:13:06 -07:00
communicator_test.go Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00
config.go Revert "revert changes to docker entrypoint; since this is a backwards-breaking change it needs to wait for a minor release" 2018-12-13 10:23:46 +01:00
config_test.go
driver.go Adding changes to import prototype. 2018-12-17 22:35:59 -06:00
driver_docker.go Fixed cmd order for docker driver. Added config to post proc. 2018-12-17 22:59:41 -06:00
driver_docker_test.go
driver_mock.go Adding changes to import prototype. 2018-12-17 22:35:59 -06:00
driver_mock_test.go
ecr_login.go Use amazon common AccessConfig for ecr_login 2017-10-17 15:00:19 -04:00
exec.go run goimports 2018-01-22 17:21:10 -08:00
exec_test.go
step_commit.go fix imports 2018-01-24 17:09:17 -08:00
step_commit_test.go test fixes WIP 2018-01-24 17:09:17 -08:00
step_connect_docker.go fix imports 2018-01-24 17:09:17 -08:00
step_export.go fix imports 2018-01-24 17:09:17 -08:00
step_export_test.go test fixes WIP 2018-01-24 17:09:17 -08:00
step_pull.go fix imports 2018-01-24 17:09:17 -08:00
step_pull_test.go test fixes WIP 2018-01-24 17:09:17 -08:00
step_run.go fix imports 2018-01-24 17:09:17 -08:00
step_run_test.go test fixes WIP 2018-01-24 17:09:17 -08:00
step_temp_dir.go Docker needs a temporary dir that is inside the $HOME dir 2019-01-18 16:42:04 +01:00
step_temp_dir_test.go Add tmp package that offers Dir & File funcs 2018-12-12 16:35:57 +01:00
step_test.go fix imports 2018-01-24 17:09:17 -08:00