These are chat archives for nlf/dlite

15th
Apr 2016
Thomas Boerger
@tboerger
Apr 15 2016 12:02
oh cool, there is a channel for dlite :D
what do you guys use as a dns solution within dlite?
Thomas Boerger
@tboerger
Apr 15 2016 12:09
i need a proper name resolution from my mac and also from container to container (without linking)
Nathan LaFreniere
@nlf
Apr 15 2016 13:44
@tboerger I'm working on proper name resolution to the vm, container to container would be however docker handles things though
Thomas Boerger
@tboerger
Apr 15 2016 13:45
yeah already discovered dnsdock for container to container
but host to container sucks :(
currently i’m playing with /etc/resolver/ but still difficult :(
there are the options to have a dns within the vm which we refer to from /etc/resolv/docker which resolves *.docker
but it’s not that easy on my side :)
looks like i need dnsmasq on the host
than i can redirect everything simply to the vm and process the traffic through traefik container
i just want to have an easy to setup and reproducable setup :(((
Thomas Boerger
@tboerger
Apr 15 2016 13:52
@nlf can’t we integrate dnsmasq natively into dhyve os? :D
that should be awesome
Nathan LaFreniere
@nlf
Apr 15 2016 13:53
I actually considered that :) also considering mdns integration
then you don't have to even tell it a server, it's just broadcast stuff
Thomas Boerger
@tboerger
Apr 15 2016 13:54
i dont know about mdns
but with dnsmasq within the vm you just create the hosts entry for local.docker and /etc/resolver/docker with nameserver IP_OF_LOCAL_DOCKER
Nathan LaFreniere
@nlf
Apr 15 2016 13:55
It's on my list of things to figure out. I've spent so much time on the file share stuff lately that I haven't had a chance to look at anything else
Thomas Boerger
@tboerger
Apr 15 2016 13:56
i would like to help but i dont know how :D
Nathan LaFreniere
@nlf
Apr 15 2016 13:56
:) no worries I plan to get a lot done this weekend
Thomas Boerger
@tboerger
Apr 15 2016 14:00
hum… ok...
hopefully you will have something i can use next week :D
i want to have a better local environment for drone and another project that relies on proper name resolution
Thomas Boerger
@tboerger
Apr 15 2016 14:10
ah cool, buildroot can include dnsmasq directly… nice...
Thomas Boerger
@tboerger
Apr 15 2016 14:54
beside this tiny stuff that needs to be added i really like dlite :)
i’m still waiting for docker on osx :)
Nathan LaFreniere
@nlf
Apr 15 2016 14:57
:) i'm hoping to get the fs stuff and dns stuff done this weekend
Thomas Boerger
@tboerger
Apr 15 2016 15:27
what are you doing with the fs? sparse file?
Nathan LaFreniere
@nlf
Apr 15 2016 15:28
in the dlite 2 betas the guest's filesystem is already in a sparse file
what i'm tweaking is the file share from host to guest
Thomas Boerger
@tboerger
Apr 15 2016 15:28
ok
Nathan LaFreniere
@nlf
Apr 15 2016 15:28
i had been using nfs, but it had some challenges, then someone submitted a patch to support 9p so i used that for a while with some hacks to better support uid/gid mapping
but the performance is terrible
so i'm going back to nfs with different hacks to workaround a couple things
Thomas Boerger
@tboerger
Apr 15 2016 15:30
oh my…. yeah, nfs is a mess
and 9p is known for terrible performance… but beside that it works pretty well
Nathan LaFreniere
@nlf
Apr 15 2016 15:31
basically i'll have an fsevents listener on the host that will be able to forward inotify events to the guest, and i'm working on figuring out a way to determine if a file was created by an nfs user so that i can automate adding ACLs to the files to make sure no one gets locked out of things that are in their home dir
Thomas Boerger
@tboerger
Apr 15 2016 15:31
sounds cool
but i still prefer the dns stuff :D
Nathan LaFreniere
@nlf
Apr 15 2016 15:32
the tricky part is figuring out if a file was written by an nfs client
Thomas Boerger
@tboerger
Apr 15 2016 15:32
but with all that drone development will be easier with proper name resolution :)
and the same for portus
Nathan LaFreniere
@nlf
Apr 15 2016 15:32
yup dns will be easy :)
Thomas Boerger
@tboerger
Apr 15 2016 15:32
yes, just need to decide the technology :)
Nathan LaFreniere
@nlf
Apr 15 2016 15:32
exactly
Thomas Boerger
@tboerger
Apr 15 2016 15:33
next part will be coreos on xhyve for me
Thomas Boerger
@tboerger
Apr 15 2016 15:33
i already have seen that
but have not played with it yet
Nathan LaFreniere
@nlf
Apr 15 2016 15:33
down at the bottom of his readme he links to a couple other projects too
there's one that makes a kubernetes cluster on top of coreos in xhyve for you
all automated
Thomas Boerger
@tboerger
Apr 15 2016 15:34
i dont need k8s :D
i’ve got a plain coreos in production use
that's probably your best bet then
Thomas Boerger
@tboerger
Apr 15 2016 15:35
It supports only a standalone CoreOS VM, cluster one (Vagrant based) is at CoreOS Cluster for OS X.
i dont want vagrant anymore :D
Nathan LaFreniere
@nlf
Apr 15 2016 15:36
i'm pretty sure he had a branch of the cluster one that uses xhyve at some point
maybe not..
do you need a cluster locally?
Thomas Boerger
@tboerger
Apr 15 2016 15:40
should be ideal but not a hard requirement
i just need to test my stuff locally before pushing it to staging or production to reduce outages
Nathan LaFreniere
@nlf
Apr 15 2016 15:40
gotcha
Thomas Boerger
@tboerger
Apr 15 2016 15:41
:)