{"id":28405934,"url":"https://github.com/txn2/txagent","last_synced_at":"2026-06-21T01:33:06.200Z","repository":{"id":57593326,"uuid":"120273752","full_name":"txn2/txagent","owner":"txn2","description":"Docker based iot container orchestration for arm based devices (Raspberry Pi / Orange Pi / Tinkerboard) or traditional servers.","archived":false,"fork":false,"pushed_at":"2018-04-26T03:49:27.000Z","size":33,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-06-21T01:33:03.698Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://txn2.com","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/txn2.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}},"created_at":"2018-02-05T08:07:01.000Z","updated_at":"2019-07-15T12:19:21.000Z","dependencies_parsed_at":"2022-09-06T12:20:38.999Z","dependency_job_id":null,"html_url":"https://github.com/txn2/txagent","commit_stats":null,"previous_names":["cjimti/iotagent"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/txn2/txagent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txn2%2Ftxagent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txn2%2Ftxagent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txn2%2Ftxagent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txn2%2Ftxagent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/txn2","download_url":"https://codeload.github.com/txn2/txagent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txn2%2Ftxagent/sbom","scorecard":{"id":904579,"data":{"date":"2025-08-11","repo":{"name":"github.com/txn2/txagent","commit":"5572f6706a85537edcccb54ee122d56191c7c9fb"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.0.4 not signed: https://api.github.com/repos/txn2/txagent/releases/10727277","Warn: release artifact v1.0.2 not signed: https://api.github.com/repos/txn2/txagent/releases/9602272","Warn: release artifact v1.0.1 not signed: https://api.github.com/repos/txn2/txagent/releases/9601993","Warn: release artifact v1.0.0 not signed: https://api.github.com/repos/txn2/txagent/releases/9601972","Warn: release artifact v0.1.1 not signed: https://api.github.com/repos/txn2/txagent/releases/9566920","Warn: release artifact v1.0.4 does not have provenance: https://api.github.com/repos/txn2/txagent/releases/10727277","Warn: release artifact v1.0.2 does not have provenance: https://api.github.com/repos/txn2/txagent/releases/9602272","Warn: release artifact v1.0.1 does not have provenance: https://api.github.com/repos/txn2/txagent/releases/9601993","Warn: release artifact v1.0.0 does not have provenance: https://api.github.com/repos/txn2/txagent/releases/9601972","Warn: release artifact v0.1.1 does not have provenance: https://api.github.com/repos/txn2/txagent/releases/9566920"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile:1","Warn: containerImage not pinned by hash: Dockerfile:11: pin your Docker image by updating arm32v6/alpine:3.7 to arm32v6/alpine:3.7@sha256:c51b8029218660b67e5513ae1945f9fcd11cb8f4fa536e8a66f1566f68c81ade","Warn: containerImage not pinned by hash: dockerfiles/amd64/Dockerfile:1: pin your Docker image by updating alpine:3.7 to alpine:3.7@sha256:8421d9a84432575381bfabd248f1eb56f3aa21d9d7cd2511583c68c9b7511d10","Warn: containerImage not pinned by hash: dockerfiles/arm32v6/Dockerfile:1: pin your Docker image by updating arm32v6/alpine:3.7 to arm32v6/alpine:3.7@sha256:c51b8029218660b67e5513ae1945f9fcd11cb8f4fa536e8a66f1566f68c81ade","Info:   0 out of   4 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}}]},"last_synced_at":"2025-08-24T16:52:30.033Z","repository_id":57593326,"created_at":"2025-08-24T16:52:30.034Z","updated_at":"2025-08-24T16:52:30.034Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34591166,"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-20T02:00:06.407Z","response_time":98,"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":[],"created_at":"2025-06-01T22:09:34.991Z","updated_at":"2026-06-21T01:33:06.180Z","avatar_url":"https://github.com/txn2.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# txagent - Simplified Docker container provisioning.\n\n# Stable / Work in progress.\n\nThis code is used in production on a few hundred iot devices. It was developed for with a very specific, yet recurring use case. Professionally I develop software for a number of platforms, including iot. As a hobbyist, I have a dozen or so different devices that I provision with Docker. This project is in the early stages of becoming more general purpose. In the mean time, you may have a similar need. **txagent** is an uncomplicated way to provision iot devices running your Docker containers. Let me know if this project is useful to you and what features you would like to see.\n\n----\n\nThis project is intended to be a very simple docker container for iot devices, that are able to run docker. **txagent** has been tested on a few arm based devices, but is primarily used for the Raspberry Pi.\n\nPushing updates and configuration to devices is a complex and complicated problem, having to keep track of each device and it's state. **txagent** uses a **pull** model for basic provisioning.\n\nThe container runs a compiled Go application that can be configured to get a remote or local json configuration file, then uses the configuration to pull, run and monitor containers.\n\n\n\n## Supported Devices\n\nAnything that can run Docker. (Windows is untested)\n\n## Getting Started\n\nThe agent can be configured with environment variables, command line flags, or a combination on both. Command line argument will override environment variables.\n\n### Environment Variables\n\n| Prupose                    | Environment Variable | Flag  | Default Value |\n| -------                    | -------------------- | ----  | ------------- |\n| Container configuration.   | AGENT_CFG_URL        | -cfg  | file://conf/defs.json |\n| Repository authentication. | AGENT_AUTH_URL       | -auth | file://conf/auth.json |\n| Poll frequency.            | AGENT_CFG_POLL       | -poll | 30    |\n| Remove existing containers on start. |            | -rm   | false |\n\n\n## Testing (with source)\n\nGet a list of commands.\n\n```bash\ngo run ./agent.go --help\n```\n\n### Example #1: Run example configurations from source.\n\n```bash\ngo run ./agent.go\n```\n\n## Using as a lib\n\nsee GoDocs\nhttps://godoc.org/github.com/txn2/txagent/txagent\n\n### Development\n\nUses [goreleaser](https://goreleaser.com):\n\nInstall goreleaser with brew (mac):\n`brew install goreleaser/tap/goreleaser`\n\nBuild without releasing:\n`goreleaser --skip-publish --rm-dist --skip-validate`\n\n\n## TODO\n\n- Get \u0026 check configuration on interval (ensure state)\n- Configuration auth\n- Validate configs\n- Documentation, Use Case and Examples\n\n## DONE\n\n- Registry authentication\n- Command line flag `--rm` to remove running containers\n- Added command line flags `--cfg` and `--poll` (see `--help`)\n- Run containers\n- Pull containers\n- Create volumes\n- Create networks (if they do not exists)\n- Load and marshal configuration json\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftxn2%2Ftxagent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftxn2%2Ftxagent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftxn2%2Ftxagent/lists"}