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

Use different default image when using with gpu instances #26

Open
sansmoraxz opened this issue Dec 17, 2023 · 3 comments
Open

Use different default image when using with gpu instances #26

sansmoraxz opened this issue Dec 17, 2023 · 3 comments

Comments

@sansmoraxz
Copy link

The default ubuntu images lacks a lot of stuff when trying to create with GPU enabled.

Currently I am using Deep Learning Base GPU AMI (Ubuntu 20.04) 20231026 ie ami-0e376370bca957974 for region ap-south-1 to create GPU based dev-containers. It would be ideal if it was inferred from requested devcontainer config file, as we have to manually look up the ami while creating for other regions.

@pascalbreuninger
Copy link
Member

Hi @sansmoraxz, thanks for opening the issue. You only have to do this when setting it up initially, how big of an issue is this for you?
I could see a possible devcontainer.json customization for this kind of stuff but generally speaking the infrastructure from the providers are mostly separated from the devcontainer spec

@sansmoraxz
Copy link
Author

Not huge, more of a QOL thing for me. I do have seperate provides for use cases. And have a bash script to update the amis.

But someone with less understanding may struggle here, or even waste time trying to debug the issue.

Related: loft-sh/devpod#669

@sansmoraxz
Copy link
Author

As I understand a condition for whether GPU is enabled can be passed here:

Name: aws.String("root-device-type"),
Values: []string{
"ebs",
},
},
{
Name: aws.String("platform-details"),
Values: []string{
"Linux/UNIX",
},
},
{
Name: aws.String("description"),
Values: []string{
"Canonical, Ubuntu, 22.04 LTS*",
},
},

Would've made a PR, but I didn't get how much API changes needed to be made to get it working.

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

No branches or pull requests

2 participants