classroomio icon indicating copy to clipboard operation
classroomio copied to clipboard

fix: self hosting deployment with docker

Open Dun-sin opened this issue 10 months ago • 11 comments

What does this PR do?

  • Adds proper file path to the dockerfiles
  • removes pnpm prune production as it causes issues with docker building
  • moved svelte-kit from devDependencies
  • set the pnpm version to use, as it's the required for the proper lockfile version and node version specified in the project

Fixes #508

Type of change

  • [x] Bug fix (non-breaking change which fixes an issue)
  • [ ] Chore (refactoring code, technical debt, workflow improvements)
  • [ ] Enhancement (small improvements)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] This change adds a new database migration
  • [ ] This change requires a documentation update

Checklist

Required

  • [ ] Filled out the "How to test" section in this PR
  • [x] Self-reviewed my own code
  • [ ] Commented on my code in hard-to-understand bits
  • [ ] Ran pnpm build
  • [ ] Checked for warnings, there are none
  • [ ] Removed all console.logs
  • [x] Merged the latest changes from main onto my branch with git pull origin main
  • [x] My changes don't cause any responsiveness issues

Appreciated

  • [ ] If a UI change was made: Added a screen recording or screenshots to this PR
  • [ ] Updated the ClassroomIO Docs if changes were necessary

Dun-sin avatar Feb 16 '25 10:02 Dun-sin

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cio-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 16, 2025 10:25am

vercel[bot] avatar Feb 16 '25 10:02 vercel[bot]

@Dun-sin is attempting to deploy a commit to the ClassroomIO Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Feb 16 '25 10:02 vercel[bot]

Thank you for following the naming conventions for pull request titles! 🙏

github-actions[bot] avatar Feb 16 '25 10:02 github-actions[bot]

@Dun-sin Thanks a lot for this. Can you share a video showing that it works on your end?

rotimi-best avatar Feb 17 '25 18:02 rotimi-best

@Dun-sin Thanks a lot for this. Can you share a video showing that it works on your end?

No problem, will do that on Saturday

Dun-sin avatar Feb 21 '25 04:02 Dun-sin

Hi @rotimi-best can you help test this with gitpod? Seems like my instance is full and localhosting is a little hard because of lack of easy pnpm version switching

Dun-sin avatar Feb 25 '25 16:02 Dun-sin

@Dun-sin but if it is Docker, you shouldn't have any issues with pnpm versioning.

You could use any cloud service like DigitalOcean or Railway to run the Docker files and see if they actually get up and running.

rotimi-best avatar Feb 26 '25 10:02 rotimi-best

@Dun-sin but if it is Docker, you shouldn't have any issues with pnpm versioning.

You could use any cloud service like DigitalOcean or Railway to run the Docker files and see if they actually get up and running.

Yeah I agree, the main problem is with running the Docker as gitpod space is full.

Railway and Digital Ocean are not free or no longer free

Dun-sin avatar Feb 26 '25 10:02 Dun-sin

@Dun-sin I think they have free credits.

I used the Railway credits on some of my projects

and DO has 60 days $200 credits CleanShot 2025-02-26 at 11  20 21@2x

Not sure though but you might need a credit card to have the credits

rotimi-best avatar Feb 26 '25 10:02 rotimi-best

Hey @Dun-sin, did you make any progress here?

rotimi-best avatar Apr 13 '25 19:04 rotimi-best

Hey @Dun-sin, did you make any progress here?

Digital Ocean needs around 12 dollars to set up on account, didn't have that much to spare. It is refunded but I just thought the effort wasn't worth it

If you do have a digital ocean account, I think it's still best to do it from your side

Dun-sin avatar Apr 24 '25 05:04 Dun-sin

Thanks @Dun-sin, I eventually got it to work. Will create a separate PR for it.

Thank you very much for taking the time to try it out.

rotimi-best avatar May 20 '25 00:05 rotimi-best