{"id":16176114,"url":"https://github.com/piotr-kalanski/service-initializer-base-docker","last_synced_at":"2026-05-09T15:15:38.881Z","repository":{"id":117457586,"uuid":"249023100","full_name":"piotr-kalanski/service-initializer-base-docker","owner":"piotr-kalanski","description":"Base Docker image for Service Initializer tasks implemented using Docker","archived":false,"fork":false,"pushed_at":"2020-03-21T18:26:06.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T13:50:25.806Z","etag":null,"topics":["devops","docker","docker-image","python"],"latest_commit_sha":null,"homepage":null,"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/piotr-kalanski.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":"2020-03-21T17:09:42.000Z","updated_at":"2020-03-21T18:26:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"9a05a0f9-09c7-4e34-9ab5-7d279c1de45a","html_url":"https://github.com/piotr-kalanski/service-initializer-base-docker","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/piotr-kalanski%2Fservice-initializer-base-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotr-kalanski%2Fservice-initializer-base-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotr-kalanski%2Fservice-initializer-base-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotr-kalanski%2Fservice-initializer-base-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piotr-kalanski","download_url":"https://codeload.github.com/piotr-kalanski/service-initializer-base-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247640475,"owners_count":20971558,"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":["devops","docker","docker-image","python"],"created_at":"2024-10-10T04:47:44.204Z","updated_at":"2026-05-09T15:15:33.814Z","avatar_url":"https://github.com/piotr-kalanski.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# service-initializer-base-docker\n\nBase Docker image for [Service Initializer](https://github.com/piotr-kalanski/service-initializer) tasks implemented using Docker.\n\n# Run task using Docker image\n\n    docker run -it --rm service-initializer-base-docker --name service_name --description service_description --parameters \"{'param1':'value1','param2':'value2'}\" --service-metadata \"{'param1':'value1','param2':'value2'}\"\n\n# Extending image\n\nTo create custom Docker image for new Task you need to provide:\n- Dockerfile\n- task.py with run_task method\n- optionally install new python packages\n\n## Dockerfile format for custom task\n\n```\nFROM piotrkalanski/service-initializer-base-docker\n\nCOPY task.py .\n\nCOPY requirements.txt ./\nRUN pip install --no-cache-dir -r requirements.txt\n```\n\n## task.py\n\nYou have to implement business logic for you custom task in *run_task* function:\n\n```python\ndef run_task(name: str, description: str, parameters: dict, service_metadata: dict):\n    # place your code here\n```\nMeaning of input parameters:\n- name - service name\n- description - service description\n- parameters - task parameters\n- service_metadata - service metadata parameters\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiotr-kalanski%2Fservice-initializer-base-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiotr-kalanski%2Fservice-initializer-base-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiotr-kalanski%2Fservice-initializer-base-docker/lists"}