-
Notifications
You must be signed in to change notification settings - Fork 181
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
rocker/rstudio
for apple silicon linux/arm64/v8 platform
#144
rocker/rstudio
for apple silicon linux/arm64/v8 platform
#144
Comments
This comment was marked as duplicate.
This comment was marked as duplicate.
See this issue for arm64 build of RStudio. In addition, even if the above issue is resolved and RStudio for arm can be installed, RStudio Package Manager (RSPM) does not provide R binary packages for arm64, so Docker images like |
This comment was marked as outdated.
This comment was marked as outdated.
As a stopgap measure, does the amd64 version work (maybe slowly) with Rosetta 2 emulation enabled? We have a version of the rocker image here that has auth turned off for limited usage; reportedly, some people are able to run it on M1 Macs: https://github.com/PrairieLearn/PrairieLearn/tree/master/workspaces/rstudio |
rocker/rstudio
for apple silicon linux/arm64/v8 platform
Hi, I have noticed that when using |
This comment was marked as outdated.
This comment was marked as outdated.
The arm64 version of RStudio daily builds are now available for focal (rstudio/rstudio#8809 (comment)). FROM rocker/r-ver:4.2.1
ENV S6_VERSION=v2.1.0.2
ENV RSTUDIO_VERSION=daily
ENV DEFAULT_USER=rstudio
ENV PANDOC_VERSION=default
ENV PATH=/usr/lib/rstudio-server/bin:$PATH
RUN /rocker_scripts/install_rstudio.sh
RUN /rocker_scripts/install_pandoc.sh
EXPOSE 8787
CMD ["/init"] |
Thanks for @eitsupi 's post and now the rocker/rstudio can work on arm64. However, If I add Meanwhile, the Here is an example Dockerfile with |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
@yufree
I think we need to document which Rocker scripts are executable on arm64. (#405)
I agree that there is a need to skip arrow and duckdb as they are time consuming or impossible to build. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I can confirm that the solution from @nikdata works. Tested this out with a few students in a class I'm teaching.
Then you will see the checkbox under the experimental settings (settings > features in development > use rosetta) Run the image:
Because it's doing things through Rosetta. I haven't confirmed how packages and installations + compiling are handled. 🤞 edit (2 weeks later): you can swap out
FWIW I installed and ran some |
I'm using Mac with M2 chip. You guys helped a lot as well, thanks! Just to complement the answer from @chendaniely, I had to specify the platform argument as well. The final results is the following to make it work, hope it helps someone!
|
Thank you! We spent two days on this and this fixed it. Remember to update docker and tick the two settings in docker desktop that let you use rosetta! |
Thanks to everyone for their input and testing. I have not updated to Ventura yet (work computer, so have to go by their schedule), but once I do I will check this out. |
In addition, get it working on Podman. Discussion of the Apple silicon M1/M2 arm64 chip: rocker-org/rocker-versioned2#144
This thread has been extremely useful for me on my Apple M2. Thank you very much. Below is the fix that finally helped me build my Dockerfile successfully!
|
I edited my original comment. It seems that for many of my students and me, we need to use Try that version if Maybe that's what the platform tag fixed 🤷 |
FYI, Quarto CLI 1.3 releases (now prerelease) include deb packages for arm64, so we will probably be able to build |
I have created a PR #651 to enable arm64 builds of |
Thank you, @eitsupi, for incredible work on this (going back years)! I understand if this may not be possible, but I am wondering if it would be feasible to release versions of |
Thanks @diazrenata. If the Posit Package Manager starts supporting binary installation of arm64 Ubuntu, it could make it easier to build. |
…651) Close #144 Currently the linux/arm64 platform version of RStudio IDE is not bundled Quarto CLI, but bundling may begin after RStudio IDE 2023.05.0. (rstudio/rstudio#12411, rstudio/rstudio#13127) When the Quarto CLI bundle to the RStudio IDE is started, I think we can start building arm64 version of `rocker/rstudio`. This PR also includes a small refactoring to correspond to the recently released purrr 1.0.0. (Close #595)
Hi,
I am experiencing the following error when I try to run the container on a Macbook Pro M1 (MacOS 11.2.3):
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
When I try to log-in in RStudio I get the following error: Error: Incorrect or invalid username/password
.
I have tried with the latest version of Docker Desktop (3.3.1) and disabling/enabled experimental features.
The text was updated successfully, but these errors were encountered: