How to do it...

In this recipe, we'll create a temporary machine and install Packer. Then, we'll create the necessary configuration files for Packer to create an image running PHP:

  1. To run Packer, let's first create a Debian GNU/Linux 9 instance with Read/Write access to Compute Engine and Full access to Storage:
  1. SSH into the newly-created machine and install Packer (the binaries are available in
$ cd ~$ sudo apt-get install unzip$ wget$ unzip$ lspacker$ ./packerUsage: packer [--version] [--help] ...

Get Google Cloud Platform Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.