Home

Awesome

packer-provisioner-deno

Run Deno scripts to provision stuff with Packer.

This plugin installs deno on the target machine, runs deno bundle locally, uploads the bundled scripts onto the target machine, and executes them.

Installation

This provisioner is a Packer plugin. See the docs for an overview.

Build or download this plugin and place in

$HOME/.packer.d/plugins

You may need to create the plugins directory.

Provisioner Configuration

You must specify "type": "deno" in a provisioners stanza to use this plugin.

The following provisioner config keys are supported. See also the examples directory.

Development and Tests

You will need Go 1.13 or later. $GOPATH/bin should be on your PATH.

If you want to hack, make a symlink from $GOPATH/bin/packer-provisioner-deno to the packer plugins directory. Something like this should work, after an initial go install:

ln -s $GOPATH/bin/packer-provisioner-deno $HOME/.packer.d/plugins/packer-provisioner-deno

After that, run the test script

./test.sh

A test build will run in a Docker container.

TODO

We want to accomplish the following