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

Custom AMI per group #6

Open
andrewresearch opened this issue Feb 5, 2018 · 2 comments
Open

Custom AMI per group #6

andrewresearch opened this issue Feb 5, 2018 · 2 comments

Comments

@andrewresearch
Copy link

Is it possible to have a custom AMI and Image size per group?
In what part of the code would this be implemented?
I would be willing to look at creating the feature if it is not already available.

@farassadek
Copy link
Collaborator

Hi Andrew,

We did not use the group functionality in this version, but this is something we are looking into.

You are more than welcome to check the groups and the AMI per groups.
The code that create user instances is in the spawner.py module: https://github.com/harvard/cloudJHub/blob/master/jupyterhub_files/spawner.py

spawner.py loads the AMI and other user instance configuration from a config file "server_config.json" into the SERVER_PARAMS dictionary. create_new_instance(self) function , line 303, in spawner.py uses this config variable (SERVER_PARAMS) to launch user instance.

Therefore, you need to specify group AMIs in a config file, and modify create_new_instance to create user instance from the user's group AMI.

@andrewresearch
Copy link
Author

Great. Thanks for the heads up. If I take it anywhere I'll let you know and maybe generate a PR if appropriate.

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