Open globalcitizen opened 8 years ago
I wonder if it would be possible to, if flock
is not found, alias flock to something emulating its behavior (possibly somewhat dangerously) as well as outputting a big bold warning, in order to avoid the problem of complicating the code for the normal, flock
-present case. Possibly even an alias to a special execution mode of the script itself.
Linux containers on OS X? What.
Yes, it sounds weird. Let me explain.
lxc.conf
output) is very useful for other cases such as docker
image generation, which is basically just running docker
(a go binary) on any platform with a couple of arguments, docker import -
or similar (IIRC). Which can happen on OSX.Docker directly depends on features of Linux kernel, the same as LXC and others. How can it natively run on Darwin kernel that doesn’t support these features? The only way I know about is booting Linux VM on VirtualBox or other paravirtualization technology and running Docker inside it.
@jirutka Docker is normally run on OSX exactly as you just described.
Because
flock
is unavailable, weird errors occur when executing on OSX. This could probably be resolved with a fallback, either to some alternative locking mechanism such as something dodgy and built-in, or no locking at all.