{"id":17606266,"url":"https://github.com/davidecavestro/dwservice-agent-docker","last_synced_at":"2026-05-06T11:32:33.659Z","repository":{"id":146095875,"uuid":"492941304","full_name":"davidecavestro/dwservice-agent-docker","owner":"davidecavestro","description":"A way to containerize dwservice","archived":false,"fork":false,"pushed_at":"2022-05-19T06:51:42.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T23:16:02.514Z","etag":null,"topics":["docker","docker-compose","dwservice","remote-control","remote-shell"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/davidecavestro.png","metadata":{"files":{"readme":"README.adoc","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-16T17:47:58.000Z","updated_at":"2024-12-19T15:29:00.000Z","dependencies_parsed_at":"2023-06-15T01:00:45.015Z","dependency_job_id":null,"html_url":"https://github.com/davidecavestro/dwservice-agent-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/davidecavestro/dwservice-agent-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidecavestro%2Fdwservice-agent-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidecavestro%2Fdwservice-agent-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidecavestro%2Fdwservice-agent-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidecavestro%2Fdwservice-agent-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidecavestro","download_url":"https://codeload.github.com/davidecavestro/dwservice-agent-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidecavestro%2Fdwservice-agent-docker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261197396,"owners_count":23123707,"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":["docker","docker-compose","dwservice","remote-control","remote-shell"],"created_at":"2024-10-22T15:44:08.136Z","updated_at":"2026-05-06T11:32:28.632Z","avatar_url":"https://github.com/davidecavestro.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"= dwservice-agent-docker - A way to containerize dwservice\n\n== What's this?\n\nThis repo provides some config and a script to package the dwservice agent\ninto a docker image and run it.\n\n\n== How to use it?\n\nCreate a new agent from https://github.com/dwservice/agent[dwservice] UI \nand take note of the agent code.\n\nCopy the `.env.example` file into `.env`, updating the _AGENT_CODE_ variable\nand adding the packages you need into the container.\n\nAdapt the `docker-compose.yml` entries as per your needs\n(i.e. use `privileged: true`, `network_mode: \"host\"`, set a `restart_policy`).\n\nFinally run `docker-compose build \u0026\u0026 docker-compose up`.\n\n\n== How does it work?\n\n* the config folder is mounted into the container at `/config` path\n* the entrypoint.sh script looks for a file named `/config/config.json`\n* if doesn't exist or is not valid, the entrypoint launches the config\n  generation routine passing the agent code obtained from the\n  _AGENT_CODE_ environment variable\n* the entrypoint creates at `/app/core/config.json` a symlink pointing\n  to `/config/config.json`\n* the entrypoint launches the agent\n\n=== Container side\n\nRelevant files as seen within the container\n\n```\n/\n├── config\n│   └── config.json                            # 2. config file generated by dwservice\n└── app\n    ├── core\n    │   ├── agent.py                           # 4. agent launch routine\n    │   ├── config.json -\u003e /config/config.json # 3. link to config file\n    │   └── ...\n    ├── make\n    │   ├── create_config.py                   # 1. config generation routine\n    │   └── ...\n    └── ... \n```\n\n=== Host side\n\nRelevant files as seen from the host\n\n```\n.\n├── config\n│   └── config.json     # config file generated by dwservice\n├── .env                # your config\n├── docker-compose.yml\n├── Dockerfile\n├── entrypoint.sh\n└── ...\n\n```\n\n== License\n\nThis software is released under the MIT License.\n\nAll trademarks and product names are the property of their respective owners.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidecavestro%2Fdwservice-agent-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidecavestro%2Fdwservice-agent-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidecavestro%2Fdwservice-agent-docker/lists"}