{"id":22419880,"url":"https://github.com/testertech/testcontainers-python-and-conu","last_synced_at":"2025-03-27T04:41:44.113Z","repository":{"id":159879731,"uuid":"367958476","full_name":"TesterTech/testcontainers-python-and-conu","owner":"TesterTech","description":"Code for the YouTube video https://youtu.be/wlkimM5AdSU","archived":false,"fork":false,"pushed_at":"2021-05-16T19:45:49.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-01T10:11:16.502Z","etag":null,"topics":["containers","conu","python","testcontainers"],"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/TesterTech.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":"2021-05-16T18:35:34.000Z","updated_at":"2021-09-03T03:54:13.000Z","dependencies_parsed_at":"2023-05-03T14:47:58.760Z","dependency_job_id":null,"html_url":"https://github.com/TesterTech/testcontainers-python-and-conu","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/TesterTech%2Ftestcontainers-python-and-conu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TesterTech%2Ftestcontainers-python-and-conu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TesterTech%2Ftestcontainers-python-and-conu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TesterTech%2Ftestcontainers-python-and-conu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TesterTech","download_url":"https://codeload.github.com/TesterTech/testcontainers-python-and-conu/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245785712,"owners_count":20671631,"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":["containers","conu","python","testcontainers"],"created_at":"2024-12-05T16:17:02.377Z","updated_at":"2025-03-27T04:41:44.107Z","avatar_url":"https://github.com/TesterTech.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# testcontainers-python-and-conu\n\n## Blogpost\nThe original blogpost with the steps to setup Python testcontainers with ConU on Fedora.\nhttps://fedoramagazine.org/test-containers-python-conu/\n\nWas posted on Fedora Magazine https://fedoramagazine.org/\n\n## Python\n- Python was version 3.9 initially. I used the alternatives to configure another version of Python on my system. Information on Alternatives https://linuxconfig.org/how-to-switch-between-python-versions-on-fedora-linux\n- Installing python 3.7 ```sudo dnf install -y python3.7```\n  - After that I called the following command\n  ```\n  sudo alternatives --install /usr/bin/python python /usr/bin/python3.7 1\n  sudo alternatives --install /usr/bin/python python /usr/bin/python3.9 2\n  ```\n  - and then to choose the default one.\n  ```\n  sudo alternatives --config python \n  ```\n  - Later discovered that the symlink of /usr/bin/python3 was still pointing to python3.9, removed the link and created the link to just python so that the alternatives has effect. \n  ```\n  cd /usr/bin\n  sudo rm /usr/bin/python3\n  (y)\n  sudo ln -s python3 python\n  ```\n  \n## Docker\n- To add $user to the docker group so you can run docker commands as a regular user.\n```\nsudo groupadd docker\nsudo usermod -aG docker $USER\n```\n- Logout\n- I restarted the docker service just in case. ```sudo service docker restart```\n- See: https://docs.docker.com/engine/install/linux-postinstall/\n\n# References\n- Testcontainers.org: https://www.testcontainers.org/\n- Container Utilities: https://github.com/user-cont/conu\n- Error docker (cgroups: cannot found cgroup mount destination: unknown): https://github.com/docker/for-linux/issues/219#issuecomment-375160449\n- (Not in the video but found it valueble to share) https://conu.readthedocs.io/en/latest/reference/fixtures_index.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestertech%2Ftestcontainers-python-and-conu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftestertech%2Ftestcontainers-python-and-conu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestertech%2Ftestcontainers-python-and-conu/lists"}