fancyremarker: is it currently possible/easy to link two application containers? /cc wayne
ie, native docker --link
fancyremarker
not currently — we chose not to use Docker linking in favor of ordinary TCP linking on explicit hosts/ports to start — what's the use case? i can think through how we might supportit (feel free to PM)
chimeracoder
fancyremarker: so, wayne and I were thinking of how to allow full text-search for our application even without database support for elasticsearch (yet)
and it turns out that since the data size is still relatively small and we don't really need the persistence for that we could just create a new application that runs elasticsearch using the temporary filesystem
but we would have no way of communicating between that and our web application instance
fancyremarker
ah! got it.
so, a few answers
the easiest answer is that Elasticsearch is actually supported at the moment, just only through `aptible db:create` and not on Dashboard
we don't have the full container output—Elasticsearch log routing deployed yet, but aaw has made a ton of progress on that
chimeracoder
aha!
ahhhh
got it
I didn't realize the bottleneck now was the routing portion
okay, so that's much easier
wayne: ^
fancyremarker
but if you only need Elasticsearch for a database that you interact with directly from your app, you're okay
sorry about that miscommunication — my fault
chimeracoder
nah np
I think you mentioned it before but I forgot
fancyremarker
the other piece is that you can get IP addresses for app containers
just not through the UI currenlty
but in general our api routes map isomorphically to our dashboard routes
it just so happens that we do have an app with id 123
chimeracoder
ah got it
fancyremarker
:)
wayne
so sounds like it would work
chimeracoder
hahahahahaa
wayne: we are the chosen ones
fancyremarker
yeah that's why i picked it
haha
this isn't the most straightforward way, but if you have a JSON viewer extension like "JSON Formatter" [0], you can browse that API: services —> (pick the service, e.g. "web") —> current_release —> containers
make sense? there's a little "building" badge on Quay that will turn to "ready", should be not too many minutes
wayne
nice, thanks
i've been checking out CoreOS for some deployment stuff
i think they're trying to be the kind of platform that aptible itself should live on, but i feel that the tooling is still lacking :/
fancyremarker
yeah, CoreOS is very interesting, and we're keeping an eye on it. also: kubernetes
wayne
service discovery still hasn't been solved very well, imo
fancyremarker
because a lot of these things didn't exist or were very lacking when we started, we rolled our own for a lot of it but ultimately we'd like to be flexible on how we provision our backend, keeping only our own API (where we record ops and compliance states) stable
wayne
that's the scary part about the health space imo
a lot of stuff is home-grown because data can't be freely slung around like in a photo-sharing app
(for personal, non-medical photos :P)
i was joking with aditya that i was gonna take that websocket chat example and make it hipaa-compliant, then raise a seed round for it
chasballew
firebase didn't want to
you definitely could
wayne
the funny thing is that it wouldn't be an awful idea
fancyremarker: websockets work just fine. SSEs don't appear to work.
works on localhost, and a remote digital ocean server
fancyremarker
hitting the app directly you mean?
wayne
yep
fancyremarker
i.e., not through a reverse proxy like NGiNX
k
so, i'll get a chance to look at this this weekend, but probably not this afternoon. if you feel ambitious, you can actually run NGiNX exactly as it's run on Aptible as follows
(it requires Docker)
wayne
cool
reverse nginx hot-config is annoying
not that i'll need it
but nginx-proxy is solution, but it's hacky
i build one with etcd and haproxy, but it's still a hack
this goes back to service discovery not being solved well :(