Fork me on GitHub
#off-topic
<
2016-02-18
>
echristopherson01:02:33

I like Man on the Moon but I hate the song they used in the movie Man on the Moon. I don't get why they used a different song.

borkdude14:02:19

anyone here using codeship? I'm trying to pass arguments to a service. Normally you can do this in docker-compose.yml with command: "..."

borkdude14:02:34

but this doesn't seem to work in jet (codeship's cli tool)

borkdude19:02:34

if you would integration test some services running in docker containers, which languages or libraries would you write the tests with?

lfn320:02:29

@borkdude: that’s something I’m responsible for at my gig - I just use clojure.test, http libs (http-kit in my case) and the same db libs as the code base that’s under test. Is there anything specifically you’re interested in breaking?

borkdude21:02:13

@lfn3: do you run the clojure testing code in a separate container?

lfn321:02:20

@borkdude: Yeah. We use docker-compose with the new docker networking stuff to make the containers see each other.

borkdude21:02:42

@lfn3: if you have any examples to share, that would be great

lfn321:02:08

@borkdude: I probably can’t share my work stuff at the moment, but I can whip up a sanitized demo over the weekend, probably?

borkdude21:02:30

@lfn3: I was wondering about this today: docker containers can see each other, like, they can ping each other if they know each others ip addresses right?

borkdude21:02:53

@lfn3: that would be amazing if it's not too much to ask. Meanwhile I could discuss if using clojure for this is ok

borkdude21:02:04

@lfn3: because the main software isn't simple_smile

lfn321:02:00

Right yeah. I mean I’ve got an easier time of it with that, since we’re mostly Clojure aside from the frontend.

lfn321:02:23

As for the containers being able to reach each other - that depends to a pretty large degree on the networking setup - most of the time every container you spawn can see every other one fine, but that can be customized.

lfn321:02:31

With docker compose usually you want to isolate that set of containers, and it’ll do things to the hosts file or dns resolution to make it easier to find the other containers without resorting to ip addresses.

borkdude21:02:10

@lfn3: can you point me to the "new networking stuff" maybe?

lfn321:02:49

@borkdude: sure. There’s this stuff about networking in compose: https://docs.docker.com/compose/networking/ and https://docs.docker.com/engine/userguide/networking/dockernetworks/ which is a bit more detailed. Have you used compose or container links much?

lfn321:02:16

Also you can safely ignore the cross host bits for your case, probably.

borkdude21:02:55

I have started using docker compose today

borkdude21:02:59

@lfn3: thanks for the links