Skip to content

Package

All we have to do now is ZIP the binary up as our Ansible code expects to see a ZIP archive:

1
zip -r httpcats.zip httpcats static

Simple, but let's explain it.

We're giving the -r flag to zip because we need it to recursively include files inside of directories.

The second argument, httpcats.zip is the name of the ZIP file we want to create.

Then we provide it with two things to add to the ZIP file: the binary we compiled and the directory called static/, BUT notice that in the zip command we didn't type static/ we typed static (without the /.) This is because we want zip to include the directory and its contents (-r) and not just the contents (static/).

Our package is ready to be deployed.


Last update: August 25, 2021