Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

How to add a new software in to the projects? #12

Open
arm2arm opened this issue Apr 17, 2020 · 6 comments
Open

How to add a new software in to the projects? #12

arm2arm opened this issue Apr 17, 2020 · 6 comments

Comments

@arm2arm
Copy link

arm2arm commented Apr 17, 2020

Are there easy way to add the new software in to the project?
Should I rebuild every time the Dockerfile:

https://github.com/sagemathinc/cocalc-kubernetes/tree/master/project/image

and restart the pods?

@williamstein
Copy link
Contributor

Should I rebuild every time the Dockerfile:

That's the only thing that is implemented. Even that won't help unless you change where/how images are pulled, which you can do by modifying the cocalc-server pod.

@arm2arm arm2arm closed this as completed Apr 20, 2020
@gabriel-milan
Copy link

which you can do by modifying the cocalc-server pod

Could you please provide better instructions on how to do that?

@gabriel-milan
Copy link

@williamstein
Copy link
Contributor

correct?

Yes, exactly. Edit the version of that file that is actually run (somewhere under /usr in cocalc-kubernetes server) and see a different image get pulled.

Of course it would be better if there was a template file somewhere with the yaml that could be easily customized...

@williamstein williamstein reopened this Jul 28, 2020
@gabriel-milan
Copy link

gabriel-milan commented Jul 28, 2020

Of course it would be better if there was a template file somewhere

That's what I was hoping to find. It looks like, by setting the environment variable KUBERNETES_REGISTRY to a custom registry, other than default sagemathinc, it will do the trick. Thanks anyway.

@williamstein
Copy link
Contributor

It wouldn't be hard to change.. just edit smc_compute.py to load a template file instead of that string. Edit your template file. PR's welcome, and also paid consulting, or maybe I'll have time to just implement this (not sure).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants