Skip to content

Added expose 9050, 9060 on Dockerfile#146

Closed
mbobrovskyi wants to merge 2 commits into
goccy:mainfrom
mbobrovskyi:main
Closed

Added expose 9050, 9060 on Dockerfile#146
mbobrovskyi wants to merge 2 commits into
goccy:mainfrom
mbobrovskyi:main

Conversation

@mbobrovskyi

Copy link
Copy Markdown

Hi, I have added expose ports in Dockerfile. Because dktest (https://github.com/dhui/dktest) can't find this ports by default. I would be grateful if you accept this PR and rebuild Docker image.

@goccy

goccy commented Feb 13, 2023

Copy link
Copy Markdown
Owner

Thank you for your contribution.

The default ports for bigquery-emulator are indeed 9050,9060, but they are not fixed. It can be started on any port by the user. So I don't think it's appropriate to explicitly put the port number in the Dockerfile.

@novucs

novucs commented Mar 6, 2025

Copy link
Copy Markdown

Gitlab uses the EXPOSE to understand how to healthcheck the service. At the moment there's no workaround on Gitlabs end other than defining the ports in the Dockerfile. It could be handy to place defaults in here. Gitlab runner logs below:

Starting service ghcr.io/goccy/bigquery-emulator:latest...
Pulling docker image ghcr.io/goccy/bigquery-emulator:latest ...
Using docker image sha256:37e59e907c1fa27d9a0155f521898a58c6b0b16e5f35265800d3a69cf4074b94 for ghcr.io/goccy/bigquery-emulator:latest with digest ghcr.io/goccy/bigquery-emulator@sha256:8e26a076b3eb5b4ce4d247207347b22e301fb82327afb9e4138a6fdcb637d5f7 ...
Waiting for services to be up and running (timeout 30 seconds)...
*** WARNING: Service runner-ns46nmmj-project-43554076-concurrent-0-da9b74a852d2a82e-ghcr.io__goccy__bigquery-emulator-2 probably didn't start properly.
Health check error:
service "runner-ns46nmmj-project-43554076-concurrent-0-da9b74a852d2a82e-ghcr.io__goccy__bigquery-emulator-2-wait-for-service" health check: exit code 1
Health check container logs:
2025-03-06T16:51:27.165581380Z FATAL: No HOST or PORT found                      
Service container logs:
2025-03-06T16:51:26.104663747Z [bigquery-emulator] REST server listening at 0.0.0.0:9050
2025-03-06T16:51:26.111606376Z [bigquery-emulator] gRPC server listening at 0.0.0.0:9060
*********

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

Successfully merging this pull request may close these issues.

3 participants