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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mojo cannot be installed in a Docker container because AUTH_KEY is deprecated #2265

Open
phueac opened this issue Apr 12, 2024 · 4 comments
Open
Assignees
Labels
mojo-repo Tag all issues with this label

Comments

@phueac
Copy link

phueac commented Apr 12, 2024

Issue description

I am trying to install and use Mojo within a Docker container. Your blog post at https://www.modular.com/blog/how-to-setup-a-mojo-development-environment-with-docker-containers indicates this can be does by passing an AUTH_KEY into the container during build. But it looks like this authentication method was deprecated in a recent update to the Modular CLI?

It seems from your example at https://github.com/modularml/mojo/tree/main/examples/docker that an auth key is still expected to build a Docker image. I found by trial and error that supplying a made-up string of random characters as the key allowed the Docker build to succeed.

Perhaps you need to update the blog post and Docker example to reflect the deprecation of the AUTH_KEY method?

As a side note, it is kind of sketchy to require a login to your proprietary system before even being able to download and try out your tools. How are you going to convince Python developers who are used to a completely open ecosystem to adopt this?

Steps to reproduce

  • Include relevant code snippet that did not work as expected.
  • If applicable, add screenshots to help explain the problem.
  • Include anything else that might help us debug the issue.

Version Info

- Provide Modular CLI version by pasting the output of `modular -v`
- What OS did you install modular CLI on ?
@phueac phueac added the modular-cli modular tool issues label Apr 12, 2024
@phueac phueac changed the title [Modular CLI] Mojo cannot be installed in a Docker container because AUTH_KEY is deprecated Apr 12, 2024
@smuniraj2018 smuniraj2018 removed the modular-cli modular tool issues label Apr 15, 2024
@smuniraj2018
Copy link

Thanks, @phueac for your feedback. The recent client side changes in the auth flow change is a bug and we are working to fix this by the next release. I will forward you feedback on the remaining items to our internal teams.

@JoshKarpel
Copy link

+1, this also seems to be a blocker for installing mojo in CI systems (in my case, GitHub Actions) unless I'm missing something. I was looking to copy what pytest-mojo does since it seems to be a popular package https://github.com/guidorice/mojo-pytest/blob/ceac7afccc6c5fde6717155a64bcd02d781b17f4/.github/workflows/test.yml#L15 , but it depends on getting an API key, which no longer seems to be possible with the new auth mechanism.

@byteshiva
Copy link

I blogged about using Docker to run Mojo with auto-generated authentication keys. It's a quick fix for those who need to bypass authentication.

link:
https://byteshiva.medium.com/elevating-your-workflow-dockerizing-mojo-for-seamless-development-628a0bc4b25b

@josiahls
Copy link

Also +1, I want to build nightly docker images for mojo nightly in github ci. If AUTH_KEY is deprecated I can't do this. I would really like to use mojo nightly and participate in contributing, however this can be a blocker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mojo-repo Tag all issues with this label
Projects
None yet
Development

No branches or pull requests

7 participants