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

Dev Container must be rebuilt every time it is built #55

Open
4 tasks done
yamcodes opened this issue Oct 9, 2023 · 0 comments
Open
4 tasks done

Dev Container must be rebuilt every time it is built #55

yamcodes opened this issue Oct 9, 2023 · 0 comments
Labels
bug Something isn't working devcontainers Relates to dev containers. help wanted Extra attention is needed

Comments

@yamcodes
Copy link
Contributor

yamcodes commented Oct 9, 2023

Version

latest

Describe the bug

Dev Container must be rebuilt every time it is built.

This is an effect of an issue where the current container build process does not properly create the database.

Reproduction

  1. Start the codebase in a container locally with the Dev Containers extension or in a GitHub Codespace.
  2. Wait for it to load completely, try migrating the schema to the database with db:migrate
  3. You will encounter an error similar to the one below:
$ bun db/migrations/migrate.ts
1 | export class PostgresError extends Error {
2 |   constructor(x) {
3 |     super(x.message)
4 |     this.name = this.constructor.name
        ^
PostgresError: database "medium" does not exist
  1. Press cmd+p > Dev Containers: Rebuild Container, repeat step 2-3
  2. You will notice that migrations work successfully.

System Info

No response

Validations

@yamcodes yamcodes added bug Something isn't working help wanted Extra attention is needed labels Oct 9, 2023
@yamcodes yamcodes changed the title Dev Container must be rebuilt every time it is built Dev containers: Dev Container must be rebuilt every time it is built Oct 9, 2023
@yamcodes yamcodes mentioned this issue Oct 9, 2023
5 tasks
@yamcodes yamcodes added the devcontainers Relates to dev containers. label Oct 16, 2023
@yamcodes yamcodes changed the title Dev containers: Dev Container must be rebuilt every time it is built Dev Container must be rebuilt every time it is built Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working devcontainers Relates to dev containers. help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant