RocketChat / RC4Community

Full-stack components for building, engaging, and growing your massive on-line community
https://community.rocket.chat/
Apache License 2.0
48 stars 68 forks source link

[FEAT] Gitpod Script #203

Closed Palanikannan1437 closed 1 year ago

Palanikannan1437 commented 1 year ago

Issue in brief

Create an optimised Gitpod script for the project so that contributors and community builders can enjoy bam boom boom kapow 🤯!! speeds to setup and work on the codebase⚡️!

Suggested Fixes/Changes

Demo

The magical dev-workflow with pre-builds on Gitpod enabled from a new contributor/community builder's perspective!

https://user-images.githubusercontent.com/73993394/203915578-cb30ec31-738f-4767-a858-dfb17c8dda33.mov

PS: These number of commits were made just in-order to test the immediate changes I make on Gitpod, I'll consider squashing them if needed, thank you😄

Sing-Li commented 1 year ago

Looking good @Palanikannan1437 - can't wait to try this!

Palanikannan1437 commented 1 year ago

Looking good @Palanikannan1437 - can't wait to try this!

@Sing-Li and @Dnouv it'd be awesome if you could review this and see it in action ⚡️

Please let me know incase there are some changes to be made, thank you 😄

Dnouv commented 1 year ago

I am on it. I just noticed a bug in that the RC4Community database is not getting initialized. Maybe we can fix it by tweaking the startup shell script; I will take a look at the script.

Update: The following is the error for every new workspace @Palanikannan1437

Waiting 30 seconds for container to get shipped...
Docker container needs extra startup time, please increase the $waittlist value in initFaunaOnce.sh
Process ended with health status of Container: starting

While building on Gitpod; it takes an unusually long time for the Fauna container to start. This results in an empty database, thus skipping the data initialization.

Thank you!

Palanikannan1437 commented 1 year ago

I am on it. I just noticed a bug in that the RC4Community database is not getting initialized. Maybe we can fix it by tweaking the startup shell script; I will take a look at the script.

Update: The following is the error for every new workspace @Palanikannan1437

Waiting 30 seconds for container to get shipped...
Docker container needs extra startup time, please increase the $waittlist value in initFaunaOnce.sh
Process ended with health status of Container: starting

While building on Gitpod; it takes an unusually long time for the Fauna container to start. This results in an empty database, thus skipping the data initialization.

Thank you!

@Dnouv I've now fixed the script to dynamically increase the waittime by 5s until the container starts...with an upper limit of 60s, would be awesome if you could test it out now, thank you so much for the guidance! 😄

Dnouv commented 1 year ago

LGTM! Thanks for the hard work @Palanikannan1437

cc: @Sing-Li

Palanikannan1437 commented 1 year ago

LGTM! Thanks for the hard work @Palanikannan1437

cc: @Sing-Li

Thanks @Dnouv!