sagemathinc / cocalc-docker

DEPRECATED (was -- Docker setup for running CoCalc as downloadable software on your own computer)
https://cocalc.com
Other
398 stars 103 forks source link

Install Nix package manager #140

Closed sheepforce closed 1 year ago

sheepforce commented 2 years ago

It would be great if the Docker image would come with a multi user installation the Nix package manager and language. (https://nixos.org/manual/nix/stable/installation/installing-binary.html#multi-user-installation).

It would give access to the large nix package collection to all projects and enables creation of reproducible software environments, making access to additional dependencies, that are missing in the Ubuntu docker container, easy. Unfortunately this cannot be done conveniently as a user, but requires a setup of the daemon with super user permissions once.

williamstein commented 2 years ago

Are you manually installing this for your deployment right now?

sheepforce commented 2 years ago

I would like to but it is not as easy in the docker container, as it is on a normal Ubuntu. The Nix installer expects not to be run as root. The official Nix docker container builds around Alpine and the Dockerfile does most of the work the installer would normally do. There is also a Nix installation in the Ubuntu Docker container here, but it also failed and I was a little bit lost with all the stuff going on in the CoCalc container :slightly_smiling_face: Otherwise I'de like to be of help where I can.

williamstein commented 1 year ago

Closing since this seems out of scope for this project.