the-bed-stack
the-bed-stack copied to clipboard
Dev Container must be rebuilt every time it is built
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
- Start the codebase in a container locally with the Dev Containers extension or in a GitHub Codespace.
- Wait for it to load completely, try migrating the schema to the database with
db:migrate
- 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
- Press
cmd+p > Dev Containers: Rebuild Container
, repeat step 2-3 - You will notice that migrations work successfully.
System Info
No response
Validations
- [X] Read the Contributing Guidelines.
- [X] Check that there isn't already an issue that reports the same bug.
- [X] Check that this is a concrete bug. For Q&A, open a GitHub Discussion.
- [X] The provided reproduction is a minimal reproducible example of the bug.