{"id":28507144,"url":"https://github.com/alvonx/python-shell-docker","last_synced_at":"2026-04-13T17:33:26.204Z","repository":{"id":235245683,"uuid":"624714702","full_name":"alvonx/python-shell-docker","owner":"alvonx","description":"launch a python shell in docker and pass .py file as argument to the container and get the output","archived":false,"fork":false,"pushed_at":"2023-04-07T05:28:55.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-05T04:39:12.501Z","etag":null,"topics":["centos","container","docker","python","python-script","shell"],"latest_commit_sha":null,"homepage":"","language":null,"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/alvonx.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":"2023-04-07T04:52:38.000Z","updated_at":"2023-04-07T15:16:29.000Z","dependencies_parsed_at":"2024-04-22T20:23:41.383Z","dependency_job_id":"381aacad-caf8-4d99-aeab-864723abcd01","html_url":"https://github.com/alvonx/python-shell-docker","commit_stats":null,"previous_names":["alvonx/python-shell-docker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alvonx/python-shell-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvonx%2Fpython-shell-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvonx%2Fpython-shell-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvonx%2Fpython-shell-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvonx%2Fpython-shell-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alvonx","download_url":"https://codeload.github.com/alvonx/python-shell-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvonx%2Fpython-shell-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31762574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["centos","container","docker","python","python-script","shell"],"created_at":"2025-06-08T20:07:05.996Z","updated_at":"2026-04-13T17:33:26.179Z","avatar_url":"https://github.com/alvonx.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-shell-docker\nlaunch a python shell in docker and pass .py file as argument to the container and get the output\n\n\n---\ncreate python file `nano test.py`\n\nwrite the code\n\nsave and exit `ctrl+s` `ctrl+x`\n\n---\n\ncreate Dockerfile `nano Dockerfile`\n\n```\nFROM centos\nRUN cd /etc/yum.repos.d/\nRUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*\nRUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*\nRUN yum install python39 -y\n\nENTRYPOINT [\"python3\"]\nCMD [\"-c test.py\"]\n```\n\nbuild image `sudo docker build -t python-shell .`\n\nlaunch container `sudo docker run --rm -it python-shell \"-c$(cat test.py)\"`\n\n![image](https://user-images.githubusercontent.com/46744784/230546971-70846122-6ee1-4048-a35e-6d3084ebe5ce.png)\n\n![image](https://user-images.githubusercontent.com/46744784/230547065-da2c33fc-c5de-48b9-97be-bf2460da8d12.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falvonx%2Fpython-shell-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falvonx%2Fpython-shell-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falvonx%2Fpython-shell-docker/lists"}