Closed liwo closed 4 years ago
Hey there, I implemented a possible solution for this. Could you try out the binaries and let me know if it works for you? https://app.circleci.com/pipelines/github/hashicorp/packer/7325/workflows/9d990fb5-b067-46b2-8424-61e70948aff3/jobs/83406/artifacts
Hi Sylvia,
thank you for your very quick response. I can confirm that the shell-local post-processor now passes the artifact correctly and the docker-tag post-processor after it receives the artifact and continues on. Unfortunately I now get an error message I can't explain:
* Post-processor failed: unexpected EOF
This happens with above minimal example as well as my real template. If I remove the "docker-push" step from the template the error disappears.
Full build log from above minimal example: https://gist.github.com/liwo/da9535a59daea599e24288495865cdb0
Can you please have another look?
Thanks for testing! While writing the fix I changed a docker-push line of code which caused the error, but now is fixed. Could you try out the new binaries, please? Here they are https://app.circleci.com/pipelines/github/hashicorp/packer/7339/workflows/ba8b6550-1b1c-4721-a1d8-a4002a9346e5/jobs/83592/artifacts
Hi Sylvia,
thanks for taking care again! The minimal example now errors out at docker push because "my.registry" is obviously not a real registry, but that's totally fine. My real template now runs through without error and works as expected.
Thank you for your time and your really fast fix!
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Overview of the Issue
I want to run tests on a created docker image before pushing to the registry. As I don't want any tests to influence the resulting image I want to run the tests as a post processor.
I created a post-processor definition like the following:
According to documentation, shell-local post processor should pass the given artifact as is, therefore I expect this to work. But I get the following error message in packer 1.6.2:
Reproduction Steps
Packer version
1.6.2
Operating system and Environment details
Docker version 18.06.3-ce, build d7080c1 Host: ubuntu 18.04 amd64
Log Fragments and crash.log files