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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.