-
1. Re: Does Arquillian Cube Support Docker Swarm?
asotobu Jul 18, 2016 7:47 AM (in response to jschaefer)Actually only native Docker support is provided, so as you mention we do not offer a lot from the point of view of docker swarm, just the docker interface. So as you mention since docker host is configured with docker swarm host then everything is screwed. But we can provide (or see if we can provide) a solution.
Do you know if there is any way using a docker remote API to detect that you are using docker swarm instead of plain docker?
-
2. Re: Does Arquillian Cube Support Docker Swarm?
jschaefer Jul 18, 2016 8:42 AM (in response to asotobu)Hi Alex,
i just looked into the debug logs and i can see that the docker swarm sends backs a lot of information. E.g. "com.docker.swarm.id" or the ip and hostname where the container is running.
regards Joerg
-
3. Re: Does Arquillian Cube Support Docker Swarm?
asotobu Jul 18, 2016 9:07 AM (in response to jschaefer)When you say debug logs you mean by executing docker inspect?
-
4. Re: Does Arquillian Cube Support Docker Swarm?
jschaefer Jul 18, 2016 10:36 AM (in response to asotobu)no. I mean just the output if i run "mvn test" in my the console.
-
5. Re: Does Arquillian Cube Support Docker Swarm?
asotobu Jul 18, 2016 10:39 AM (in response to jschaefer)Is it possible to share the project? Now I am bit loose who is printing these lines
-
6. Re: Does Arquillian Cube Support Docker Swarm?
jschaefer Jul 18, 2016 11:01 AM (in response to asotobu)is it possible that i send you the log via mail? I don't want to share the complete log file.
regards Joerg
-
7. Re: Does Arquillian Cube Support Docker Swarm?
jschaefer Jul 21, 2016 4:24 AM (in response to jschaefer)Hi Alex,
i attached the log file. Please could you have a look into it.
Thanks Jörg
-
arquillian.log.zip 11.8 KB
-
-
8. Re: Does Arquillian Cube Support Docker Swarm?
asotobu Jul 21, 2016 4:43 AM (in response to jschaefer)Yep, thanks. When I have a moment I take a look.
-
9. Re: Does Arquillian Cube Support Docker Swarm?
asotobu Jul 22, 2016 5:18 AM (in response to jschaefer)Right the log line comes from docker java library and not cube itself. This is good because it means that we have a way to detect this situation.
Sadly I have been inspecting the code and I have seen no workaround at all to your problem. So we will need to develop some code.
What you can do and should work is using standalone mode instead of container mode. That's is using Arquillian in Standalone mode (no @Deployment method) and deploy a previous WAR file. You can see an example here: https://raw.githubusercontent.com/arquillian/arquillian-cube/master/docs/example.adoc
-
10. Re: Does Arquillian Cube Support Docker Swarm?
jschaefer Jul 25, 2016 4:06 AM (in response to asotobu)Hi Alex, thanks for your answer. Currently i am using in addition the arquillian-liferay-extension. That means i am not using the @Deployment annotation, because it is wrapped by the liferay-extension. However, i do not understand the pros for my current scenario if i am using standalone mode. For both cases container or standalone mode i need the ip/host of a single docker host, right? regards Joerg