{"id":13464167,"url":"https://github.com/aryak007/Dockerman","last_synced_at":"2025-03-25T10:32:06.689Z","repository":{"id":76826163,"uuid":"116012230","full_name":"aryak007/Dockerman","owner":"aryak007","description":"A NodeJS service for firing docker operations, e.g. creating tags, deleting tags, deleting images etc.","archived":false,"fork":false,"pushed_at":"2018-08-19T06:53:03.000Z","size":85,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-29T16:23:12.036Z","etag":null,"topics":["docker","docker-image","javascript","nodejs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/aryak007.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}},"created_at":"2018-01-02T12:19:29.000Z","updated_at":"2018-08-19T06:44:05.000Z","dependencies_parsed_at":"2024-01-16T05:42:55.170Z","dependency_job_id":"6ff84282-cebc-4127-a359-cb9179d6baf5","html_url":"https://github.com/aryak007/Dockerman","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/aryak007%2FDockerman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aryak007%2FDockerman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aryak007%2FDockerman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aryak007%2FDockerman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aryak007","download_url":"https://codeload.github.com/aryak007/Dockerman/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245444202,"owners_count":20616340,"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-image","javascript","nodejs"],"created_at":"2024-07-31T14:00:35.877Z","updated_at":"2025-03-25T10:32:06.220Z","avatar_url":"https://github.com/aryak007.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Dockerman 1.0.0\r\n\r\n## Usage\r\n\r\n### Run the following commands to get the stack up and running\r\n\r\n```javascript\r\nnpm install\r\ngulp\r\n```\r\n### The above will start hosting the app at http://localhost:3000 . Check the list of available APIs to know about the routes\r\n\r\n## List of available APIs\r\n\r\n### Primary routes\r\n1. GET /api/getImagesInfo - Returns information of images using the curl API \r\n```curl --unix-socket /var/run/docker.sock http:/v1.24/images/json```\r\n\r\n\r\n2. DELETE /api/deleteImage/:commitId - Deletes an image using its commitId.\r\n\r\n\r\n3. DELETE /api/deleteTag/:tagName - Deletes a tag using the tag name\r\n\r\n\r\n4. POST /tagImage/:imageName/:tagName - Creates a new tag for an image.\r\n\r\n\r\n## Tests\r\n\r\nThe reporter used is \"mocha-jenkins-reporter\" in this case to make the test results compatible with Jenkins\r\n### Unit tests\r\nRun the following command to run the unit tests - \r\n```\r\nnpm run unit\r\n```\r\nThe test results can be found at the path - tests/unit/unit.xml\r\n```xml\r\n\u003ctestsuites name=\"unit\"\u003e\r\n  \u003ctestsuite name=\"Unit Tests for Commons util functions Testing ProfessionsStore\" tests=\"1\" errors=\"0\" failures=\"0\" skipped=\"0\" timestamp=\"2017-09-02T19:11:56\" time=\"0.005\"\u003e\r\n    \u003ctestcase classname=\"unit.Unit Tests for Commons util functions Testing ProfessionsStore\" name=\"Should return the same instance even if it is invoked multiple times since it implements a singleton model\" time=\"0.001\"\u003e\r\n      \u003csystem-out\u003e\u003c![CDATA[First hit!!!!\r\n]]\u003e\u003c/system-out\u003e\r\n    \u003c/testcase\u003e\r\n  \u003c/testsuite\u003e\r\n  \u003ctestsuite name=\"Unit Tests for Commons util functions Testing getRandomIntegerInRange\" tests=\"1\" errors=\"0\" failures=\"0\" skipped=\"0\" timestamp=\"2017-09-02T19:11:56\" time=\"0.001\"\u003e\r\n    \u003ctestcase classname=\"unit.Unit Tests for Commons util functions Testing getRandomIntegerInRange\" name=\"Should return a random integer in specified range which also ensures that it inclusive of min and inclusive of max\" time=\"0\"\u003e\r\n    \u003c/testcase\u003e\r\n  \u003c/testsuite\u003e\r\n  \u003ctestsuite name=\"Unit Tests for Commons util functions Testing returnRandomProfessions\" tests=\"1\" errors=\"0\" failures=\"0\" skipped=\"0\" timestamp=\"2017-09-02T19:11:56\" time=\"0\"\u003e\r\n    \u003ctestcase classname=\"unit.Unit Tests for Commons util functions Testing returnRandomProfessions\" name=\"Should return a random list of professions of length n from the professions corpus\" time=\"0\"\u003e\r\n      \u003csystem-out\u003e\u003c![CDATA[n = 5\r\n]]\u003e\u003c/system-out\u003e\r\n    \u003c/testcase\u003e\r\n  \u003c/testsuite\u003e\r\n  \u003ctestsuite name=\"Unit Tests for Commons util functions Testing returnListOfProfessionsForEachPlayerWithRepeatations\" tests=\"1\" errors=\"0\" failures=\"0\" skipped=\"0\" timestamp=\"2017-09-02T19:11:56\" time=\"0.001\"\u003e\r\n    \u003ctestcase classname=\"unit.Unit Tests for Commons util functions Testing returnListOfProfessionsForEachPlayerWithRepeatations\" name=\"Should return a list of professions in sets of 3 for each player\" time=\"0.001\"\u003e\r\n      \u003csystem-out\u003e\u003c![CDATA[n = 5\r\nPlayers = 10\r\n]]\u003e\u003c/system-out\u003e\r\n    \u003c/testcase\u003e\r\n  \u003c/testsuite\u003e\r\n  \u003ctestsuite name=\"Unit Tests for Commons util functions Testing returnListOfProfessionsForEachPlayerWithoutRepeatations\" tests=\"1\" errors=\"0\" failures=\"0\" skipped=\"0\" timestamp=\"2017-09-02T19:11:56\" time=\"0.003\"\u003e\r\n    \u003ctestcase classname=\"unit.Unit Tests for Commons util functions Testing returnListOfProfessionsForEachPlayerWithoutRepeatations\" name=\"Should return a list of professions in sets of 3 for each player and all professions must be unique\" time=\"0.002\"\u003e\r\n      \u003csystem-out\u003e\u003c![CDATA[n = 5\r\nPlayers = 10\r\n]]\u003e\u003c/system-out\u003e\r\n    \u003c/testcase\u003e\r\n  \u003c/testsuite\u003e\r\n\u003c/testsuites\u003e\r\n```\r\n### System tests\r\nRun the following command to run the system tests - \r\n```\r\nnpm run system\r\n\r\n```\r\nThe test results can be found at the path - tests/system/system.xml\r\n\r\n```xml\r\n\u003ctestsuites name=\"unit\"\u003e\r\n  \u003ctestsuite name=\"System tests for Professions-controller Testing API /getProfessionsWithoutRepeatations\" tests=\"1\" errors=\"0\" failures=\"0\" skipped=\"0\" timestamp=\"2017-09-02T19:11:40\" time=\"0.031\"\u003e\r\n    \u003ctestcase classname=\"unit.System tests for Professions-controller Testing API /getProfessionsWithoutRepeatations\" name=\"Should return 400 status code if number of professions is less than number of players number of players x 3\" time=\"0.028\"\u003e\r\n    \u003c/testcase\u003e\r\n  \u003c/testsuite\u003e\r\n  \u003ctestsuite name=\"System tests for Professions-controller Testing API /getProfessionsWithoutRepeatations\" tests=\"1\" errors=\"0\" failures=\"0\" skipped=\"0\" timestamp=\"2017-09-02T19:11:40\" time=\"0.009\"\u003e\r\n    \u003ctestcase classname=\"unit.System tests for Professions-controller Testing API /getProfessionsWithoutRepeatations\" name=\"Should return a list of professions which are also unique\" time=\"0.009\"\u003e\r\n    \u003c/testcase\u003e\r\n  \u003c/testsuite\u003e\r\n  \u003ctestsuite name=\"System tests for Professions-controller Testing API /getProfessionsWithRepeatations\" tests=\"1\" errors=\"0\" failures=\"0\" skipped=\"0\" timestamp=\"2017-09-02T19:11:40\" time=\"0.005\"\u003e\r\n    \u003ctestcase classname=\"unit.System tests for Professions-controller Testing API /getProfessionsWithRepeatations\" name=\"Should return a list of professions which are also unique\" time=\"0.004\"\u003e\r\n    \u003c/testcase\u003e\r\n  \u003c/testsuite\u003e\r\n  \u003ctestsuite name=\"System tests for Professions-controller Testing API /getProfessionsWithRepeatations\" tests=\"1\" errors=\"0\" failures=\"0\" skipped=\"0\" timestamp=\"2017-09-02T19:11:40\" time=\"0.005\"\u003e\r\n    \u003ctestcase classname=\"unit.System tests for Professions-controller Testing API /getProfessionsWithRepeatations\" name=\"Should return a list of professions for every player\" time=\"0.005\"\u003e\r\n    \u003c/testcase\u003e\r\n  \u003c/testsuite\u003e\r\n  \u003ctestsuite name=\"System tests for Professions-controller Testing API /getRandomProfessions/:professions\" tests=\"1\" errors=\"0\" failures=\"0\" skipped=\"0\" timestamp=\"2017-09-02T19:11:40\" time=\"0.005\"\u003e\r\n    \u003ctestcase classname=\"unit.System tests for Professions-controller Testing API /getRandomProfessions/:professions\" name=\"Should return a random list of professions\" time=\"0.005\"\u003e\r\n    \u003c/testcase\u003e\r\n  \u003c/testsuite\u003e\r\n  \u003ctestsuite name=\"System tests for Professions-controller Testing API /getTotalProfs\" tests=\"1\" errors=\"0\" failures=\"0\" skipped=\"0\" timestamp=\"2017-09-02T19:11:40\" time=\"0.006\"\u003e\r\n    \u003ctestcase classname=\"unit.System tests for Professions-controller Testing API /getTotalProfs\" name=\"Should return total number of professions in the professions corpus\" time=\"0.006\"\u003e\r\n    \u003c/testcase\u003e\r\n  \u003c/testsuite\u003e\r\n  \u003ctestsuite name=\"System tests for Professions-controller Testing API /getRandomNumbers/:num\" tests=\"1\" errors=\"0\" failures=\"0\" skipped=\"0\" timestamp=\"2017-09-02T19:11:40\" time=\"0.004\"\u003e\r\n    \u003ctestcase classname=\"unit.System tests for Professions-controller Testing API /getRandomNumbers/:num\" name=\"Should return a total number of professions\" time=\"0.004\"\u003e\r\n    \u003c/testcase\u003e\r\n  \u003c/testsuite\u003e\r\n\u003c/testsuites\u003e\r\n```\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faryak007%2FDockerman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faryak007%2FDockerman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faryak007%2FDockerman/lists"}