{"id":51226641,"url":"https://github.com/ducttape-infra/machinefile","last_synced_at":"2026-06-28T12:03:37.669Z","repository":{"id":280069070,"uuid":"940896934","full_name":"ducttape-infra/machinefile","owner":"ducttape-infra","description":"A simple executor that allows you to run `Dockerfile`/`Containerfile` commands directly on a local or remote host ","archived":false,"fork":false,"pushed_at":"2026-06-24T03:24:28.000Z","size":1809,"stargazers_count":4,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-25T04:11:25.316Z","etag":null,"topics":["build-tool","containerfile","containerfiles","containers","deploytool","devops-tools","docker","dockerfile","dockerfiles","infrastructure-as-code","podman"],"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/ducttape-infra.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-01T02:27:56.000Z","updated_at":"2026-06-25T02:01:02.000Z","dependencies_parsed_at":"2025-09-19T09:56:48.473Z","dependency_job_id":"8ddec550-d97a-4279-9570-6c03e5f037b0","html_url":"https://github.com/ducttape-infra/machinefile","commit_stats":null,"previous_names":["gbraad-redhat/machinefile","machinefile/machinefile","ducttape-infra/machinefile"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/ducttape-infra/machinefile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducttape-infra%2Fmachinefile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducttape-infra%2Fmachinefile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducttape-infra%2Fmachinefile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducttape-infra%2Fmachinefile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ducttape-infra","download_url":"https://codeload.github.com/ducttape-infra/machinefile/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducttape-infra%2Fmachinefile/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34887328,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-28T02:00:05.809Z","response_time":54,"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":["build-tool","containerfile","containerfiles","containers","deploytool","devops-tools","docker","dockerfile","dockerfiles","infrastructure-as-code","podman"],"created_at":"2026-06-28T12:03:37.196Z","updated_at":"2026-06-28T12:03:37.661Z","avatar_url":"https://github.com/ducttape-infra.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Machinefile\n===========\n\n[![Machinefile build](https://github.com/ducttape-infra/machinefile/actions/workflows/build-process.yml/badge.svg)](https://github.com/ducttape-infra/machinefile/actions/workflows/build-process.yml) [![Machinefile test](https://github.com/gbraad-actions/machinefile-executor-action/actions/workflows/build-process.yml/badge.svg)](https://github.com/gbraad-actions/machinefile-executor-action/actions/workflows/build-process.yml) [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/ducttape-infra/machinefile/)\n\nA simple executor that allows you to run `Dockerfile`/`Containerfile` commands directly on the host system without using Docker, Podman or any other container engine. It's useful for executing build commands in a predictable environment or setting up development tools. The Machinefile executor tool parses the Dockerfile and executes the commands on the local or remote host system. \n\n\n## Supported commands\n\nThe executor supports the followuing `Dockerfile` commands:\n\n  - `RUN`: Execute commands\n  - `COPY`: Copy files from context to a specific location\n  - `ADD`: Similar to COPY, but with additional features\n  - `USER`: Switch to different user\n  - `ENV`: Set environment variables\n  - `ARG`: Define build-time variables\n\n\n## Usage\n\n\u003e [!NOTE]\n\u003e This should ideally be run as `root`.\n\n```bash\n$ ./machinefile test/Machinefile [context]\n```\n\nTo target a remote machine, you have to set up remote keys:\n\n```bash\n$ ./machinefile -host dotfedora -user root test/Machinefile [context]\n```\n\nor \n```bash\n$ ./machinefile root@dotfedora test/Machinefile\n```\n\n\n### Passing arguments\n\n```bash\n# Single ARG\n./machinefile --arg=USER=\"runner\" test/Machinefile [context]\n\n# Multiple ARGs\n./machinefile --arg=USER=\"runner\" --arg=VERSION=\"1.0\" test/Machinefile [context]\n\n# ARGs without quotes (if value doesn't contain spaces)\n./machinefile --arg=USER=runner test/Machinefile [context]\n```\n\n## Shebang usage\n\nIf a Containerfile uses the following shebang option:\n\n`Machinefile`\n```dockerfile\n#!/bin/env -S machinefile --stdin\nFROM ...\n\nRUN ...\n```\n\nit is possible to execute the file directly\n```bash\n$ ./Machinefile root@dotfedora --arg USER=gbraad [context]\n```\n\n\n## GitHub Action\n\nTo incorporate this in your build process, you can use the [Machinfile executor](https://github.com/gbraad-actions/machinefile-executor-action) GitHub Action.\n\n```yaml\n    - name: Run Dockerfile commands\n      uses: gbraad-actions/machinefile-executor-action@v1\n      with:\n        containerfile: 'containers/Containerfile-devtools'\n        context: '.'\n        arguments: --arg=USER=gbraad\n```\n\n## Development\n\n[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/ducttape-infra/machinefile)\n\n\n\n## Author\n\n| [![\"Gerard Braad\"](http://gravatar.com/avatar/e466994eea3c2a1672564e45aca844d0.png?s=60)](http://gbraad.nl \"Gerard Braad \u003cme@gbraad.nl\u003e\") |\n|---|\n| [@gbraad](https://gbraad.nl/social) |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fducttape-infra%2Fmachinefile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fducttape-infra%2Fmachinefile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fducttape-infra%2Fmachinefile/lists"}