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 cold start issues, add documentation #1

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

jnnnthnn
Copy link
Contributor

@jnnnthnn jnnnthnn commented Oct 4, 2023

The existing installation instructions are somewhat stale. This documents the steps necessary to set up a fresh install of Lexy, and tweaks some of the configuration files to make things more reproducible.

Works on my machine.

@jnnnthnn jnnnthnn requested a review from shabani1 October 4, 2023 21:47
@jnnnthnn jnnnthnn marked this pull request as ready for review October 4, 2023 21:47
Copy link
Contributor

@shabani1 shabani1 left a comment

Choose a reason for hiding this comment

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

Looks great, thank you!

docker/postgres/Dockerfile Show resolved Hide resolved
lexy/main.py Show resolved Hide resolved
@jnnnthnn jnnnthnn merged commit 06adc0b into main Oct 4, 2023
@jnnnthnn jnnnthnn deleted the @jnnnthnn/Fix_cold_start_issues_add_documentation branch October 4, 2023 22:03
jnnnthnn added a commit that referenced this pull request Oct 7, 2023
# What changed

Avoids committing Postgres build steps to tagged image. 

# Why

We were running into issues with the Postgres container where rebuilds
wouldn't be idempotent. This was addressed in #1 by checking for
idempotency issues, but that didn't address the core issue.

The core issue is that by specifying `image` in the docker compose file,
we'd tag the _built_ image as the source `postgres:15.4-bullseye` image
([docs](https://github.com/compose-spec/compose-spec/blob/master/spec.md#image)).


# Test plan

Running `docker-compose build db_postgres` twice in a row shouldn't lead
to any issues.
This pull request was closed.
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.

2 participants