{"id":13673304,"url":"https://github.com/dontlaugh/packer-provisioner-deno","last_synced_at":"2025-04-23T03:32:13.547Z","repository":{"id":119284259,"uuid":"187930925","full_name":"dontlaugh/packer-provisioner-deno","owner":"dontlaugh","description":"A Packer plugin that runs Deno scripts for provisioning VMs and containers","archived":false,"fork":false,"pushed_at":"2020-04-03T00:40:42.000Z","size":75,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-20T15:00:07.551Z","etag":null,"topics":["deno","packer-plugin","packer-provisioner"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dontlaugh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-05-22T00:01:18.000Z","updated_at":"2024-07-22T15:34:21.000Z","dependencies_parsed_at":"2024-01-02T22:57:26.532Z","dependency_job_id":null,"html_url":"https://github.com/dontlaugh/packer-provisioner-deno","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dontlaugh%2Fpacker-provisioner-deno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dontlaugh%2Fpacker-provisioner-deno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dontlaugh%2Fpacker-provisioner-deno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dontlaugh%2Fpacker-provisioner-deno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dontlaugh","download_url":"https://codeload.github.com/dontlaugh/packer-provisioner-deno/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250365799,"owners_count":21418753,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deno","packer-plugin","packer-provisioner"],"created_at":"2024-08-02T10:00:33.164Z","updated_at":"2025-04-23T03:32:13.241Z","avatar_url":"https://github.com/dontlaugh.png","language":"Go","funding_links":[],"categories":["Libraries","基础设施","Tools","Uncategorized"],"sub_categories":["Custom Provisioners","JAM Stack/静态站点","Online Playgrounds","XML","Uncategorized","Assistants"],"readme":"# packer-provisioner-deno\n\nRun Deno scripts to provision stuff with Packer.\n\nThis plugin installs deno on the target machine, runs `deno bundle` locally, \nuploads the bundled scripts onto the target machine, and executes them.\n\n## Installation\n\nThis provisioner is a Packer plugin. [See the docs for an overview](https://www.packer.io/docs/extending/plugins.html#installing-plugins).\n\nBuild or download this plugin and place in\n\n```\n$HOME/.packer.d/plugins\n```\n\nYou may need to create the plugins directory.\n\n## Provisioner Configuration\n\nYou must specify `\"type\": \"deno\"` in a provisioners stanza to use this plugin.\n\nThe following provisioner config keys are supported. See also the **examples** directory.\n\n* `local_deno_bin` (string) - A fully qualified path to a local deno executable. This\n  binary will be used for local bundling and uploaded to the target `remote_folder`.\n  Useful if you are building deno from source. Other version specifiers ignored.\n* `target_deno_version` (string) - a version passed to the deno installer script.\n  Must match a git tag from deno's [releases](https://github.com/denoland/deno/releases).\n* `remote_folder` (string) - The target directory where `scripts` will be uploaded.\n* `skip_install` (boolean) - If `true`, do not install Deno on the target machine, but\n  assume it is already present.\n* `scripts` (array of string) - A list of paths to TypeScript files that will be\n  passed to `deno run -A`, one by one, in order. These are your provisioning scripts.\n  Currently, these must be standalone scripts with no path-based dependencies.\n\n## Development and Tests\n\nYou will need Go 1.13 or later. **$GOPATH/bin** should be on your PATH. \n\nIf you want to hack, make a symlink from **$GOPATH/bin/packer-provisioner-deno**\nto the packer plugins directory. Something like this should work, after an\ninitial `go install`:\n\n```\nln -s $GOPATH/bin/packer-provisioner-deno $HOME/.packer.d/plugins/packer-provisioner-deno\n```\n\nAfter that, run the test script\n\n```\n./test.sh\n```\n\nA test build will run in a Docker container.\n\n## TODO\n\nWe want to accomplish the following\n\n- [x] Install deno onto target system\n- [x] Upload individual deno scripts\n- [x] Execute individual deno scripts as root\n- [x] Add a DigitalOcean cloud builder test\n- [x] Allow uploading local deno builds easily (for testing local dev builds)\n- [x] Manually bundle scripts locally and upload those.\n- [ ] Execute scripts as non-root user\n- [ ] Specify sandboxing flags in the packer config (`--allow-net` and friends; we run with `-A` right now)\n- [ ] Global system install of deno outside any user's HOME\n- [ ] Add a Vagrant builder test\n- [ ] Specify alternative install command (for test deno builds fetchable from network)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdontlaugh%2Fpacker-provisioner-deno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdontlaugh%2Fpacker-provisioner-deno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdontlaugh%2Fpacker-provisioner-deno/lists"}