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

fix: docker compose setup #293

Merged
merged 13 commits into from
Feb 24, 2025
Merged

Conversation

diofeher
Copy link
Member

@diofeher diofeher commented Feb 17, 2025

Fixes #292

Local environment setup was broken for registry-ui. This PR covers a few different problems:

1 - Search worker was not available on docker compose, always returning empty responses. I've added --ip=0.0.0.0 in order to make the server available.
2 - NeonDB Serverless doesn't work well with local databases using postgres protocol because it works using HTTP/Websockets. I've tried a few different approaches like neon-proxy (that uses HTTP/Websockets), but in the end I've used a "pg" Client.
3 - The search SQL was wrong and couldn't compile, so I've made a small change on its syntax to make it work.
4 - node_compat = true is used to have an usable "pg" package on R2 worker environment.
5 - adding script to populate r2 bucket + docs

image

Screenshot 2025-02-18 at 04 21 47

Checklist

  • I have read the contribution guide.
  • I have not used an AI coding assistant to create this PR.
  • My contribution is compatible with the MPL-2.0 license and I have provided a DCO sign-off on all my commits.
  • I have written all code in this PR myself OR I have marked all code I have not written myself (including modified code, e.g. copied from other places and then modified) with a comment indicating where it came from.

Signed-off-by: Diógenes Fernandes <[email protected]>
Signed-off-by: Diógenes Fernandes <[email protected]>
Signed-off-by: Diógenes Fernandes <[email protected]>
@diofeher diofeher marked this pull request as ready for review February 17, 2025 21:40
@diofeher diofeher self-assigned this Feb 17, 2025
Signed-off-by: Diógenes Fernandes <[email protected]>
Signed-off-by: Diógenes Fernandes <[email protected]>
Signed-off-by: Diógenes Fernandes <[email protected]>
@diofeher diofeher requested review from Yantrio and a team February 18, 2025 07:46
Signed-off-by: Diogenes Fernandes <[email protected]>
Copy link
Member

@Gogotchuri Gogotchuri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, look good! Left a few nit and a question.

Signed-off-by: Diogenes Fernandes <[email protected]>
Signed-off-by: Diogenes Fernandes <[email protected]>
Signed-off-by: Diogenes Fernandes <[email protected]>
Signed-off-by: Diogenes Fernandes <[email protected]>
@diofeher diofeher requested a review from Gogotchuri February 19, 2025 19:25
Signed-off-by: Diogenes Fernandes <[email protected]>
Copy link
Member

@Gogotchuri Gogotchuri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Signed-off-by: Diógenes Fernandes <[email protected]>
@diofeher diofeher merged commit e9c38e6 into opentofu:main Feb 24, 2025
1 check passed
@diofeher diofeher deleted the fix/docker-compose-worker branch February 24, 2025 14:55
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.

Search worker is not working with docker-compose.yml
2 participants