Coder Social home page Coder Social logo

Arm64 Image about docker HOT 31 CLOSED

calcom avatar calcom commented on June 6, 2024
Arm64 Image

from docker.

Comments (31)

DrMxrcy avatar DrMxrcy commented on June 6, 2024 1

@krumware Thanks so much for all the work on the docker image! Can't wait for it to build so we can test it out!

from docker.

AmoghSaxena avatar AmoghSaxena commented on June 6, 2024

Hey! @m4rcster I was trying the same on my RaspberryPi will update you if I find any progress.

from docker.

finaldzn avatar finaldzn commented on June 6, 2024

Did you try to build with the --platform key ?

from docker.

AmoghSaxena avatar AmoghSaxena commented on June 6, 2024

Did you try to build with the --platform key ?

Not yet... But can try if you guide me.

from docker.

erulabs avatar erulabs commented on June 6, 2024

@AmoghSaxena Would you be open to a PR to enable ARM64 builds? Seems quite close here: https://github.com/calcom/docker/blob/main/.github/workflows/docker-build-push-dockerhub.yml#L77-L92

from docker.

DrMxrcy avatar DrMxrcy commented on June 6, 2024

Gonna have to +1 on this. Running this on ARM would be a game changer.

from docker.

krumware avatar krumware commented on June 6, 2024

I'll give this a go on a test branch in the morning as I also look into the GitHub actions memory issues πŸ‘πŸ‘

(there were platform/buildx issues with GHA last time I gave this a go specifically and had to move on to other things)

from docker.

DrMxrcy avatar DrMxrcy commented on June 6, 2024

I'll give this a go on a test branch in the morning as I also look into the GitHub actions memory issues πŸ‘πŸ‘

(there were platform/buildx issues with GHA last time I gave this a go specifically and had to move on to other things)

Thanks!

from docker.

DrMxrcy avatar DrMxrcy commented on June 6, 2024

Any updates on this?

from docker.

krumware avatar krumware commented on June 6, 2024

In progress! Should have a good update early this coming week

from docker.

DrMxrcy avatar DrMxrcy commented on June 6, 2024

In progress! Should have a good update early this coming week

Let's go! Thanks!

from docker.

krumware avatar krumware commented on June 6, 2024

#144

Working through testing the github actions. calendso/calendso:canary will be the initial image tag for testing on the rpi.
There will be an initial restriction around the web_app_url where localhost will appear for the event URL paths, but we'll work through that.

from docker.

DrMxrcy avatar DrMxrcy commented on June 6, 2024

Thanks so much on the updates! We will be testing it!

from docker.

krumware avatar krumware commented on June 6, 2024

It's almost there! I have an issue with yarn downloads timing out on arm64

from docker.

DrMxrcy avatar DrMxrcy commented on June 6, 2024

Perfect!

from docker.

krumware avatar krumware commented on June 6, 2024

@erulabs & @DrMxrcy
https://hub.docker.com/r/calendso/calendso/tags canary is ready for you to test

Again, just noting: There will be an initial restriction around the web_app_url where localhost will appear for the event URL paths, but we'll work through that.

Thanks for your help!

from docker.

erulabs avatar erulabs commented on June 6, 2024

Hey @krumware - thank you so much! We're looking forward to hosting this for our own uses over at https://kubesail.com - I'm also going to make an installer for Kubernetes if that's alright with you! The main goal of getting ARM64 support was also so that it could run on our little home-hosting computer, the https://pibox.io πŸ‘― We'd love to chat with you about partnering up if you're interested - otherwise we're happy to help generate new Cal.com users either way! ❀️

from docker.

erulabs avatar erulabs commented on June 6, 2024

Ah, I see what you mean about the web_app_url now, as in NEXT_PUBLIC_WEBAPP_URL is set during image build time.

I suppose I could run yarn build again, or possibly tell Turbo to re-build the front-end for me? I am not familiar with Turbo, but I see https://github.com/calcom/cal.com/blob/6b0ac96b38b0dbd78809a73e19010192f31cc769/turbo.json#L29-L43 references depending on an environment variable. I've supplied the correct NEXT_PUBLIC_WEBAPP_URL but it doesn't seem to rebuild any assets on start.

Here is a link to the Kubernetes YAML so far for anyone looking to deploy Cal.com on Kubernetes! https://kubesail.com/template/erulabs/Cal.com

from docker.

DrMxrcy avatar DrMxrcy commented on June 6, 2024

Yea I see the localhost issue. I have been working around
it so far!

from docker.

krumware avatar krumware commented on June 6, 2024

