Skip to content
This repository was archived by the owner on Nov 21, 2024. It is now read-only.

Add dockerfile to run locally #21

Open
wants to merge 2 commits into
base: in-memory
Choose a base branch
from
Open

Conversation

raoufchebri
Copy link
Contributor

No description provided.

@raoufchebri raoufchebri requested a review from bayandin July 27, 2023 13:52
Copy link
Collaborator

@bayandin bayandin left a comment

Choose a reason for hiding this comment

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

Nice idea, thanks @raoufchebri!

I have a couple of comments/questions, there are rather optional. So you can just merge as is if it blocks you.

Comment on lines +21 to +24
rm -r /tmp/pg_embedding && \
apt-get remove -y build-essential postgresql-server-dev-$PG_MAJOR && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of cleaning up things afterwards, I would probably split this into a multi-stage build:

  • build pg_embedding
  • copy the extension from the previous stage to a freshpostgres:$PG_MAJOR container

Comment on lines +7 to +12
# Locale settings
RUN apt-get clean && apt-get update && \
apt-get install -y locales && \
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8

ENV LANG en_US.utf8
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm curious, Is this required for the extension, or is it just to make the image more usable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure this step is required, but I got multiple errors with locale, and this fixed it.

@samueldurantes
Copy link

@bayandin Will this PR be merged?

@raoufchebri
Copy link
Contributor Author

@samueldurantes, we have sunsetted pg_embedding in favor of pgvector and will no longer contribute.

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

Successfully merging this pull request may close these issues.

3 participants