{"id":16542443,"url":"https://github.com/simnalamburt/docker-practice","last_synced_at":"2026-02-17T01:02:35.015Z","repository":{"id":66204409,"uuid":"80338548","full_name":"simnalamburt/docker-practice","owner":"simnalamburt","description":"My Dockerfile practice","archived":false,"fork":false,"pushed_at":"2017-01-29T21:04:41.000Z","size":29,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-01T13:49:14.352Z","etag":null,"topics":["docker-image","practice"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simnalamburt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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,"zenodo":null}},"created_at":"2017-01-29T09:43:39.000Z","updated_at":"2017-01-30T02:48:26.000Z","dependencies_parsed_at":"2023-07-16T07:00:55.126Z","dependency_job_id":null,"html_url":"https://github.com/simnalamburt/docker-practice","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simnalamburt/docker-practice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simnalamburt%2Fdocker-practice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simnalamburt%2Fdocker-practice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simnalamburt%2Fdocker-practice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simnalamburt%2Fdocker-practice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simnalamburt","download_url":"https://codeload.github.com/simnalamburt/docker-practice/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simnalamburt%2Fdocker-practice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29528243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T00:57:22.232Z","status":"ssl_error","status_checked_at":"2026-02-17T00:54:25.811Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["docker-image","practice"],"created_at":"2024-10-11T18:57:32.784Z","updated_at":"2026-02-17T01:02:34.777Z","avatar_url":"https://github.com/simnalamburt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"docker-practice\n========\nDocker image with python 2.7.13 + python 3.6.0 + mongodb 3.2. It's based on\nAlpine Linux 3.5.\n\n### Instructions\n```shell\n# Build image\nsudo docker build -t docker-practice .\n\n# Run image with psuedo-tty being attached to the screen\nsudo docker run \\\n    --interactive --tty \\\n    --publish 12345:27017 \\\n    --volume /srv/docker-practice/db:/data/db \\\n    --rm --name docker-practice docker-practice\n\n# Run image as a daemon\nsudo docker run \\\n    --detach \\\n    --publish 12345:27017 \\\n    --volume /srv/docker-practice/db:/data/db \\\n    --rm --name docker-practice docker-practice\n\n# Attach to the running docker image\nsudo docker exec -it docker-practice /bin/sh\n\n# Stop running docker container\nsudo docker stop docker-practice\n```\n\n###### References\n- [Use Supervisor with Docker](https://docs.docker.com/engine/admin/using_supervisord/), by docker team\n- [github.com/jbfink/docker-wordpress](https://github.com/jbfink/docker-wordpress), a supervisord sample\n- [Supervisor: A Process Control System](http://supervisord.org/), an official webpage\n- [Python docker image](https://hub.docker.com/_/python/)\n- [Alpine Linux package management - Add a Package](https://wiki.alpinelinux.org/wiki/Alpine_Linux_package_management#Add_a_Package), Alpine Linux wiki\n- [`mongodb` package of Alpine Linux](https://pkgs.alpinelinux.org/package/edge/testing/x86_64/mongodb)\n- [Dockerize MongoDB](https://docs.docker.com/engine/examples/mongodb/), by docker team\n\n### Why would you do this? Why don't you just separate them into different containers?\n![A picture of widowmaker from Overwatch Animated Shrot, \"Alive\"](http://images.akamai.steamusercontent.com/ugc/268348980135500926/EDF216DBB95088C86BD10D01B666E9BD7429D6B0/)\n\n*(laughs)*\n\n\u003cbr\u003e\n\n--------\n*docker-practice* is primarily distributed under the terms of both the [MIT license]\nand the [Apache License (Version 2.0)]. See [COPYRIGHT] for details.\n\n[MIT license]: LICENSE-MIT\n[Apache License (Version 2.0)]: LICENSE-APACHE\n[COPYRIGHT]: COPYRIGHT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimnalamburt%2Fdocker-practice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimnalamburt%2Fdocker-practice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimnalamburt%2Fdocker-practice/lists"}