-
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
arion package build failure on Mac Os X ("OSError: AF_UNIX path too long" error when building docker) #71993
Comments
hmm, this is a darwin related issue @NixOS/darwin-maintainers i think the fix might be _allowLocalNetworking = true; or something to that effect. I'll have to check after work Thanks for submitting a ticket though :) |
This looks like an instance of NixOS/nix#1085 . We probably should just disable the failing tests. |
now |
Thanks for looking into it.
Using: { pkgs ? import <nixpkgs> {} }:
let
arionPkg = pkgs.callPackage (pkgs.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
rev = "3e639196de915247f71f3395c53ee2f52d472d34"; # 20191028 Monday
sha256 = "1iyzqxz988xg78q8hh6sldy09n5h9hb6h7rsvl4vsncs792lzp5q";
}) {};
in arionPkg.arion |
I've gotten a bit farther, playing around with https://github.com/hercules-ci/arion/tree/8f2b953701420dc55f67e84d0023f686b6268e3b/examples/minimal (20191028 master) # examples/minimal/arion-compose.nix
{ pkgs, ... }:
{
config.docker-compose.services = {
webserver = {
service.useHostStore = true;
service.command = [ "sh" "-c" ''
cd "$$WEB_ROOT"
${pkgs.python3}/bin/python -m http.server
'' ];
service.ports = [
"8000:8000" # host:container
];
service.environment.WEB_ROOT = "${pkgs.nix.doc}/share/doc/nix/manual";
};
};
} And then
Here's the content of {
"services": {
"webserver": {
"command": [
"sh",
"-c",
"cd \"$$WEB_ROOT\"\n/nix/store/lqg58f3cnjrgwdhr70hwcf6b555iqnsf-python3-3.7.5/bin/python -m http.server\n"
],
"environment": {
"NIX_REMOTE": "",
"WEB_ROOT": "/nix/store/xjdn9x3gncq27828hhck7hjk89id8mw8-nix-2.3.1-doc/share/doc/nix/manual"
},
"image": "arion-base:s089i6gj8kyabwvw06vi7pfahwlp3g0h",
"ports": ["8000:8000"],
"sysctls": {},
"volumes": [
"/nix/store:/nix/store:ro",
"/nix/store/cr8cv5d6q6yd0yciw91knljhdpfx4yw6-container-system-env:/run/system:ro"
]
}
},
"version": "3.4",
"x-arion": {
"images": [
{
"image": "/nix/store/s089i6gj8kyabwvw06vi7pfahwlp3g0h-docker-image-arion-base.tar.gz",
"imageName": "arion-base",
"imageTag": "s089i6gj8kyabwvw06vi7pfahwlp3g0h"
}
],
"serviceInfo": { "webserver": { "defaultExec": ["/bin/sh"] } }
}
} There could be a mix of |
Could you check that If you use the |
Indeed, the
I confirm that arion's "minimal" example as of yesterday now builds successfully using https://github.com/nix-community/linuxkit-nix as a remote builder. Output of
Thanks for taking the time to look into this. I'm still getting started in nix and looking forward to contribute back. |
Describe the bug
arion package doesn't build on Mac OS X using nixpkgs current master (2019-10-25). It could be a build failure in the python docker package in docker-compose's closure, as suggested by @roberth
To Reproduce
Minimal
shell.nix
file:nix-shell
eventually fails with a build error.Expected behavior
arion and its dependencies (docker and docker-compose) should build on Mac OS.
Screenshots
n/a
Additional context
It appears that the path length limit for a Unix domain socket is around 104 on Mac OS. This could be related.
I'm also referencing #71092 where this issue was first discussed.
Full error log:
Metadata
nix-shell -p nix-info --run "nix-info -m"
nix run nixpkgs.nix-info -c nix-info -m
failed with:Maintainer information:
CC @jonringer - thanks for your time and effort. Happy to help in any way if I can.
The text was updated successfully, but these errors were encountered: