![]() ![]() ![]() ![]() You should now be comfortable with basic Packer usage, should understand templates, defining builds, provisioners, post-processors, and more. This is the end of the getting started tutorials for Packer. In this tutorial, you added post-processors to your Packer template to tag Docker images. Note that you can add as many post-processors blocks as you want, or mix-and-match the one-off post-processors with the post-processors blocks to create multiple pathways for post-processing. The artifacts of successful builds are: -> : Imported Docker image: sha256:2d0b6deb04c736d3928a99a1a4c74df5144ddfc52b6756139ed143c3b1fea6ae -> : Imported Docker image: learn-packer:packer-rocks with tags learn-packer:ubuntu-xenial learn-packer:packer-rocks -> -bionic: Imported Docker image: sha256:c53211544dce810160d545587a92ed952802a536a2a55d7abe3946186f0944c4 -> -bionic: Imported Docker image: learn-packer:packer-rocks with tags learn-packer:ubuntu-bionic learn-packer:packer-rocks => Wait completed after 15 seconds 837 milliseconds => Builds finished. Build '-bionic' finished after 15 seconds 837 milliseconds. => : Running post-processor: (type docker-tag) docker.ubuntu (docker-tag): Tagging image: sha256:2d0b6deb04c736d3928a99a1a4c74df5144ddfc52b6756139ed143c3b1fea6ae docker.ubuntu (docker-tag): Repository: learn-packer:ubuntu-xenial => -bionic: Running post-processor: (type docker-tag) docker.ubuntu-bionic (docker-tag): Tagging image: sha256:c53211544dce810160d545587a92ed952802a536a2a55d7abe3946186f0944c4 docker.ubuntu-bionic (docker-tag): Repository: learn-packer:ubuntu-bionic docker.ubuntu (docker-tag): Tagging image: sha256:2d0b6deb04c736d3928a99a1a4c74df5144ddfc52b6756139ed143c3b1fea6ae docker.ubuntu (docker-tag): Repository: learn-packer:packer-rocks docker.ubuntu-bionic (docker-tag): Tagging image: sha256:c53211544dce810160d545587a92ed952802a536a2a55d7abe3946186f0944c4 docker.ubuntu-bionic (docker-tag): Repository: learn-packer:packer-rocks Build '' finished after 15 seconds 693 milliseconds. => : Pulling Docker image: ubuntu:bionic #. => -bionic: Pulling Docker image: ubuntu:bionic => : Creating a temporary directory for sharing data. => -bionic: Creating a temporary directory for sharing data. ![]()
0 Comments
Leave a Reply. |