@DrMxrcy @erulabs official version merged and incoming under :latest
@erulabs that's awesome about kubesail. Is there anything we should consider coordinating there when the official helm deployment comes out?

from docker.

erulabs avatar erulabs commented on June 6, 2024

Heya @krumware - we support helm charts too! πŸ‘― I'll update our non-helm manifests and see if I cant get things working. By the way - if you're interested in collaborating, we do have a revenue share agreement! I'd love to sell PiBoxes preloaded with Cal.com to doctors offices (for example!). Let me know if that sparks any ideas for ya! I'll reach out to the proper channels once I get the app working properly :)

from docker.

Xosten avatar Xosten commented on June 6, 2024

Hey @krumware,

I'm commenting on this issue as I'm trying to run a docker image on a OCI ARM Free Tier (Ampere). I'm getting this error each time and wonder if the image is compatible with aarch64 ?

@calcom/web:build: info  - Linting and checking validity of types...
@calcom/web:build: warn  - No ESLint configuration detected. Run next lint to begin setup
@calcom/web:build: info  - Creating an optimized production build...
@calcom/web:build: <jemalloc>: Unsupported system page size
@calcom/web:build: <jemalloc>: Unsupported system page size
@calcom/web:build: memory allocation of 10 bytes failed
@calcom/web:build: Aborted (core dumped)
@calcom/web:build: error Command failed with exit code 134.
@calcom/web:build: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@calcom/web:build: ERROR: command finished with error: command (apps/web) yarn run build exited (134)
command (apps/web) yarn run build exited (134)

 Tasks:    7 successful, 8 total
Cached:    0 cached, 8 total
  Time:    2m2.068s 

error Command failed with exit code 134.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
1 error occurred:
        * Status: The command '/bin/sh -c yarn build' returned a non-zero code: 134, Code: 134

from docker.

krumware avatar krumware commented on June 6, 2024

Thanks for the heads up, I'll work to add arm7 which should cover it

from docker.

Xosten avatar Xosten commented on June 6, 2024

Thanks for the heads up, I'll work to add arm7 which should cover it

Awesome! Can't wait to try it out! Should I open a specific issue for this, to keep track of it ?

from docker.

krumware avatar krumware commented on June 6, 2024

Checking now, but not sure, are you trying to build the image yourself on aarch64, or is this while pulling then running the latest docker image on aarch64?

from docker.

Xosten avatar Xosten commented on June 6, 2024

Checking now, but not sure, are you trying to build the image yourself on aarch64, or is this while pulling then running the latest docker image on aarch64?

This is while running the build command DOCKER_BUILDKIT=0 docker compose build calcom

from docker.

krumware avatar krumware commented on June 6, 2024

it's not the image itself then. if you want to test the image on aarch64 you should be able to pull the latest image and run it.

we probably need a new issue to track against.
honestly, it looks like your build runner or the machine itself ran out of memory during the build, or it is some other issue. here's a similar issue on home assistant home-assistant/core#34162

from docker.

Xosten avatar Xosten commented on June 6, 2024

it's not the image itself then. if you want to test the image on aarch64 you should be able to pull the latest image and run it.

we probably need a new issue to track against. honestly, it looks like your build runner or the machine itself ran out of memory during the build, or it is some other issue. here's a similar issue on home assistant home-assistant/core#34162

I will test by pulling the latest image then, but it's meant for testing?

I doubt that my machine ran out of memory as it has 24Gb or Ram, 4vCPUs and approx 50/100Gb free storage. I'm not running any heavy process currently on it. Is there maybe an OS conflicting? I'm running Oracle Linux 8.

I'll open a seperate issue regarding this.

from docker.

krumware avatar krumware commented on June 6, 2024

Correct, it's currently meant for testing but production images are being worked on. If you can pull the image, there's already an arch variant built for aarch64 that should run. If it doesn't run, then there might be other issues to track, so your running it will be helpful intel.

Correct, it's likely something environment related during the build, but we'll figure it out together. Thanks for the OS/machine details, it's good insight!

from docker.

Xosten avatar Xosten commented on June 6, 2024

Correct, it's currently meant for testing but production images are being worked on. If you can pull the image, there's already an arch variant built for aarch64 that should run. If it doesn't run, then there might be other issues to track, so your running it will be helpful intel.

Correct, it's likely something environment related during the build, but we'll figure it out together. Thanks for the OS/machine details, it's good insight!

Pulling the latest image worked. I have opened #156 to keep track of this. Let's move over there the conversation :)

from docker.

joshavant avatar joshavant commented on June 6, 2024

+1-ing this request

from docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.