Deploy powersync service into Azure WebApp #101
-
Has someone already deploy powersync service into an Azure WebApp ? I am struggling so much to do it because of "pnpm" and some slowdown of Azure WebApp to build the project with oryx Right now, I have added the following in package.json than I use the vscode azure extension to publish in the web app. But it can take up to 40 minutes for azure web app ro run with oryx build .... Unusable in production :(
I tried also to deploy in Azure container app wich is a container host without success either Any help ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
I wouldn't recommend building the container from scratch. While you can technically do that, using the pre-built container image is much simpler and faster. What issues did you run into with Azure Container Apps? Azure Web App for Containers is another option, but I don't have enough experience myself to comment on the pros/cons between the two. |
Beta Was this translation helpful? Give feedback.
-
Azure container apps is good to simplify the communication/monitoting of multiple service (Containers) working together, it also super easy to manage multiple version of a single container. I can also use Azure web App but following your documentation, I am not able to provide environment variables, any idea how I could do that ? |
Beta Was this translation helpful? Give feedback.
-
Thank you for your help, here is a working infrastructure: During my test, I had to update the timeout duration, it's shouldn't be necessary It's in seconds:
You must put the configuration in base64 encoded format (I used devtoys for that but anything that can encode the config file in base 64 works
So for example, the following config file
would give the following base64 content to put in the ' POWERSYNC_CONFIG_B64' variable
` As you can see in devtoys: And here are the environment variables and I pulled the image from my owner container registries as I had limitation with docker hub (I couldn't pull more thant 100 image per hours) Hope it can help someone ! Thank for your valuable advices and your great job ! |
Beta Was this translation helpful? Give feedback.
Thank you for your help, here is a working infrastructure:
During my test, I had to update the timeout duration, it's shouldn't be necessary
It's in seconds:
You must put the configuration in base64 encoded format (I used devtoys for that but anything that can encode the config file in base 64 works
So for example, the following config file