-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
Create containers remotely when currentSystem != Linux #412
Conversation
I just ran into the same problem - @domenkozar could this be merged ? |
Someone has to review the code and test it. I currently don't have time for it, sorry :/ |
Any progress on this? |
Just came across this issue. Just started to try this PR on my OSX box, so far it's working fine. |
This didn't work for me when trying to deploy Digital Ocean or VirtualBox. |
@yurrriq mind to share a few more details about your setup? On my end I think that things just worked because I did already have remote building set up, so the code which tries to auto-configure the remote machines was not hit in my case. |
I've got remote building set up too via nix-docker and I use nix-darwin to manage my config. |
@yurrriq If the NIX_REMOTE_SYSTEMS variable is already set nixops won't amend it with the machines that it knows about. 1 You will need to yourself add the details of the machines you want used for remote building to the file which that variable points to. On a more general note, I think the discussion in #260 has better solutions than what I attempted to resolve in this PR, because it relates to a slightly more general issue around nixops remote deployment. But when I opened this PR I didn't know about any of that discussion, and since it didn't attract much attention I thought I may as well leave it open. So if #260 is resolved this could be closed, but until then it may be helpful for it stay open for others to patch onto their nixops builds. |
I just stumbled upon this problem when deploying containers into a virtualbox from macos. I just tested this PR:
As #260 hasn't progressed in over a year, maybe we can progress on this PR? |
Maybe we can split out a minimal change, in my case the change to |
Taken from NixOS#412 to generate a minimal change as an improvement of the current situation regarding remote building. Adjusted to use "mkOverride 900" to make it consistent with all other backends. If building a container on a non-linux system and "nixpkgs.system" is not set, then we default now to "x86_64-linux".
The changes in johbo@64d1636 did work fairly well in my case from darwin. This would allow us to merge the good parts and leave the question regarding the moved chunk of python code open for the future. On my end I am not even so sure if we really should aim to automagically remote-build on the target machine. My bet is that we can live with a requirement that people on non-linux will have to set up remote building for nix in order to be able to use nixops on top of it. As far as I understand the change, it does the following two bits:
Hope that's an alternative which makes it easier to merge in the needed parts. :) |
Taken from NixOS#412 to generate a minimal change as an improvement of the current situation regarding remote building. Adjusted to use "mkOverride 900" to make it consistent with all other backends. If building a container on a non-linux system and "nixpkgs.system" is not set, then we default now to "x86_64-linux".
Unless I've missed something, it appears that @johbo's nice patch (johbo@64d1636) is no longer sufficient to build containers on macOS when using a recent So for some reason, NixOps is trying to evaluate |
Taken from NixOS#412 to generate a minimal change as an improvement of the current situation regarding remote building. Adjusted to use "mkOverride 900" to make it consistent with all other backends. If building a container on a non-linux system and "nixpkgs.system" is not set, then we default now to "x86_64-linux".
Taken from NixOS#412 to generate a minimal change as an improvement of the current situation regarding remote building. Adjusted to use "mkOverride 900" to make it consistent with all other backends. If building a container on a non-linux system and "nixpkgs.system" is not set, then we default now to "x86_64-linux".
Hello! Thank you for this PR. In the past several months, some major changes have taken place in
This is all accumulating in to what I hope will be a NixOps 2.0 My hope is that by adding types and more thorough automated testing, However, because of the major changes, it has become likely that this If you would like to see this merge, please bring it up to date with Thank you again for the work you've done here, I am sorry to be Graham |
Resolves #398