{"id":19341922,"url":"https://github.com/blewater/tlex","last_synced_at":"2026-05-16T02:39:08.184Z","repository":{"id":234674981,"uuid":"195434445","full_name":"blewater/tlex","owner":"blewater","description":"Multi Docker Containers Logger \u0026 Stats Aggregator","archived":false,"fork":false,"pushed_at":"2019-07-20T09:18:26.000Z","size":1591,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-06T11:45:32.407Z","etag":null,"topics":["datastream","docker","go","golang","logging"],"latest_commit_sha":null,"homepage":"","language":"Go","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/blewater.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}},"created_at":"2019-07-05T15:51:28.000Z","updated_at":"2023-10-20T10:30:08.000Z","dependencies_parsed_at":"2024-04-20T11:30:33.568Z","dependency_job_id":"d6a20036-c458-4251-9700-e30e9de90d27","html_url":"https://github.com/blewater/tlex","commit_stats":null,"previous_names":["blewater/tlex"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blewater%2Ftlex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blewater%2Ftlex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blewater%2Ftlex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blewater%2Ftlex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blewater","download_url":"https://codeload.github.com/blewater/tlex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240449504,"owners_count":19803121,"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":["datastream","docker","go","golang","logging"],"created_at":"2024-11-10T03:33:07.088Z","updated_at":"2026-05-16T02:39:05.495Z","avatar_url":"https://github.com/blewater.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Multi Docker Containers Logger \u0026 Stats Aggregator #\n\nTool for meeting these requirements:\n\n* Create a **lean** Docker Image from the *Dockefile* in this repo.\n\n* Tracking left over containers from a previous launch at ids.gob file so to stop them at next launch\n\n* To launch concurrently config.RequestedLiveContainers containers of the http://github.com/nethatix/echopathws http listener that echoes back the requested url path i.e., localhost:8770/1/2/3/ -\u003e 1/2/3/.\n\n* Supporting a configurable number of live containers creation. \n\n* Supporting liveness both as an app and through few unit tests.\n\n* Consuming the Docker statistics streams for each live container. Optional persistence to an aggregated text file separate from the logs.\n\n* Displaying and aggregating all the logging input streams of the live containers similarly to the statistics streams.\n\n* Concurrently remove all live instances.\n\n### Deliverable ###\n\nThis is a statically configured command line application that is efficient and scalable.\n\n### Testing ### \n\nThis *workflow/workflow_test.go-\u003eTest_Continuous_Logs_Http_Requests_100_Containers* requires a large timeout to as the 30 seconds are not even sufficient to launch 100 instances. Υου may run it go test -run Test_Continuous_Logs_Http_Requests_100_Containers -timeout 100000s\n\n##### Workflow Unit tests #####\n\nwithin *github.com/nethatix/tlex/workflow$*\n\ngo test -run Test_Workflow_0_Containers\n\ngo test -run Test_Workflow_3_Containers_No_Stats\n\ngo test -run Test_Workflow_1_Containers\n\ngo test -run Test_Workflow_5_Containers\n\ngo test -run Test_Workflow_20_Containers -timeout 50s\n\ngo test -run Test_Continuous_Logs_Http_Requests_100_Containers -timeout 100000s\n\n#### Tests harnesses ####\n\n    workflow/           // the unit tests root folder.\n\n    workflow/testdata/Dockerfile // the unit tests Dockerfile\n\n    workflow/testdata/logFile.log // the unit tests log file. \n\n    workflow/testdata/StatsLogFile.log // the stats unit tests file.\n    \n    logger/logger_test.go   // simple test case\n    \n    dockerapi/ // has no test file but a few logic assert functions in .dockerapi/dockerapi.go employed at runtime\n\n    - - - -\n![Sreaming Flood](dockermgr.gif)\n##### Windows getting along with 100 docker containers just fine! #####\n\n### Installation ###\n\nPreferably within **$gopath\\src**\n\n`git clone https://github.com/nethatix/tlex`\n\n`cd tlex`\n\n`./install.sh` (tested with windows bash) or `install.cmd` (windows)\n\nNote the application builds and runs both *on* and *off* the **gopath** within the root *tlex* folder:\nThese commands worked in both locations on/off gopath locations:\n\n`go build ./...` \n\n`go vet`\n\n`go` `build` `-race` producing `tlex` or `tlex.exe` executables....\n\n`go run tlex`\n\n### Interesting Paths \u0026 Files ###\n\n    Dockerfile // (The employed docker image spec in root folder. )\n\n    logFile.log        // is the application log file.\n\n    StatsLogFile.log   // is the application stats file.\n\n    ids.gob // binary serialization of left over live containers.\n\n#### The Containerized Simple Echo Path HTTP Server ####\n\nhttps://github.com/nethatix/echopathws\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblewater%2Ftlex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblewater%2Ftlex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblewater%2Ftlex/lists"}