Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some updates #1

Merged
merged 5 commits into from
Aug 18, 2023
Merged

Some updates #1

merged 5 commits into from
Aug 18, 2023

Conversation

amadeovezz
Copy link
Collaborator

@amadeovezz amadeovezz commented Aug 17, 2023

What

There are some issues running the r studio tutorial on M1/M2 Macs. See rocker-org/rocker-versioned2#144 for additional details.

Why is this a problem?

The docker image that is used for the tutorial: drbueno/rstudio-single-cell:latest is 2 years old and uses an old rstudio image: rocker/rstudio. The team that manages this image has apparently fixed this issue rocker-org/rocker-versioned2#144 (comment).

The real fix here would be to rebuild the docker file locally (since it automatically uses latest) and push to docker hub - however, I've attempted this and found my self in a 馃寠 of dependency errors. Perhaps another day...

Fix

Thankfully there is an alternative fix: rocker-org/rocker-versioned2#144 (comment). This involves:

  • adding some parameters to docker run, namely --platform linux/x86_64.
  • enabling a docker setting: Use Rosetta for x86/amd64 emulation on Apple Silicon

I've added a conditional so that running ./start automatically detects the host OS and uses the appropriate docker command.

Docker settings

These are screenshots of the docker settings that should be enabled:

Screenshot 2023-08-16 at 8 15 16 PM Screenshot 2023-08-16 at 8 15 06 PM

Bonus

  • I've also suppressed some of the deprecation warnings in the python jupyter notebook 馃悕 .
  • Readme improvements

@AlaaALatif AlaaALatif merged commit ae78d2c into main Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rocker/rstudio for apple silicon linux/arm64/v8 platform
2 participants