Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: trying to run localstack test container under bitbucket #564

Open
covatic-john opened this issue May 7, 2024 · 3 comments
Open

Bug: trying to run localstack test container under bitbucket #564

covatic-john opened this issue May 7, 2024 · 3 comments

Comments

@covatic-john
Copy link

Describe the bug

Not sure if this is testcontainers or localstack, I have a testcontainers localstack image running on bitbucket the only different is the pro version. Anyone else had this or do I need to get localstack support?

integration_tests/test_stitched_consumptions_glue.py::test_stitched_consumptions_perfect_consumptions 

-------------------------------- live log setup --------------------------------

2024-05-07 13:24:27 [    INFO] using host 10.38.132.27:2375 (docker_client.py:52)

2024-05-07 13:24:27 [   DEBUG] Trying paths: ['/nonexistent/.docker/config.json', '/nonexistent/.dockercfg'] ([config.py:21](http://config.py:21/))

2024-05-07 13:24:27 [   DEBUG] No config file found ([config.py:28](http://config.py:28/))

2024-05-07 13:24:27 [   DEBUG] Trying paths: ['/nonexistent/.docker/config.json', '/nonexistent/.dockercfg'] ([config.py:21](http://config.py:21/))

2024-05-07 13:24:27 [   DEBUG] No config file found ([config.py:28](http://config.py:28/))

2024-05-07 13:24:27 [   DEBUG] Starting new HTTP connection (1): 10.38.132.27:2375 ([connectionpool.py:246](http://connectionpool.py:246/))

2024-05-07 13:24:27 [   DEBUG] http://10.38.132.27:2375/ "GET /version HTTP/1.1" 200 821 ([connectionpool.py:474](http://connectionpool.py:474/))

2024-05-07 13:24:27 [    INFO] using host 10.38.132.27:2375 (docker_client.py:52)

2024-05-07 13:24:27 [   DEBUG] Trying paths: ['/nonexistent/.docker/config.json', '/nonexistent/.dockercfg'] ([config.py:21](http://config.py:21/))

2024-05-07 13:24:27 [   DEBUG] No config file found ([config.py:28](http://config.py:28/))

2024-05-07 13:24:27 [   DEBUG] Trying paths: ['/nonexistent/.docker/config.json', '/nonexistent/.dockercfg'] ([config.py:21](http://config.py:21/))

2024-05-07 13:24:27 [   DEBUG] No config file found ([config.py:28](http://config.py:28/))

2024-05-07 13:24:27 [   DEBUG] Starting new HTTP connection (1): 10.38.132.27:2375 ([connectionpool.py:246](http://connectionpool.py:246/))

2024-05-07 13:24:27 [   DEBUG] http://10.38.132.27:2375/ "GET /version HTTP/1.1" 200 821 ([connectionpool.py:474](http://connectionpool.py:474/))

2024-05-07 13:24:27 [    INFO] Pulling image testcontainers/ryuk:0.7.0 ([container.py:88](http://container.py:88/))

2024-05-07 13:24:27 [   DEBUG] http://10.38.132.27:2375/ "POST /v1.44/containers/create?name=testcontainers-ryuk-88fe3177-a1c8-43b0-9b4b-e5e298b46f84 HTTP/1.1" 404 55 ([connectionpool.py:474](http://connectionpool.py:474/))

2024-05-07 13:24:27 [   DEBUG] Looking for auth config ([auth.py:39](http://auth.py:39/))

2024-05-07 13:24:27 [   DEBUG] No auth config in memory - loading from filesystem ([auth.py:41](http://auth.py:41/))

2024-05-07 13:24:27 [   DEBUG] Trying paths: ['/nonexistent/.docker/config.json', '/nonexistent/.dockercfg'] ([config.py:21](http://config.py:21/))

2024-05-07 13:24:27 [   DEBUG] No config file found ([config.py:28](http://config.py:28/))

2024-05-07 13:24:27 [   DEBUG] Looking for auth entry for '[docker.io](http://docker.io/)' ([auth.py:231](http://auth.py:231/))

2024-05-07 13:24:27 [   DEBUG] No entry found ([auth.py:242](http://auth.py:242/))

2024-05-07 13:24:27 [   DEBUG] No auth config found ([auth.py:56](http://auth.py:56/))

2024-05-07 13:24:27 [   DEBUG] http://10.38.132.27:2375/ "POST /v1.44/images/create?tag=0.7.0&fromImage=testcontainers%2Fryuk HTTP/1.1" 200 None ([connectionpool.py:474](http://connectionpool.py:474/))

2024-05-07 13:24:30 [   DEBUG] http://10.38.132.27:2375/ "GET /v1.44/images/testcontainers/ryuk:0.7.0/json HTTP/1.1" 200 2048 ([connectionpool.py:474](http://connectionpool.py:474/))
@Tranquility2
Copy link
Contributor

Tranquility2 commented May 7, 2024

Sorry to say but this could be related to a docker-py issue @covatic-john checkout docker/docker-py#2311
(Sadly still open)

@Tranquility2
Copy link
Contributor

Tranquility2 commented May 7, 2024

@covatic-john quick question, linux or win?
and can you run

from pathlib import Path
Path.home()

import os
os.path.expanduser('~') # for linux
os.environ.get('USERPROFILE', '') # for win

and post the output please?

The /nonexistent thing looks sus so testing according to https://github.com/docker/docker-py/blob/b6464dbed92b14b2c61d5ee49805fce041a3e083/docker/utils/config.py#L40 and https://github.com/testcontainers/testcontainers-python/blob/6c5d227730d415111c54e7ea3cb5d86b549cc901/core/testcontainers/core/config.py#L17C1-L17C34

@covatic-john
Copy link
Author

Sorry been on leave, running under bitbucket cloud, will add and post result once been though emails

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants