{"id":13840270,"url":"https://github.com/jdolitsky/lupo","last_synced_at":"2026-04-30T09:38:36.424Z","repository":{"id":147312878,"uuid":"172156090","full_name":"jdolitsky/lupo","owner":"jdolitsky","description":"Build Porter bundles with Lua","archived":false,"fork":false,"pushed_at":"2019-02-26T10:23:24.000Z","size":295,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T17:51:33.320Z","etag":null,"topics":["cnab","go","golang","lua","porter"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jdolitsky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-02-23T01:14:29.000Z","updated_at":"2019-02-26T10:23:24.000Z","dependencies_parsed_at":"2024-01-20T21:49:11.976Z","dependency_job_id":"c9332979-ce3f-40a7-8bb3-407da5fdb56d","html_url":"https://github.com/jdolitsky/lupo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jdolitsky/lupo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdolitsky%2Flupo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdolitsky%2Flupo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdolitsky%2Flupo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdolitsky%2Flupo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdolitsky","download_url":"https://codeload.github.com/jdolitsky/lupo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdolitsky%2Flupo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32460781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cnab","go","golang","lua","porter"],"created_at":"2024-08-04T17:00:44.717Z","updated_at":"2026-04-30T09:38:36.405Z","avatar_url":"https://github.com/jdolitsky.png","language":"Go","funding_links":[],"categories":["Community-Projects"],"sub_categories":["Docker-App"],"readme":"\u003cimg align=\"right\" src=\"lupo.png\" width=\"140px\" /\u003e\n\n# lupo\n\n`lupo` is a pre-processor for [Porter](https://porter.sh/) which allows you to build bundles with Lua.\n\n## Install\n\n*Note: system should already have a working Porter installation (see [install instructions](https://porter.sh/install/)). There must also be a `luac` executable in PATH (temporarily required by [Azure/golua](https://github.com/Azure/golua)).*\n\nJust build from source and copy into PATH (requires git, make, and Go 1.11+):\n```\n(\n  set -x \u0026\u0026 mkdir -p $GOPATH/src/github.com/jdolitsky/ \u0026\u0026 \\\n  cd $GOPATH/src/github.com/jdolitsky/ \u0026\u0026 \\\n  [ -d lupo/ ] || git clone git@github.com:jdolitsky/lupo.git \u0026\u0026 \\\n  cd lupo/ \u0026\u0026 make build \u0026\u0026 sudo mv bin/lupo /usr/local/bin/\n)\n```\n\n## How to use\n\nSimply use the `lupo` command in place of the `porter` command.\n\nReplace your existing `porter.yaml` bundle definition with `porter.lua`.\n\nHere is a simple `porter.lua` example (notice global `bundle` variable):\n```lua\nlocal name = \"my-bundle\"\nlocal version = \"0.1.0\"\nlocal description = \"this application is extremely important\"\n\n-- Example of pushing to your personal Docker Hub account,\n-- assuming USER env var matches your Docker Hub username\n-- (make sure you create the \"my-bundle\" repo ahead of time)\nlocal registryHost = \"docker.io\"\nlocal registryRepo = os.getenv(\"USER\") .. \"/\" .. name\n\n-- Returns valid input for exec mixin\nlocal function execEcho (desc, msg)\n    return {description = desc, command = \"bash\", arguments = {\"-c\", \"echo \" .. msg}}\nend\n\nbundle = {\n    name =  name,\n    version = version,\n    description = description,\n    invocationImage = registryHost .. \"/\" .. registryRepo .. \":\" .. version,\n    mixins = {\"exec\"},\n    install = {\n        {\n            exec = execEcho(\"Install \" .. name, \"Hello World\")\n        }\n    },\n    uninstall = {\n        {\n            exec = execEcho(\"Uninstall \" .. name, \"Goodbye World\")\n        }\n    }\n}\n```\n\nRun `lupo` to build the bundle from `porter.lua`:\n```\n$ lupo build\nCopying dependencies ===\u003e\nCopying mixins ===\u003e\nCopying mixin exec ===\u003e\nCopying mixin porter ===\u003e\n...\n```\n\nIf a file named `porter.lua` is detected in the working directory, `lupo` will attempt to use this to generate a `porter.yaml` file in the format expected by Porter, then run Porter itself.\n\nNote: if there is an existing `porter.yaml`, it will be completely overwritten. You may even wish to place `porter.yaml` in your `.gitignore`, as it is dynamically generated each run.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdolitsky%2Flupo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdolitsky%2Flupo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdolitsky%2Flupo/lists"}