{"id":26964272,"url":"https://github.com/mimani68/deployer-agent-framework","last_synced_at":"2025-04-03T06:30:24.719Z","repository":{"id":133774991,"uuid":"399080186","full_name":"mimani68/deployer-agent-framework","owner":"mimani68","description":"Deployer Agent Framework","archived":false,"fork":false,"pushed_at":"2024-08-23T10:47:43.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-23T11:37:42.772Z","etag":null,"topics":["cd","ci","cicd","continuous-delivery","continuous-deployment","continuous-integration","devops","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/mimani68.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}},"created_at":"2021-08-23T11:39:33.000Z","updated_at":"2024-08-23T10:47:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"db4078f2-a40e-4d63-aba3-6f31a611bf4f","html_url":"https://github.com/mimani68/deployer-agent-framework","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/mimani68%2Fdeployer-agent-framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mimani68%2Fdeployer-agent-framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mimani68%2Fdeployer-agent-framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mimani68%2Fdeployer-agent-framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mimani68","download_url":"https://codeload.github.com/mimani68/deployer-agent-framework/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246947681,"owners_count":20859298,"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":["cd","ci","cicd","continuous-delivery","continuous-deployment","continuous-integration","devops","python"],"created_at":"2025-04-03T06:30:23.330Z","updated_at":"2025-04-03T06:30:24.594Z","avatar_url":"https://github.com/mimani68.png","language":"Python","readme":"# Deployer Agent Framework\n\nSimple and secure deployer and script runner\n\n## Installation\n\n```bash\npython -m pip install --user virtualenv\npython -m venv venv\npip install -r requirements.txt\n```\n## Run application\n\n```bash\nflask run --host=0.0.0.0 --port=27514\n```\n\n## Usage\n\n### A) Simple and Unsecure connection\n\n```bash\ncurl -XPOST --header \"Content-Type: application/json\" \"http://localhost:27514/?cmd=test\"  --data '{\"accessToken\":\"37109860-3c1b-11ee-8265-cba1ae806b41\"}'\n```\n\n### B) Secure data transportation\n\n\u003e [Create public and private keys](./docs/rsa-encryption.md)\n\nSend request with `cURL`\n\n```bash\nmsg=`echo \"{\\\"accessToken\\\":\\\"76448262-5bef-416a-9c5a-9200c2300e82\\\"}\" | openssl pkeyutl -encrypt -inkey public.pem -pubin -in - | base64 -w 0`\n```\n\n\u003e Note: test your payload\n\n```bash\necho \"$msg\" | base64 -d - | openssl pkeyutl -decrypt -inkey private.pem -in -\n```\n\nAnd the send request\n```bash\ncurl -XPOST --header \"Content-Type: application/json\" \"http://localhost:27514/?cmd=test\" --data \"$msg\"\n```\n### C) Docker-base\n\n#### C-1) Build docker image\n\n```bash\ndocker build -t deployer:1.0.0 .\n```\n\n#### C-2) Usage of dockerfile\n\n```bash\ndocker run \\\n    --name deployer \\\n    -d \\\n    -e SECURE_CONNECTION=\"false\" \\\n    -e RETRY_INTERVAL=10 \\\n    -e ACCESS_TOKEN=\"37109860-3c1b-11ee-8265-cba1ae806b41\" \\\n    -v /var/run/docker.sock:/var/run/docker.sock:ro \\\n    -v ${PWD}/tmp:/app/tmp \\\n    -v ${PWD}/scripts:/app/scripts \\\n    -v ${PWD}/certs:/app/certs \\\n    -v ${PWD}/logs:/app/logs \\\n    -p 27514:27514 \\\n    deployer:latest\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmimani68%2Fdeployer-agent-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmimani68%2Fdeployer-agent-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmimani68%2Fdeployer-agent-framework/lists"}