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

Build for web and dockerfile #943

Merged
merged 30 commits into from
Dec 3, 2023
Merged

Build for web and dockerfile #943

merged 30 commits into from
Dec 3, 2023

Conversation

gwbischof
Copy link
Contributor

@gwbischof gwbischof commented Dec 2, 2023

This PR gets the build for web working, and adds a dockerfile to build the web image.
The Platform class which is used to check the platform it is on is not supported by web, so kIsWeb is used to check if the platform is web.
See discussion on old PR: #927

I also have a github workflow to build the image on tag/release. But I think thunder-app GHCR needs to be setup first.
There are a couple things not working quite right on web still, I can fix those up in follow up PRs.

I followed the instructions here to add the sqflight binaries: https://pub.dev/packages/sqflite_common_ffi_web#setup-binaries

@gwbischof gwbischof changed the title Build for web and docker image workflow Build for web and dockerfile Dec 2, 2023
@gwbischof gwbischof marked this pull request as ready for review December 2, 2023 02:49
Copy link
Member

@micahmo micahmo left a comment

Choose a reason for hiding this comment

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

LGTM!

scripts/docker-build-web.sh Show resolved Hide resolved
scripts/docker-build-web.sh Outdated Show resolved Hide resolved
docker/DockerfileWeb Outdated Show resolved Hide resolved
@gwbischof
Copy link
Contributor Author

Merge please 😄

Copy link
Member

@hjiangsu hjiangsu left a comment

Choose a reason for hiding this comment

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

LGTM

@hjiangsu
Copy link
Member

hjiangsu commented Dec 3, 2023

But I think thunder-app GHCR needs to be setup first.

I'll see how to do this!

@hjiangsu hjiangsu merged commit 2ac34de into thunder-app:develop Dec 3, 2023
1 check passed
@gwbischof gwbischof deleted the web branch December 3, 2023 23:02
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.

3 participants