{"id":22783155,"url":"https://github.com/frontmage/docker_runner","last_synced_at":"2025-03-30T15:13:50.233Z","repository":{"id":40665069,"uuid":"481072186","full_name":"FrontMage/docker_runner","owner":"FrontMage","description":"docker runner","archived":false,"fork":false,"pushed_at":"2022-10-17T01:29:37.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-05T16:39:32.686Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/FrontMage.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}},"created_at":"2022-04-13T04:40:39.000Z","updated_at":"2022-05-12T07:56:57.000Z","dependencies_parsed_at":"2023-01-20T06:18:02.783Z","dependency_job_id":null,"html_url":"https://github.com/FrontMage/docker_runner","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/FrontMage%2Fdocker_runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrontMage%2Fdocker_runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrontMage%2Fdocker_runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrontMage%2Fdocker_runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FrontMage","download_url":"https://codeload.github.com/FrontMage/docker_runner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246334430,"owners_count":20760644,"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":[],"created_at":"2024-12-11T22:07:10.554Z","updated_at":"2025-03-30T15:13:50.210Z","avatar_url":"https://github.com/FrontMage.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker_runner\n\nusage\n\n```rust\nuse docker_runner::{Docker, DockerRunner};\nuse std::time::Duration;\nlet docker = Docker::connect_with_socket_defaults().unwrap();\n// change the max_container_running_time to desire value\nlet dr = DockerRunner::new(docker, 1, \"runner_container\".into(), \"yes\".into(), 10);\n// call this to free images\ndr.clear_images_by_whitelist().await.unwrap();\ndr.run(\"busybox:latest\", vec![\"sleep\", \"100\"])\n    .await\n    .unwrap();\ndr.run(\"busybox:latest\", vec![\"sleep\", \"100\"])\n    .await\n    .unwrap();\ndr.run(\"busybox:latest\", vec![\"sleep\", \"100\"])\n    .await\n    .unwrap();\nassert_eq!(3, dr.list_runner_containers().await.unwrap().len());\ntokio::time::sleep(Duration::from_secs(3)).await;\n// call this to free containers\ndr.clear_timeout_containers().await.unwrap();\nassert_eq!(0, dr.list_runner_containers().await.unwrap().len());\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrontmage%2Fdocker_runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrontmage%2Fdocker_runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrontmage%2Fdocker_runner/lists"}