-
Notifications
You must be signed in to change notification settings - Fork 138
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 image migrations #866
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okey so I pulled this and manually merged it with our dev branch, so I can test our CI/CD on fly.io.
Unfortunately this change, doesn't seem to work for fly. If I deploy with this new dockerfile our app completely breaks.
When you try to login you get the following error:
I am not sure but I think its something with that new docker file overriding some types or something, because the type OrganizationRoles
exists in the DB. I double checked that.
Also running the app locally(no docker) and connecting to the staging DB, also works without issue. So this tells me its not an actual issue with the DB.
Maybe fly.io has some limitations related to what we are trying to do? Is it possible to have different docker files to be used when deploying to fly and when using for self-hosting?
@DonKoko great catch! Possibly all fixed now... Went ahead and further split Dockerfiles for fly.io and image builds so they're independent now. Reworked the Dockerfiles themselves and the steps, which I included for fly.io as well—give that a try and if it still breaks, I'll roll that back. Upgraded to Tried deploying the container on my side and everything seems to be working as expected. Can you give another try on staging? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okey so I deployed this to our staging app and it works fine. No issues faced.
-
The file named
Dockerfile.image
. The part after the dot, is that following some requirement from docker or it can be anything? If it can be anything i rather do it more descriptive. Something likeDockerfile.selfhost
-
I think we need to add a bit of explanation of this to the docs, so people understand whats the purpose of each docker file and know where to touch if they are making adjustments/changes.
Signed-off-by: Anatoli Nicolae <an@thundersquared.com>
Signed-off-by: Anatoli Nicolae <an@thundersquared.com>
Signed-off-by: Anatoli Nicolae <an@thundersquared.com>
Signed-off-by: Anatoli Nicolae <an@thundersquared.com> Fix broken links Signed-off-by: Anatoli Nicolae <an@thundersquared.com> Fix note and code block Signed-off-by: Anatoli Nicolae <an@thundersquared.com> Link referenced section Signed-off-by: Anatoli Nicolae <an@thundersquared.com>
Signed-off-by: Anatoli Nicolae <an@thundersquared.com>
Signed-off-by: Anatoli Nicolae <an@thundersquared.com> Fix workflow property Signed-off-by: Anatoli Nicolae <an@thundersquared.com>
Signed-off-by: Anatoli Nicolae <an@thundersquared.com>
Signed-off-by: Anatoli Nicolae <an@thundersquared.com>
Signed-off-by: Anatoli Nicolae <an@thundersquared.com>
Signed-off-by: Anatoli Nicolae <an@thundersquared.com>
Signed-off-by: Anatoli Nicolae <an@thundersquared.com> Make notes more visible Signed-off-by: Anatoli Nicolae <an@thundersquared.com>
Awesome! As per the points you raised:
|
Hey @anatolinicolae, thanks for packaging Shelf.nu a BTW, pruning the non-dev dependencies breaks seeding the DB ( |
Good catch @null-dev! Mind opening a separate issue for that? I'll prepare a PR later this week to get it sorted 👍 |
Issue
Base startup script doesn't include DB migrations, therefore app may be unable to start or will error when database is not synchronized.
Related issue: #845
In this PR
Update steps
Recreating your previous container with a freshly-pulled image should suffice (make sure to
pull
first).New startup behaviour