-
Notifications
You must be signed in to change notification settings - Fork 93
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
[ENH] - Add local
support for Mac
#1405
Comments
I am currently able to partially deploy on Mac (see branch |
So far I have tried (or researched) the following with no success:
|
local
support for Maclocal
support for Mac & Windows
Blocked by #1950 |
I have got it working on my Mac M1. Here are the docs: nebari-dev/nebari-docs#454 This what my nebari config looks like: provider: local
namespace: dev
nebari_version: 2024.5.1rc1
project_name: local-dev
domain: nebari.iakte.ch
ci_cd:
type: none
terraform_state:
type: remote
security:
keycloak:
initial_root_password: <SANITIZED>
overrides:
image:
repository: quay.io/aktech/keycloak
tag: 15.0.2
authentication:
type: password
default_images:
jupyterhub: quay.io/nebari/nebari-jupyterhub:m1-image
jupyterlab: quay.io/nebari/nebari-jupyterlab:m1-image
dask_worker: quay.io/nebari/nebari-dask-worker:m1-image
jhub_apps:
enabled: true
argo_workflows:
enabled: false
conda_store:
image: quay.io/aktech/conda-store-server
image_tag: sha-558beb8
theme:
jupyterhub:
hub_title: Nebari - local-dev
welcome: Welcome! Learn about Nebari's features and configurations in <a href="https://www.nebari.dev/docs/welcome">the
documentation</a>. If you have any questions or feedback, reach the team on
<a href="https://www.nebari.dev/docs/community#getting-support">Nebari's support
forums</a>.
hub_subtitle: Your open source data science platform, hosted
certificate:
type: lets-encrypt
acme_email: <SANITIZED> Relevant issues:
Relevant PRs: |
@aktech Is your M1 a laptop or a mini/server? How stable is it when you're running it? Is it useable at all? I have a 10-core M1 laptop with 32 gigs of RAM. Using the new docs/config above, I managed to deploy it by putting the domain in the hosts file ( |
@nkaretnikov I just tried Amit's config now on a 8-core M1 with 32GB and was able to spin a small Jupyter server up and create a simple conda environment with numpy on it. I think the local cluster has already some memory restrictions because I was not able to spin a medium size server up. |
OK, turns out there are a bunch of issues on Mac with Docker. So I think the stability/crashes/disconnects were solved by me updating everything to latest, but I also didn't test extensively:
However, I still cannot get argo workflows working. These are disabled in the config provided by Amit. I needed them for my work, so I set them to true, but then I saw that the nebari-workflow-controller was in the failed state trying to pull the image, so I attempted to do (this image is available on quay):
But it's not possible to set this image via the config because the key is not supported. So I patched this Python file instead:
This seemed to solve the problem with the image pull, but the workflows still immediately fail. I did check a bunch of logs in various pods, but I didn't find anything. Not sure where it's supposed to be logged if at all. It's still possible that the change above is not sufficient to use this image correctly. And yes, I did add relevant permissions for my user to be able to use argo in Keycloak. If someone can get argo workflows working (scheduling a notebook via the JLab UI), let me know. But for now, I'm going to use the cloud again because it's not clear how much more work is needed here. |
I have a M1 Pro laptop (32GB, 10 cores). It is very stable for me. I have conda environment built with packages required create apps. I never had a cluster crash. Do you have anything else running other than kind cluster? I am using docker desktop 4.30.0 (149282) |
@aktech Yeah, ignore the crash issue. I think it was resolved by updating everything to latest. I'm now more interested in how to get argo-workflows working locally. Have you tried that? They are disabled in your original config. |
I should have mentioned that, I didn't needed argo, so didn't bothered adding it to config. |
I can give it a try, let me try the m1-image you shared above. Also, apologies for the late reply. |
I cannot recall at this point, but I agree that fixing the cert issue would be a good first step to resolving this. |
I see the exact same certificate error, c-f nebari-dev/argo-jupyter-scheduler#10 (comment). I tried to disable SSL verification but only got me half way thought (the error message changed but did not disappear) If anyone wants to pick up: nebari-dev/argo-jupyter-scheduler@main...krassowski:argo-jupyter-scheduler:km-papermill-error-2 |
That's a good starting point, thanks @krassowski do you recall what was the new error message? |
See nebari-dev/argo-jupyter-scheduler#10 (comment) (but maybe it is me issue and I have something misconfigured - so maybe the changes linked above are sufficient - though we need to ensure to only apply them when running a local deployment, so possibly something controlled by an environment variable) |
I shared this in slack, I think it might be useful for others as well:
|
Thanks to @aktech we can now deploy on Mac! Should we keep this issue open or close it for now and open a specific one for windows? |
@marcelovilla at this point, is there any special setup required to deploy locally on mac? |
@kcpevey there are two things that need to be configured:
There's a PR outlining these two steps. I'm happy to help you deploy it locally if you ever need to. |
local
support for Mac & Windowslocal
support for Mac
I edited the title of this issue so it's only about local support for Mac. We can open another specific issue for Windows when/if we think it's relevant. |
Thanks @marcelovilla I was just wanting to make sure we had documentation on the "how", so it looks like that's all taken care of :) The docs are now published here. |
Feature description
It would be nice, as developers, to develop on Mac (and Windows) using a
local
(kind) deployment.Value and/or benefit
Currently
local
deployments are only available for Linux. Adding this would allow those with Macs to develop and prototype more quickly the current workarounds (see dev docs).Anything else?
Affects all Macs (Apple Silicon + Intel).
The text was updated successfully, but these errors were encountered: