René's URL Explorer Experiment


Title: KeycloakContainer image · Issue #289 · testcontainers/testcontainers-python · GitHub

Open Graph Title: KeycloakContainer image · Issue #289 · testcontainers/testcontainers-python

X Title: KeycloakContainer image · Issue #289 · testcontainers/testcontainers-python

Description: Hi! I was trying to change from jboss/keycloak image to quay.io/keycloak/keycloak:latest because the jboss repo is not longer supported. However, I don't know why, I'm getting TimeoutException during port mapping for container. Here I ha...

Open Graph Description: Hi! I was trying to change from jboss/keycloak image to quay.io/keycloak/keycloak:latest because the jboss repo is not longer supported. However, I don't know why, I'm getting TimeoutException duri...

X Description: Hi! I was trying to change from jboss/keycloak image to quay.io/keycloak/keycloak:latest because the jboss repo is not longer supported. However, I don't know why, I'm getting TimeoutExcept...

Opengraph URL: https://github.com/testcontainers/testcontainers-python/issues/289

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"KeycloakContainer image","articleBody":"Hi! I was trying to change from ` jboss/keycloak` image to `quay.io/keycloak/keycloak:latest` because the jboss repo is not longer supported. However, I don't know why, I'm getting TimeoutException during port mapping for container.\r\n\r\nHere I have the logs:\r\n\r\n```\r\n============================= test session starts ==============================\r\ncollecting ... collected 1 item\r\nrun-last-failure: rerun previous 1 failure\r\n\r\ntest_security_controller.py::TestSecurityController::test_auth_token FAILED [100%]Pulling image quay.io/keycloak/keycloak:latest\r\nContainer started: 4f0e9d085c71\r\nWaiting to be ready...\r\nWaiting to be ready...\r\nWaiting to be ready...\r\n\r\neees_eas_discovery/test/test_security_controller.py:8 (TestSecurityController.test_auth_token)\r\nself = \u003ceees_eas_discovery.test.test_security_controller.TestSecurityController testMethod=test_auth_token\u003e\r\n\r\n    def test_auth_token(self):\r\n        keycloak_container = KeycloakContainer()\r\n    \r\n\u003e       with KeycloakContainer(image='quay.io/keycloak/keycloak:latest') as kc:\r\n\r\ntest_security_controller.py:12: \r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n../../venv/lib/python3.8/site-packages/testcontainers/core/container.py:71: in __enter__\r\n    return self.start()\r\n../../venv/lib/python3.8/site-packages/testcontainers/keycloak.py:61: in start\r\n    self._connect()\r\n../../venv/lib/python3.8/site-packages/testcontainers/core/waiting_utils.py:49: in wrapper\r\n    return wrapped(*args, **kwargs)\r\n../../venv/lib/python3.8/site-packages/testcontainers/keycloak.py:54: in _connect\r\n    url = self.get_url()\r\n../../venv/lib/python3.8/site-packages/testcontainers/keycloak.py:49: in get_url\r\n    port = self.get_exposed_port(self.port_to_expose)\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n\r\nwrapped = \u003cbound method DockerContainer.get_exposed_port of \u003ctestcontainers.keycloak.KeycloakContainer object at 0x7fe0ae54a310\u003e\u003e\r\ninstance = \u003ctestcontainers.keycloak.KeycloakContainer object at 0x7fe0ae54a310\u003e\r\nargs = (8080,), kwargs = {}\r\n\r\n    @wrapt.decorator\r\n    def wrapper(wrapped, instance, args, kwargs):\r\n        exception = None\r\n        logger.info(\"Waiting to be ready...\")\r\n        for attempt_no in range(config.MAX_TRIES):\r\n            try:\r\n                return wrapped(*args, **kwargs)\r\n            except transient_exceptions as e:\r\n                logger.debug(f\"Connection attempt '{attempt_no + 1}' of '{config.MAX_TRIES + 1}' \"\r\n                             f\"failed: {traceback.format_exc()}\")\r\n                time.sleep(config.SLEEP_TIME)\r\n                exception = e\r\n\u003e       raise TimeoutException(\r\n            f'Wait time ({config.MAX_TRIES * config.SLEEP_TIME}s) exceeded for {wrapped.__name__}'\r\n            f'(args: {args}, kwargs {kwargs}). Exception: {exception}'\r\n        )\r\nE       testcontainers.core.exceptions.TimeoutException: Wait time (120s) exceeded for get_exposed_port(args: (8080,), kwargs {}). Exception: port mapping for container 4f0e9d085c712ddc2edd35cd34c9e88cf93e30c7555a46a7569f61d3ae4ae3b6 and port 8080 is not available\r\n\r\n../../venv/lib/python3.8/site-packages/testcontainers/core/waiting_utils.py:55: TimeoutException\r\n\r\n```\r\n\r\nThis is my tests:\r\n\r\n```\r\n def test_auth_token(self):\r\n\r\n        with KeycloakContainer(image='quay.io/keycloak/keycloak:latest') as kc:\r\n            keycloak = kc.get_client()\r\n\r\n...\r\n```","author":{"url":"https://github.com/expploitt","@type":"Person","name":"expploitt"},"datePublished":"2022-12-28T17:08:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/289/testcontainers-python/issues/289"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7e9989d0-0a7b-c11c-c83e-ae94bb4e39e1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB25A:AC110:CCEE6D:12ADA68:6A574DBC
html-safe-nonce3d5b50df57919507baf011fdd3a0c9671529aede5a71ccd4d806fa43748de3e9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjVBOkFDMTEwOkNDRUU2RDoxMkFEQTY4OjZBNTc0REJDIiwidmlzaXRvcl9pZCI6IjgwMjY4MTYwMTk5NDY3NTM0NjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac05ed31940e038998a70e50fe52f403815fd5b6633318392f87bcf992d3c926bc
hovercard-subject-tagissue:1512990168
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/testcontainers/testcontainers-python/289/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a1d210344ae992210c1ebdf6a972e0c0dfa17b7707e6c68dcaf5337c458db9c1/testcontainers/testcontainers-python/issues/289
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a1d210344ae992210c1ebdf6a972e0c0dfa17b7707e6c68dcaf5337c458db9c1/testcontainers/testcontainers-python/issues/289
og:image:altHi! I was trying to change from jboss/keycloak image to quay.io/keycloak/keycloak:latest because the jboss repo is not longer supported. However, I don't know why, I'm getting TimeoutException duri...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameexpploitt
hostnamegithub.com
expected-hostnamegithub.com
None4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98
turbo-cache-controlno-preview
go-importgithub.com/testcontainers/testcontainers-python git https://github.com/testcontainers/testcontainers-python.git
octolytics-dimension-user_id13393021
octolytics-dimension-user_logintestcontainers
octolytics-dimension-repository_id85802819
octolytics-dimension-repository_nwotestcontainers/testcontainers-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id85802819
octolytics-dimension-repository_network_root_nwotestcontainers/testcontainers-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release602250ea3b6dd8302a7220ef98adb828dbc807e4
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/testcontainers/testcontainers-python/issues/289#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftestcontainers%2Ftestcontainers-python%2Fissues%2F289
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftestcontainers%2Ftestcontainers-python%2Fissues%2F289
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=testcontainers%2Ftestcontainers-python
Reloadhttps://github.com/testcontainers/testcontainers-python/issues/289
Reloadhttps://github.com/testcontainers/testcontainers-python/issues/289
Reloadhttps://github.com/testcontainers/testcontainers-python/issues/289
Please reload this pagehttps://github.com/testcontainers/testcontainers-python/issues/289
testcontainers https://github.com/testcontainers
testcontainers-pythonhttps://github.com/testcontainers/testcontainers-python
Notifications https://github.com/login?return_to=%2Ftestcontainers%2Ftestcontainers-python
Fork 375 https://github.com/login?return_to=%2Ftestcontainers%2Ftestcontainers-python
Star 2.3k https://github.com/login?return_to=%2Ftestcontainers%2Ftestcontainers-python
Code https://github.com/testcontainers/testcontainers-python
Issues 131 https://github.com/testcontainers/testcontainers-python/issues
Pull requests 35 https://github.com/testcontainers/testcontainers-python/pulls
Discussions https://github.com/testcontainers/testcontainers-python/discussions
Actions https://github.com/testcontainers/testcontainers-python/actions
Security and quality 0 https://github.com/testcontainers/testcontainers-python/security
Insights https://github.com/testcontainers/testcontainers-python/pulse
Code https://github.com/testcontainers/testcontainers-python
Issues https://github.com/testcontainers/testcontainers-python/issues
Pull requests https://github.com/testcontainers/testcontainers-python/pulls
Discussions https://github.com/testcontainers/testcontainers-python/discussions
Actions https://github.com/testcontainers/testcontainers-python/actions
Security and quality https://github.com/testcontainers/testcontainers-python/security
Insights https://github.com/testcontainers/testcontainers-python/pulse
KeycloakContainer imagehttps://github.com/testcontainers/testcontainers-python/issues/289#top
🐛 bughttps://github.com/testcontainers/testcontainers-python/issues?q=state%3Aopen%20label%3A%22%F0%9F%90%9B%20bug%22
👀 requires attentionhttps://github.com/testcontainers/testcontainers-python/issues?q=state%3Aopen%20label%3A%22%F0%9F%91%80%20requires%20attention%22
📦 package: keycloakhttps://github.com/testcontainers/testcontainers-python/issues?q=state%3Aopen%20label%3A%22%F0%9F%93%A6%20package%3A%20keycloak%22
https://github.com/expploitt
expploitthttps://github.com/expploitt
on Dec 28, 2022https://github.com/testcontainers/testcontainers-python/issues/289#issue-1512990168
🐛 bughttps://github.com/testcontainers/testcontainers-python/issues?q=state%3Aopen%20label%3A%22%F0%9F%90%9B%20bug%22
👀 requires attentionhttps://github.com/testcontainers/testcontainers-python/issues?q=state%3Aopen%20label%3A%22%F0%9F%91%80%20requires%20attention%22
📦 package: keycloakhttps://github.com/testcontainers/testcontainers-python/issues?q=state%3Aopen%20label%3A%22%F0%9F%93%A6%20package%3A%20keycloak%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.