Skip to content

Instantly share code, notes, and snippets.

@ximon18
Created February 22, 2019 10:55
Show Gist options
  • Save ximon18/2367ad3ee4fc988eceb88f32a5602bf1 to your computer and use it in GitHub Desktop.
Save ximon18/2367ad3ee4fc988eceb88f32a5602bf1 to your computer and use it in GitHub Desktop.
Supporting packer templates for bug report concerning 'only' not working for post-provisioner, while 'except' works as expected.
PACKER_LOG=1 PACKER_LOG_PATH=./packer-build-using-except-works.log packer build -only=docker packer-with-except.json
PACKER_LOG=1 PACKER_LOG_PATH=./packer-build-using-only-skips-the-post-provisioner.log packer build -only=docker packer-with-only.json
2019/02/22 11:51:02 [INFO] Packer version: 1.3.4
2019/02/22 11:51:02 Packer Target OS/Arch: linux amd64
2019/02/22 11:51:02 Built with Go Version: go1.11.4
2019/02/22 11:51:02 Detected home directory from env var: /home/ximon
2019/02/22 11:51:02 Using internal plugin for oracle-oci
2019/02/22 11:51:02 Using internal plugin for parallels-iso
2019/02/22 11:51:02 Using internal plugin for cloudstack
2019/02/22 11:51:02 Using internal plugin for hyperv-iso
2019/02/22 11:51:02 Using internal plugin for lxd
2019/02/22 11:51:02 Using internal plugin for profitbricks
2019/02/22 11:51:02 Using internal plugin for virtualbox-iso
2019/02/22 11:51:02 Using internal plugin for amazon-ebsvolume
2019/02/22 11:51:02 Using internal plugin for hcloud
2019/02/22 11:51:02 Using internal plugin for lxc
2019/02/22 11:51:02 Using internal plugin for hyperv-vmcx
2019/02/22 11:51:02 Using internal plugin for ncloud
2019/02/22 11:51:02 Using internal plugin for amazon-chroot
2019/02/22 11:51:02 Using internal plugin for docker
2019/02/22 11:51:02 Using internal plugin for file
2019/02/22 11:51:02 Using internal plugin for oneandone
2019/02/22 11:51:02 Using internal plugin for openstack
2019/02/22 11:51:02 Using internal plugin for qemu
2019/02/22 11:51:02 Using internal plugin for vmware-iso
2019/02/22 11:51:02 Using internal plugin for digitalocean
2019/02/22 11:51:02 Using internal plugin for null
2019/02/22 11:51:02 Using internal plugin for oracle-classic
2019/02/22 11:51:02 Using internal plugin for parallels-pvm
2019/02/22 11:51:02 Using internal plugin for scaleway
2019/02/22 11:51:02 Using internal plugin for tencentcloud-cvm
2019/02/22 11:51:02 Using internal plugin for amazon-ebs
2019/02/22 11:51:02 Using internal plugin for amazon-instance
2019/02/22 11:51:02 Using internal plugin for azure-arm
2019/02/22 11:51:02 Using internal plugin for triton
2019/02/22 11:51:02 Using internal plugin for virtualbox-ovf
2019/02/22 11:51:02 Using internal plugin for vmware-vmx
2019/02/22 11:51:02 Using internal plugin for alicloud-ecs
2019/02/22 11:51:02 Using internal plugin for amazon-ebssurrogate
2019/02/22 11:51:02 Using internal plugin for googlecompute
2019/02/22 11:51:02 Using internal plugin for ansible-local
2019/02/22 11:51:02 Using internal plugin for file
2019/02/22 11:51:02 Using internal plugin for puppet-server
2019/02/22 11:51:02 Using internal plugin for windows-restart
2019/02/22 11:51:02 Using internal plugin for ansible
2019/02/22 11:51:02 Using internal plugin for chef-client
2019/02/22 11:51:02 Using internal plugin for chef-solo
2019/02/22 11:51:02 Using internal plugin for converge
2019/02/22 11:51:02 Using internal plugin for shell
2019/02/22 11:51:02 Using internal plugin for windows-shell
2019/02/22 11:51:02 Using internal plugin for breakpoint
2019/02/22 11:51:02 Using internal plugin for puppet-masterless
2019/02/22 11:51:02 Using internal plugin for salt-masterless
2019/02/22 11:51:02 Using internal plugin for powershell
2019/02/22 11:51:02 Using internal plugin for shell-local
2019/02/22 11:51:02 Using internal plugin for vsphere-template
2019/02/22 11:51:02 Using internal plugin for alicloud-import
2019/02/22 11:51:02 Using internal plugin for amazon-import
2019/02/22 11:51:02 Using internal plugin for checksum
2019/02/22 11:51:02 Using internal plugin for docker-tag
2019/02/22 11:51:02 Using internal plugin for googlecompute-import
2019/02/22 11:51:02 Using internal plugin for vagrant
2019/02/22 11:51:02 Using internal plugin for docker-import
2019/02/22 11:51:02 Using internal plugin for googlecompute-export
2019/02/22 11:51:02 Using internal plugin for vsphere
2019/02/22 11:51:02 Using internal plugin for artifice
2019/02/22 11:51:02 Using internal plugin for compress
2019/02/22 11:51:02 Using internal plugin for docker-push
2019/02/22 11:51:02 Using internal plugin for docker-save
2019/02/22 11:51:02 Using internal plugin for manifest
2019/02/22 11:51:02 Using internal plugin for shell-local
2019/02/22 11:51:02 Using internal plugin for vagrant-cloud
2019/02/22 11:51:02 Detected home directory from env var: /home/ximon
2019/02/22 11:51:02 Attempting to open config file: /home/ximon/.packerconfig
2019/02/22 11:51:02 [WARN] Config file doesn't exist: /home/ximon/.packerconfig
2019/02/22 11:51:02 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[lxd:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd hcloud:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hcloud lxc:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc ncloud:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-ncloud file:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file tencentcloud-cvm:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-tencentcloud-cvm amazon-instance:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance oracle-oci:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci alicloud-ecs:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs triton:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton docker:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker digitalocean:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean virtualbox-ovf:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf parallels-iso:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso oneandone:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone openstack:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack vmware-iso:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso vmware-vmx:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx googlecompute:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute cloudstack:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack qemu:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu scaleway:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-scaleway hyperv-vmcx:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx null:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null oracle-classic:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-classic virtualbox-iso:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso amazon-chroot:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot parallels-pvm:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm amazon-ebs:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs amazon-ebssurrogate:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate amazon-ebsvolume:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume hyperv-iso:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso azure-arm:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm profitbricks:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks] PostProcessors:map[amazon-import:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import googlecompute-import:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-import googlecompute-export:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export docker-push:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push alicloud-import:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import vsphere:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere shell-local:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local vagrant:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant artifice:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice compress:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress manifest:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest checksum:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum docker-tag:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag docker-import:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import docker-save:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save vagrant-cloud:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud vsphere-template:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template] Provisioners:map[ansible-local:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local windows-restart:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart shell-local:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local salt-masterless:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless chef-solo:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo shell:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell breakpoint:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-breakpoint powershell:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell puppet-server:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server chef-client:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client converge:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge puppet-masterless:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless file:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file ansible:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible windows-shell:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell]}
2019/02/22 11:51:02 Detected home directory from env var: /home/ximon
2019/02/22 11:51:02 Setting cache directory: /home/ximon/Documents/code/opendnssec/cloud/packer/packer_cache
2019/02/22 11:51:02 Detected home directory from env var: /home/ximon
2019/02/22 11:51:02 Loading builder: docker
2019/02/22 11:51:02 Plugin could not be found. Checking same directory as executable.
2019/02/22 11:51:02 Current exe path: /home/ximon/bin/packer
2019/02/22 11:51:02 Creating plugin client for path: /home/ximon/bin/packer
2019/02/22 11:51:02 Starting plugin: /home/ximon/bin/packer []string{"/home/ximon/bin/packer", "plugin", "packer-builder-docker"}
2019/02/22 11:51:02 Waiting for RPC address for: /home/ximon/bin/packer
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 [INFO] Packer version: 1.3.4
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Packer Target OS/Arch: linux amd64
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Built with Go Version: go1.11.4
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Detected home directory from env var: /home/ximon
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Attempting to open config file: /home/ximon/.packerconfig
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 [WARN] Config file doesn't exist: /home/ximon/.packerconfig
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Detected home directory from env var: /home/ximon
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Setting cache directory: /home/ximon/Documents/code/opendnssec/cloud/packer/packer_cache
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 args: []string{"packer-builder-docker"}
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Plugin minimum port: 10000
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Detected home directory from env var: /home/ximon
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Plugin maximum port: 25000
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Plugin address: unix /tmp/packer-plugin979555351
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Waiting for connection...
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Serving a plugin connection...
2019/02/22 11:51:02 Loading provisioner: shell
2019/02/22 11:51:02 Plugin could not be found. Checking same directory as executable.
2019/02/22 11:51:02 Current exe path: /home/ximon/bin/packer
2019/02/22 11:51:02 Creating plugin client for path: /home/ximon/bin/packer
2019/02/22 11:51:02 Starting plugin: /home/ximon/bin/packer []string{"/home/ximon/bin/packer", "plugin", "packer-provisioner-shell"}
2019/02/22 11:51:02 Waiting for RPC address for: /home/ximon/bin/packer
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 [INFO] Packer version: 1.3.4
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Packer Target OS/Arch: linux amd64
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Built with Go Version: go1.11.4
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Detected home directory from env var: /home/ximon
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Attempting to open config file: /home/ximon/.packerconfig
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 [WARN] Config file doesn't exist: /home/ximon/.packerconfig
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Detected home directory from env var: /home/ximon
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Setting cache directory: /home/ximon/Documents/code/opendnssec/cloud/packer/packer_cache
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Detected home directory from env var: /home/ximon
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 args: []string{"packer-provisioner-shell"}
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Plugin minimum port: 10000
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Plugin maximum port: 25000
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Plugin address: unix /tmp/packer-plugin256663944
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Waiting for connection...
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Serving a plugin connection...
2019/02/22 11:51:02 Loading post-processor: docker-tag
2019/02/22 11:51:02 Plugin could not be found. Checking same directory as executable.
2019/02/22 11:51:02 Current exe path: /home/ximon/bin/packer
2019/02/22 11:51:02 Creating plugin client for path: /home/ximon/bin/packer
2019/02/22 11:51:02 Starting plugin: /home/ximon/bin/packer []string{"/home/ximon/bin/packer", "plugin", "packer-post-processor-docker-tag"}
2019/02/22 11:51:02 Waiting for RPC address for: /home/ximon/bin/packer
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 [INFO] Packer version: 1.3.4
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Packer Target OS/Arch: linux amd64
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Built with Go Version: go1.11.4
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Detected home directory from env var: /home/ximon
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Attempting to open config file: /home/ximon/.packerconfig
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 [WARN] Config file doesn't exist: /home/ximon/.packerconfig
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Detected home directory from env var: /home/ximon
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Setting cache directory: /home/ximon/Documents/code/opendnssec/cloud/packer/packer_cache
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 args: []string{"packer-post-processor-docker-tag"}
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Plugin minimum port: 10000
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Plugin maximum port: 25000
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Detected home directory from env var: /home/ximon
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Plugin address: unix /tmp/packer-plugin182235878
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Waiting for connection...
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Serving a plugin connection...
2019/02/22 11:51:02 ui: docker output will be in this color.
2019/02/22 11:51:02 ui:
2019/02/22 11:51:02 Build debug mode: false
2019/02/22 11:51:02 Force build: false
2019/02/22 11:51:02 On error:
2019/02/22 11:51:02 Preparing build: docker
2019/02/22 11:51:02 Waiting on builds to complete...
2019/02/22 11:51:02 Starting build run: docker
2019/02/22 11:51:02 Running builder: docker
2019/02/22 11:51:02 [INFO] (telemetry) Starting builder docker
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 [DEBUG] Docker version: 18.9.2
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 [DEBUG] Container will be committed
2019/02/22 11:51:02 ui: ==> docker: Creating a temporary directory for sharing data...
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Detected home directory from env var: /home/ximon
2019/02/22 11:51:02 ui: ==> docker: Pulling Docker image: ubuntu:18.04
2019/02/22 11:51:02 packer: 2019/02/22 11:51:02 Executing: /usr/bin/docker [pull ubuntu:18.04]
2019/02/22 11:51:03 ui:  docker: 18.04: Pulling from library/ubuntu
2019/02/22 11:51:03 ui:  docker: Digest: sha256:7a47ccc3bbe8a451b500d2b53104868b46d60ee8f5b35a24b41a86077c650210
2019/02/22 11:51:03 ui:  docker: Status: Image is up to date for ubuntu:18.04
2019/02/22 11:51:03 ui: ==> docker: Starting docker container...
2019/02/22 11:51:03 ui:  docker: Run command: docker run -v /home/ximon/.packer.d/tmp:/packer-files -d -i -t ubuntu:18.04 /bin/bash
2019/02/22 11:51:03 packer: 2019/02/22 11:51:03 Starting container with args: [run -v /home/ximon/.packer.d/tmp:/packer-files -d -i -t ubuntu:18.04 /bin/bash]
2019/02/22 11:51:03 packer: 2019/02/22 11:51:03 Waiting for container to finish starting
2019/02/22 11:51:04 ui:  docker: Container ID: 3cb7a300d631430327418995cfe51643c988ae73a5e67f6583de0eacfcfd54a2
2019/02/22 11:51:04 ui: ==> docker: Using docker communicator to connect: 172.17.0.3
2019/02/22 11:51:04 packer: 2019/02/22 11:51:04 Running the provision hook
2019/02/22 11:51:04 [INFO] (telemetry) Starting provisioner shell
2019/02/22 11:51:04 ui: ==> docker: Provisioning with shell script: /tmp/packer-shell081924935
2019/02/22 11:51:04 packer: 2019/02/22 11:51:04 Opening /tmp/packer-shell081924935 for reading
2019/02/22 11:51:04 packer: 2019/02/22 11:51:04 [INFO] 33 bytes written for 'uploadData'
2019/02/22 11:51:04 [INFO] 33 bytes written for 'uploadData'
2019/02/22 11:51:04 packer: 2019/02/22 11:51:04 Copying to /tmp/script_8072.sh on container 3cb7a300d631430327418995cfe51643c988ae73a5e67f6583de0eacfcfd54a2.
2019/02/22 11:51:04 packer: 2019/02/22 11:51:04 Copied 33 bytes for /tmp/script_8072.sh
2019/02/22 11:51:05 packer: 2019/02/22 11:51:05 Executing docker exec -i 3cb7a300d631430327418995cfe51643c988ae73a5e67f6583de0eacfcfd54a2 /bin/sh -c (chmod 0755 /tmp/script_8072.sh):
2019/02/22 11:51:05 packer: 2019/02/22 11:51:05 [INFO] RPC endpoint: Communicator ended with: 0
2019/02/22 11:51:05 [INFO] RPC client: Communicator ended with: 0
2019/02/22 11:51:05 [INFO] RPC endpoint: Communicator ended with: 0
2019/02/22 11:51:05 packer: 2019/02/22 11:51:05 [INFO] RPC client: Communicator ended with: 0
2019/02/22 11:51:05 packer: 2019/02/22 11:51:05 Executing docker exec -i 3cb7a300d631430327418995cfe51643c988ae73a5e67f6583de0eacfcfd54a2 /bin/sh -c (chmod +x /tmp/script_8072.sh; PACKER_BUILDER_TYPE='docker' PACKER_BUILD_NAME='docker' /tmp/script_8072.sh):
2019/02/22 11:51:05 ui:  docker: do something
2019/02/22 11:51:05 packer: 2019/02/22 11:51:05 [INFO] RPC endpoint: Communicator ended with: 0
2019/02/22 11:51:05 [INFO] 0 bytes written for 'stderr'
2019/02/22 11:51:05 [INFO] 13 bytes written for 'stdout'
2019/02/22 11:51:05 [INFO] RPC client: Communicator ended with: 0
2019/02/22 11:51:05 [INFO] RPC endpoint: Communicator ended with: 0
2019/02/22 11:51:05 packer: 2019/02/22 11:51:05 [INFO] 13 bytes written for 'stdout'
2019/02/22 11:51:05 packer: 2019/02/22 11:51:05 [INFO] 0 bytes written for 'stderr'
2019/02/22 11:51:05 packer: 2019/02/22 11:51:05 [INFO] RPC client: Communicator ended with: 0
2019/02/22 11:51:05 packer: 2019/02/22 11:51:05 Executing docker exec -i 3cb7a300d631430327418995cfe51643c988ae73a5e67f6583de0eacfcfd54a2 /bin/sh -c (rm -f /tmp/script_8072.sh):
2019/02/22 11:51:05 packer: 2019/02/22 11:51:05 [INFO] RPC endpoint: Communicator ended with: 0
2019/02/22 11:51:05 [INFO] RPC client: Communicator ended with: 0
2019/02/22 11:51:05 [INFO] RPC endpoint: Communicator ended with: 0
2019/02/22 11:51:05 packer: 2019/02/22 11:51:05 [INFO] RPC client: Communicator ended with: 0
2019/02/22 11:51:05 packer: 2019/02/22 11:51:05 Executing docker exec -i 3cb7a300d631430327418995cfe51643c988ae73a5e67f6583de0eacfcfd54a2 /bin/sh -c (rm -f ):
2019/02/22 11:51:05 packer: 2019/02/22 11:51:05 [INFO] RPC endpoint: Communicator ended with: 0
2019/02/22 11:51:05 [INFO] RPC client: Communicator ended with: 0
2019/02/22 11:51:05 [INFO] RPC endpoint: Communicator ended with: 0
2019/02/22 11:51:05 packer: 2019/02/22 11:51:05 [INFO] RPC client: Communicator ended with: 0
2019/02/22 11:51:05 [INFO] (telemetry) ending shell
2019/02/22 11:51:05 ui: ==> docker: Committing the container
2019/02/22 11:51:05 packer: 2019/02/22 11:51:05 Committing container with args: [commit 3cb7a300d631430327418995cfe51643c988ae73a5e67f6583de0eacfcfd54a2]
2019/02/22 11:51:05 ui:  docker: Image ID: sha256:cdbbdc33c841b5dd0c123990f56113218ddbeb11a0fd41bdffd149fd0765a0cf
2019/02/22 11:51:05 ui: ==> docker: Killing the container: 3cb7a300d631430327418995cfe51643c988ae73a5e67f6583de0eacfcfd54a2
2019/02/22 11:51:06 [INFO] (telemetry) ending docker
2019/02/22 11:51:06 ui: ==> docker: Running post-processor: docker-tag
2019/02/22 11:51:06 [INFO] (telemetry) Starting post-processor docker-tag
2019/02/22 11:51:06 ui:  docker (docker-tag): Tagging image: sha256:cdbbdc33c841b5dd0c123990f56113218ddbeb11a0fd41bdffd149fd0765a0cf
2019/02/22 11:51:06 ui:  docker (docker-tag): Repository: myrepo/myimage:mytag
2019/02/22 11:51:06 [INFO] (telemetry) ending docker-tag
2019/02/22 11:51:06 Flagging to keep original artifact from post-processor 'docker-tag'
2019/02/22 11:51:06 ui: Build 'docker' finished.
2019/02/22 11:51:06 Builds completed. Waiting on interrupt barrier...
2019/02/22 11:51:06 ui:
==> Builds finished. The artifacts of successful builds are:
2019/02/22 11:51:06 machine readable: docker,artifact-count []string{"2"}
2019/02/22 11:51:06 machine readable: docker,artifact []string{"0", "builder-id", "packer.post-processor.docker-import"}
2019/02/22 11:51:06 machine readable: docker,artifact []string{"0", "id", "sha256:cdbbdc33c841b5dd0c123990f56113218ddbeb11a0fd41bdffd149fd0765a0cf"}
2019/02/22 11:51:06 machine readable: docker,artifact []string{"0", "string", "Imported Docker image: sha256:cdbbdc33c841b5dd0c123990f56113218ddbeb11a0fd41bdffd149fd0765a0cf"}
2019/02/22 11:51:06 machine readable: docker,artifact []string{"0", "files-count", "0"}
2019/02/22 11:51:06 machine readable: docker,artifact []string{"0", "end"}
2019/02/22 11:51:06 ui: --> docker: Imported Docker image: sha256:cdbbdc33c841b5dd0c123990f56113218ddbeb11a0fd41bdffd149fd0765a0cf
2019/02/22 11:51:06 machine readable: docker,artifact []string{"1", "builder-id", "packer.post-processor.docker-tag"}
2019/02/22 11:51:06 machine readable: docker,artifact []string{"1", "id", "myrepo/myimage:mytag"}
2019/02/22 11:51:06 machine readable: docker,artifact []string{"1", "string", "Imported Docker image: myrepo/myimage:mytag"}
2019/02/22 11:51:06 machine readable: docker,artifact []string{"1", "files-count", "0"}
2019/02/22 11:51:06 machine readable: docker,artifact []string{"1", "end"}
2019/02/22 11:51:06 ui: --> docker: Imported Docker image: myrepo/myimage:mytag
2019/02/22 11:51:06 [INFO] (telemetry) Finalizing.
2019/02/22 11:51:06 waiting for all plugin processes to complete...
2019/02/22 11:51:06 /home/ximon/bin/packer: plugin process exited
2019/02/22 11:51:06 /home/ximon/bin/packer: plugin process exited
2019/02/22 11:51:06 /home/ximon/bin/packer: plugin process exited
2019/02/22 11:51:49 [INFO] Packer version: 1.3.4
2019/02/22 11:51:49 Packer Target OS/Arch: linux amd64
2019/02/22 11:51:49 Built with Go Version: go1.11.4
2019/02/22 11:51:49 Detected home directory from env var: /home/ximon
2019/02/22 11:51:49 Using internal plugin for alicloud-ecs
2019/02/22 11:51:49 Using internal plugin for digitalocean
2019/02/22 11:51:49 Using internal plugin for triton
2019/02/22 11:51:49 Using internal plugin for amazon-instance
2019/02/22 11:51:49 Using internal plugin for azure-arm
2019/02/22 11:51:49 Using internal plugin for amazon-ebssurrogate
2019/02/22 11:51:49 Using internal plugin for virtualbox-iso
2019/02/22 11:51:49 Using internal plugin for amazon-ebs
2019/02/22 11:51:49 Using internal plugin for cloudstack
2019/02/22 11:51:49 Using internal plugin for file
2019/02/22 11:51:49 Using internal plugin for oracle-classic
2019/02/22 11:51:49 Using internal plugin for oracle-oci
2019/02/22 11:51:49 Using internal plugin for hyperv-iso
2019/02/22 11:51:49 Using internal plugin for profitbricks
2019/02/22 11:51:49 Using internal plugin for virtualbox-ovf
2019/02/22 11:51:49 Using internal plugin for vmware-vmx
2019/02/22 11:51:49 Using internal plugin for docker
2019/02/22 11:51:49 Using internal plugin for null
2019/02/22 11:51:49 Using internal plugin for oneandone
2019/02/22 11:51:49 Using internal plugin for openstack
2019/02/22 11:51:49 Using internal plugin for qemu
2019/02/22 11:51:49 Using internal plugin for amazon-ebsvolume
2019/02/22 11:51:49 Using internal plugin for hcloud
2019/02/22 11:51:49 Using internal plugin for hyperv-vmcx
2019/02/22 11:51:49 Using internal plugin for vmware-iso
2019/02/22 11:51:49 Using internal plugin for parallels-iso
2019/02/22 11:51:49 Using internal plugin for parallels-pvm
2019/02/22 11:51:49 Using internal plugin for scaleway
2019/02/22 11:51:49 Using internal plugin for amazon-chroot
2019/02/22 11:51:49 Using internal plugin for googlecompute
2019/02/22 11:51:49 Using internal plugin for lxc
2019/02/22 11:51:49 Using internal plugin for lxd
2019/02/22 11:51:49 Using internal plugin for ncloud
2019/02/22 11:51:49 Using internal plugin for tencentcloud-cvm
2019/02/22 11:51:49 Using internal plugin for chef-client
2019/02/22 11:51:49 Using internal plugin for file
2019/02/22 11:51:49 Using internal plugin for powershell
2019/02/22 11:51:49 Using internal plugin for puppet-server
2019/02/22 11:51:49 Using internal plugin for breakpoint
2019/02/22 11:51:49 Using internal plugin for salt-masterless
2019/02/22 11:51:49 Using internal plugin for ansible
2019/02/22 11:51:49 Using internal plugin for ansible-local
2019/02/22 11:51:49 Using internal plugin for converge
2019/02/22 11:51:49 Using internal plugin for puppet-masterless
2019/02/22 11:51:49 Using internal plugin for shell
2019/02/22 11:51:49 Using internal plugin for shell-local
2019/02/22 11:51:49 Using internal plugin for windows-restart
2019/02/22 11:51:49 Using internal plugin for windows-shell
2019/02/22 11:51:49 Using internal plugin for chef-solo
2019/02/22 11:51:49 Using internal plugin for alicloud-import
2019/02/22 11:51:49 Using internal plugin for docker-import
2019/02/22 11:51:49 Using internal plugin for googlecompute-export
2019/02/22 11:51:49 Using internal plugin for googlecompute-import
2019/02/22 11:51:49 Using internal plugin for shell-local
2019/02/22 11:51:49 Using internal plugin for vagrant-cloud
2019/02/22 11:51:49 Using internal plugin for artifice
2019/02/22 11:51:49 Using internal plugin for checksum
2019/02/22 11:51:49 Using internal plugin for docker-push
2019/02/22 11:51:49 Using internal plugin for docker-tag
2019/02/22 11:51:49 Using internal plugin for amazon-import
2019/02/22 11:51:49 Using internal plugin for vagrant
2019/02/22 11:51:49 Using internal plugin for vsphere
2019/02/22 11:51:49 Using internal plugin for compress
2019/02/22 11:51:49 Using internal plugin for docker-save
2019/02/22 11:51:49 Using internal plugin for manifest
2019/02/22 11:51:49 Using internal plugin for vsphere-template
2019/02/22 11:51:49 Detected home directory from env var: /home/ximon
2019/02/22 11:51:49 Attempting to open config file: /home/ximon/.packerconfig
2019/02/22 11:51:49 [WARN] Config file doesn't exist: /home/ximon/.packerconfig
2019/02/22 11:51:49 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[oracle-classic:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-classic virtualbox-ovf:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf docker:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker amazon-instance:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance cloudstack:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack vmware-vmx:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx googlecompute:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute digitalocean:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean triton:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton azure-arm:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm amazon-ebs:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs file:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file hyperv-iso:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso null:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null lxc:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc openstack:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack hyperv-vmcx:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx tencentcloud-cvm:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-tencentcloud-cvm virtualbox-iso:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso amazon-ebsvolume:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume hcloud:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hcloud parallels-iso:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso amazon-chroot:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot lxd:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd qemu:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu parallels-pvm:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm amazon-ebssurrogate:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate oracle-oci:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci profitbricks:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks vmware-iso:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso alicloud-ecs:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs oneandone:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone scaleway:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-scaleway ncloud:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-ncloud] PostProcessors:map[alicloud-import:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import docker-import:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import amazon-import:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import compress:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress vsphere:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere docker-save:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save docker-push:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push vagrant:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant manifest:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest googlecompute-export:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export googlecompute-import:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-import shell-local:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local vagrant-cloud:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud artifice:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice checksum:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum docker-tag:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag vsphere-template:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template] Provisioners:map[windows-shell:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell shell-local:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local windows-restart:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart ansible:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible converge:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge salt-masterless:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless powershell:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell puppet-server:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server breakpoint:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-breakpoint ansible-local:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local puppet-masterless:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless shell:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell chef-client:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client file:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file chef-solo:/home/ximon/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo]}
2019/02/22 11:51:49 Detected home directory from env var: /home/ximon
2019/02/22 11:51:49 Setting cache directory: /home/ximon/Documents/code/opendnssec/cloud/packer/packer_cache
2019/02/22 11:51:49 Detected home directory from env var: /home/ximon
2019/02/22 11:51:49 Loading builder: docker
2019/02/22 11:51:49 Plugin could not be found. Checking same directory as executable.
2019/02/22 11:51:49 Current exe path: /home/ximon/bin/packer
2019/02/22 11:51:49 Creating plugin client for path: /home/ximon/bin/packer
2019/02/22 11:51:49 Starting plugin: /home/ximon/bin/packer []string{"/home/ximon/bin/packer", "plugin", "packer-builder-docker"}
2019/02/22 11:51:49 Waiting for RPC address for: /home/ximon/bin/packer
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 [INFO] Packer version: 1.3.4
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Packer Target OS/Arch: linux amd64
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Built with Go Version: go1.11.4
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Detected home directory from env var: /home/ximon
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Attempting to open config file: /home/ximon/.packerconfig
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 [WARN] Config file doesn't exist: /home/ximon/.packerconfig
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Detected home directory from env var: /home/ximon
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Setting cache directory: /home/ximon/Documents/code/opendnssec/cloud/packer/packer_cache
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Detected home directory from env var: /home/ximon
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 args: []string{"packer-builder-docker"}
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Plugin minimum port: 10000
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Plugin maximum port: 25000
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Plugin address: unix /tmp/packer-plugin996181067
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Waiting for connection...
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Serving a plugin connection...
2019/02/22 11:51:49 Loading provisioner: shell
2019/02/22 11:51:49 Plugin could not be found. Checking same directory as executable.
2019/02/22 11:51:49 Current exe path: /home/ximon/bin/packer
2019/02/22 11:51:49 Creating plugin client for path: /home/ximon/bin/packer
2019/02/22 11:51:49 Starting plugin: /home/ximon/bin/packer []string{"/home/ximon/bin/packer", "plugin", "packer-provisioner-shell"}
2019/02/22 11:51:49 Waiting for RPC address for: /home/ximon/bin/packer
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 [INFO] Packer version: 1.3.4
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Packer Target OS/Arch: linux amd64
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Built with Go Version: go1.11.4
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Detected home directory from env var: /home/ximon
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Attempting to open config file: /home/ximon/.packerconfig
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 [WARN] Config file doesn't exist: /home/ximon/.packerconfig
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Detected home directory from env var: /home/ximon
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Setting cache directory: /home/ximon/Documents/code/opendnssec/cloud/packer/packer_cache
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 args: []string{"packer-provisioner-shell"}
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Detected home directory from env var: /home/ximon
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Plugin minimum port: 10000
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Plugin maximum port: 25000
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Plugin address: unix /tmp/packer-plugin889846340
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Waiting for connection...
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Serving a plugin connection...
2019/02/22 11:51:49 ui: docker output will be in this color.
2019/02/22 11:51:49 ui:
2019/02/22 11:51:49 Build debug mode: false
2019/02/22 11:51:49 Force build: false
2019/02/22 11:51:49 On error:
2019/02/22 11:51:49 Preparing build: docker
2019/02/22 11:51:49 Waiting on builds to complete...
2019/02/22 11:51:49 Starting build run: docker
2019/02/22 11:51:49 Running builder: docker
2019/02/22 11:51:49 [INFO] (telemetry) Starting builder docker
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 [DEBUG] Docker version: 18.9.2
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 [DEBUG] Container will be committed
2019/02/22 11:51:49 ui: ==> docker: Creating a temporary directory for sharing data...
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Detected home directory from env var: /home/ximon
2019/02/22 11:51:49 ui: ==> docker: Pulling Docker image: ubuntu:18.04
2019/02/22 11:51:49 packer: 2019/02/22 11:51:49 Executing: /usr/bin/docker [pull ubuntu:18.04]
2019/02/22 11:51:50 ui:  docker: 18.04: Pulling from library/ubuntu
2019/02/22 11:51:50 ui:  docker: Digest: sha256:7a47ccc3bbe8a451b500d2b53104868b46d60ee8f5b35a24b41a86077c650210
2019/02/22 11:51:50 ui:  docker: Status: Image is up to date for ubuntu:18.04
2019/02/22 11:51:50 ui: ==> docker: Starting docker container...
2019/02/22 11:51:50 ui:  docker: Run command: docker run -v /home/ximon/.packer.d/tmp:/packer-files -d -i -t ubuntu:18.04 /bin/bash
2019/02/22 11:51:50 packer: 2019/02/22 11:51:50 Starting container with args: [run -v /home/ximon/.packer.d/tmp:/packer-files -d -i -t ubuntu:18.04 /bin/bash]
2019/02/22 11:51:50 packer: 2019/02/22 11:51:50 Waiting for container to finish starting
2019/02/22 11:51:51 ui:  docker: Container ID: 95bce23a037b25c0956898f6ff08a0b4e88c39b97f30b0ed766b5caa989cd21a
2019/02/22 11:51:51 ui: ==> docker: Using docker communicator to connect: 172.17.0.3
2019/02/22 11:51:51 packer: 2019/02/22 11:51:51 Running the provision hook
2019/02/22 11:51:51 [INFO] (telemetry) Starting provisioner shell
2019/02/22 11:51:51 ui: ==> docker: Provisioning with shell script: /tmp/packer-shell481359571
2019/02/22 11:51:51 packer: 2019/02/22 11:51:51 Opening /tmp/packer-shell481359571 for reading
2019/02/22 11:51:51 packer: 2019/02/22 11:51:51 [INFO] 33 bytes written for 'uploadData'
2019/02/22 11:51:51 [INFO] 33 bytes written for 'uploadData'
2019/02/22 11:51:51 packer: 2019/02/22 11:51:51 Copying to /tmp/script_8537.sh on container 95bce23a037b25c0956898f6ff08a0b4e88c39b97f30b0ed766b5caa989cd21a.
2019/02/22 11:51:51 packer: 2019/02/22 11:51:51 Copied 33 bytes for /tmp/script_8537.sh
2019/02/22 11:51:51 packer: 2019/02/22 11:51:51 Executing docker exec -i 95bce23a037b25c0956898f6ff08a0b4e88c39b97f30b0ed766b5caa989cd21a /bin/sh -c (chmod 0755 /tmp/script_8537.sh):
2019/02/22 11:51:51 packer: 2019/02/22 11:51:51 [INFO] RPC endpoint: Communicator ended with: 0
2019/02/22 11:51:51 [INFO] RPC client: Communicator ended with: 0
2019/02/22 11:51:51 [INFO] RPC endpoint: Communicator ended with: 0
2019/02/22 11:51:51 packer: 2019/02/22 11:51:51 [INFO] RPC client: Communicator ended with: 0
2019/02/22 11:51:51 packer: 2019/02/22 11:51:51 Executing docker exec -i 95bce23a037b25c0956898f6ff08a0b4e88c39b97f30b0ed766b5caa989cd21a /bin/sh -c (chmod +x /tmp/script_8537.sh; PACKER_BUILDER_TYPE='docker' PACKER_BUILD_NAME='docker' /tmp/script_8537.sh):
2019/02/22 11:51:51 ui:  docker: do something
2019/02/22 11:51:51 packer: 2019/02/22 11:51:51 [INFO] RPC endpoint: Communicator ended with: 0
2019/02/22 11:51:51 [INFO] 13 bytes written for 'stdout'
2019/02/22 11:51:51 [INFO] 0 bytes written for 'stderr'
2019/02/22 11:51:51 [INFO] RPC client: Communicator ended with: 0
2019/02/22 11:51:51 [INFO] RPC endpoint: Communicator ended with: 0
2019/02/22 11:51:51 packer: 2019/02/22 11:51:51 [INFO] 13 bytes written for 'stdout'
2019/02/22 11:51:51 packer: 2019/02/22 11:51:51 [INFO] 0 bytes written for 'stderr'
2019/02/22 11:51:51 packer: 2019/02/22 11:51:51 [INFO] RPC client: Communicator ended with: 0
2019/02/22 11:51:51 packer: 2019/02/22 11:51:51 Executing docker exec -i 95bce23a037b25c0956898f6ff08a0b4e88c39b97f30b0ed766b5caa989cd21a /bin/sh -c (rm -f /tmp/script_8537.sh):
2019/02/22 11:51:52 packer: 2019/02/22 11:51:52 [INFO] RPC endpoint: Communicator ended with: 0
2019/02/22 11:51:52 [INFO] RPC client: Communicator ended with: 0
2019/02/22 11:51:52 [INFO] RPC endpoint: Communicator ended with: 0
2019/02/22 11:51:52 packer: 2019/02/22 11:51:52 [INFO] RPC client: Communicator ended with: 0
2019/02/22 11:51:52 packer: 2019/02/22 11:51:52 Executing docker exec -i 95bce23a037b25c0956898f6ff08a0b4e88c39b97f30b0ed766b5caa989cd21a /bin/sh -c (rm -f ):
2019/02/22 11:51:52 packer: 2019/02/22 11:51:52 [INFO] RPC endpoint: Communicator ended with: 0
2019/02/22 11:51:52 [INFO] RPC client: Communicator ended with: 0
2019/02/22 11:51:52 [INFO] RPC endpoint: Communicator ended with: 0
2019/02/22 11:51:52 packer: 2019/02/22 11:51:52 [INFO] RPC client: Communicator ended with: 0
2019/02/22 11:51:52 [INFO] (telemetry) ending shell
2019/02/22 11:51:52 ui: ==> docker: Committing the container
2019/02/22 11:51:52 packer: 2019/02/22 11:51:52 Committing container with args: [commit 95bce23a037b25c0956898f6ff08a0b4e88c39b97f30b0ed766b5caa989cd21a]
2019/02/22 11:51:52 ui:  docker: Image ID: sha256:2cf33ee122d9851a9877a4868dcfcb362867c5b21e7d0be69699e601a6186af2
2019/02/22 11:51:52 ui: ==> docker: Killing the container: 95bce23a037b25c0956898f6ff08a0b4e88c39b97f30b0ed766b5caa989cd21a
2019/02/22 11:51:52 [INFO] (telemetry) ending docker
2019/02/22 11:51:52 ui: Build 'docker' finished.
2019/02/22 11:51:52 Builds completed. Waiting on interrupt barrier...
2019/02/22 11:51:52 ui:
==> Builds finished. The artifacts of successful builds are:
2019/02/22 11:51:52 machine readable: docker,artifact-count []string{"1"}
2019/02/22 11:51:52 machine readable: docker,artifact []string{"0", "builder-id", "packer.post-processor.docker-import"}
2019/02/22 11:51:52 machine readable: docker,artifact []string{"0", "id", "sha256:2cf33ee122d9851a9877a4868dcfcb362867c5b21e7d0be69699e601a6186af2"}
2019/02/22 11:51:52 machine readable: docker,artifact []string{"0", "string", "Imported Docker image: sha256:2cf33ee122d9851a9877a4868dcfcb362867c5b21e7d0be69699e601a6186af2"}
2019/02/22 11:51:52 machine readable: docker,artifact []string{"0", "files-count", "0"}
2019/02/22 11:51:52 machine readable: docker,artifact []string{"0", "end"}
2019/02/22 11:51:52 ui: --> docker: Imported Docker image: sha256:2cf33ee122d9851a9877a4868dcfcb362867c5b21e7d0be69699e601a6186af2
2019/02/22 11:51:52 [INFO] (telemetry) Finalizing.
2019/02/22 11:51:53 waiting for all plugin processes to complete...
2019/02/22 11:51:53 /home/ximon/bin/packer: plugin process exited
2019/02/22 11:51:53 /home/ximon/bin/packer: plugin process exited
{
"builders": [
{
"type": "digitalocean",
"image": "ubuntu-18-04-x64",
"region": "ams3",
"size": "512mb",
"ssh_username": "root"
},
{
"type": "docker",
"image": "ubuntu:18.04",
"commit": "true"
}
],
"provisioners": [
{
"type": "shell",
"inline": [
"echo 'do something'"
]
}
],
"post-processors": [
{
"type": "docker-tag",
"except": ["digitalocean"],
"repository": "myrepo/myimage",
"tag": "mytag"
}
]
}
{
"builders": [
{
"type": "digitalocean",
"image": "ubuntu-18-04-x64",
"region": "ams3",
"size": "512mb",
"ssh_username": "root"
},
{
"type": "docker",
"image": "ubuntu:18.04",
"commit": "true"
}
],
"provisioners": [
{
"type": "shell",
"inline": [
"echo 'do something'"
]
}
],
"post-processors": [
{
"type": "docker-tag",
"only": ["docker"],
"repository": "myrepo/myimage",
"tag": "mytag"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment