{"id":20408851,"url":"https://github.com/dockersamples/gopher-task-system","last_synced_at":"2025-04-12T15:41:30.432Z","repository":{"id":55640044,"uuid":"511389924","full_name":"dockersamples/gopher-task-system","owner":"dockersamples","description":"A Task System using Go Docker SDK.","archived":false,"fork":false,"pushed_at":"2024-12-01T03:38:39.000Z","size":621,"stargazers_count":24,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-26T10:11:20.102Z","etag":null,"topics":["docker","go","sdk"],"latest_commit_sha":null,"homepage":"","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/dockersamples.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-07-07T05:05:54.000Z","updated_at":"2025-01-12T20:21:57.000Z","dependencies_parsed_at":"2022-08-15T05:10:46.978Z","dependency_job_id":null,"html_url":"https://github.com/dockersamples/gopher-task-system","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/dockersamples%2Fgopher-task-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockersamples%2Fgopher-task-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockersamples%2Fgopher-task-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockersamples%2Fgopher-task-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dockersamples","download_url":"https://codeload.github.com/dockersamples/gopher-task-system/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248590848,"owners_count":21129900,"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","go","sdk"],"created_at":"2024-11-15T05:37:25.393Z","updated_at":"2025-04-12T15:41:30.411Z","avatar_url":"https://github.com/dockersamples.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Task Management application using Go\n\nA simple task system using Go Docker SDK.\n\n## Prerequisites\n\n- Go (tested with 1.17.2)\n- Docker\n\n## Steps to Run\n\n- Clone the repository\n\n```sh\ngit clone https://github.com/dockersamples/gopher-task-system.git\n```\n\n- Project directory structure\n\n```\n$ tree\n.\n├── LICENSE\n├── README.md\n├── go.mod\n├── go.sum\n├── internal\n│   ├── container-manager\n│   │   └── container_manager.go\n│   ├── task-runner\n│   │   └── runner.go\n│   └── types\n│       └── task.go\n├── main.go\n└── task.yaml\n\n4 directories, 9 files\n```\n\n- Build the task system\n\n```sh\ngo build -o gopher\n```\n\n- Run tasks\n\n```sh\n$ ./gopher run task.yaml\n\npreparing task -  gopher-loops\npreparing task -  hello-gopher\nstarting task -  gopher-loops\nstarting task -  hello-gopher\ncompleted task -  hello-gopher\ncompleted task -  gopher-loops\n```\n\n![Docker Desktop](./docker-desktop.png)\n\n- Run `docker ps -a` to see what all task containers\n\n```sh\n$ docker ps -a\nCONTAINER ID   IMAGE     COMMAND                  CREATED         STATUS                     PORTS     NAMES\n396e25d3cea8   busybox   \"sh -c 'for i in `se…\"   6 minutes ago   Exited (0) 6 minutes ago             gopher-loops\naba428b48a0c   busybox   \"echo 'Hello, Gopher…\"   6 minutes ago   Exited (0) 6 minutes ago             hello-gopher\n```\n\n## Sequence Diagram\n\n![Sequence Diagram](./sequence-diagram.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdockersamples%2Fgopher-task-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdockersamples%2Fgopher-task-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdockersamples%2Fgopher-task-system/lists"}