Containerized an Open Roberta (OR) Lab server, but I can’t get the EV3 brick to find the OR server in the container. The extensive environment/configuration details are posted below. The Brick simply times out after 10-15 seconds with the screen:
Open Roberta Lab is unreachable! Reason: No access from this network! (Press any key)
For more about the OR project, please see https://www.open-roberta.org/en/welcome/
DETAILS
######################################################### ### Laptop Environment ######################################################### * Laptop: ASUS G750JX-TB71, 16GB RAM, i7-4700HQ * Windows 10 Pro 64-bit (Version 10.0.14393 Build 14393) * Hyper-V (Version 10.0.14393.953) * Docker (Version 17.03.1-ce, build c6d412e) ######################################################### ### Topology ######################################################### {Internet}=={modem}=={wireless-router} : ........................: : {laptop-wireless}=={Hyper-V}=={Docker-container}=={Linux}=={RobertaLab} ######################################################### ### Hyper-V ######################################################### * Default settings * MobyLinuxVM | Running | 2048 MB (cfg ver. 8, gen 2) ######################################################### ### ipconfig ######################################################### * Ethernet adapter vEthernet (DockerNAT): Connection-specific DNS Suffix . : IPv4 Address. . . . . . . . . . . : 10.0.75.1 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : * Wireless LAN adapter Wi-Fi: Connection-specific DNS Suffix . : fios-router.home Link-local IPv6 Address . . . . . : fe80::8d9:5450:c084:fef2%9 IPv4 Address. . . . . . . . . . . : 192.168.1.175 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.1.1 ######################################################### ### EV3 ######################################################### * Wireless IP: 192.168.1.196 * Wireless USB: Edimax EW-7811Un * Open Roberta: 2.2.0 * EV3 Runtime: 2.2.0 * leJOS version: 0.9.0-beta * 2017-02-08 07:03:498 ######################################################### ### Dockerfile ######################################################### ##===============##================================================ ## OpenRoberta ## ##---------------## ## To build> docker build -t shms/robertalab . ## To probe/debug> docker run -it shms/robertalab bash ## To run> docker run -p 1999:1999 shms/robertalab ##------------------------------------------------------------------ FROM ubuntu RUN apt-get clean -y && apt-get -y update && apt-get -y upgrade RUN apt-get install -y git phantomjs maven RUN apt-get clean -y RUN apt-get install -y wget unzip && \ wget https://github.com/OpenRoberta/robertalab/archive/master.zip && \ unzip master.zip && \ rm master.zip RUN apt-get install -y default-jdk iputils-ping ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64 WORKDIR /robertalab-master/OpenRobertaParent RUN mvn clean install EXPOSE 1999 WORKDIR /robertalab-master CMD ["/robertalab-master/ora.sh", "--start-from-git"] ##================================================================== ## To expose to other machines on the local network, ## the docker VM needs port forwarding set up: ## https://blog.ouseful.info/2016/05/22/exposing-services-running-in-a-docker-container-running-in-virtualbox-to-other-computers-on-a-local-network/ ##------------------------------------------------------------------ ######################################################### ### Docker Run ######################################################### |docker run -p 1999:1999 shms/robertalab | : | | : |2017-04-13 23:12:31,237 [main] session-id=[] user-id=[] robot-name=[] <== this prefix repeats... | INFO o.e.jetty.server.ServerConnector - Started ServerConnector@4038cd3a{HTTP/1.1}{0.0.0.0:1999} | INFO org.eclipse.jetty.server.Server - Started @3453ms | INFO d.f.iais.roberta.main.ServerStarter - server started at http://0.0.0.0:1999/rest | INFO d.f.iais.roberta.main.ServerStarter - nao added to the database | INFO d.f.iais.roberta.main.ServerStarter - calliope added to the database | INFO d.f.iais.roberta.main.ServerStarter - microbit added to the database | INFO d.f.iais.roberta.main.ServerStarter - Number of programs stored in the database: 49 |$ docker ps |CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES |4d777037f4c3 shms/robertalab "/robertalab-maste..." 17 minutes ago Up 17 minutes 0.0.0.0:1999->1999/tcp ecstatic_gates |$ docker-machine ls |NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS |$ docker inspect 4d777037f4c3 |[ | { | "Id": "4d777037f4c3d2528f9577a3ac0fc542a0e5d2e74710f803cc2c7a1c00f19462", | "Created": "2017-04-13T22:33:48.6966956Z", | "Path": "/robertalab-master/ora.sh", | "Args": [ | "--start-from-git" | ], | "State": { | "Status": "running", | "Running": true, | }, | "HostConfig": { | "Binds": null, | "ContainerIDFile": "", | "NetworkMode": "default", | "PortBindings": { | "1999/tcp": [ | { | "HostIp": "", | "HostPort": "1999" | } | ] | }, | "Dns": [], | "DnsOptions": [], | "DnsSearch": [], | "ExtraHosts": null, | "GroupAdd": null, | "IpcMode": "", | "Cgroup": "", | "Links": null, | "OomScoreAdj": 0, | "PidMode": "", | "Privileged": false, | "PublishAllPorts": false, | "SecurityOpt": null, | "UTSMode": "", | "UsernsMode": "", | "ShmSize": 67108864, | "Runtime": "runc", | "Isolation": "", | "CpuShares": 0, | "Memory": 0, | "Devices": [], | "DiskQuota": 0, | "KernelMemory": 0, | "MemoryReservation": 0, | "MemorySwap": 0, | "MemorySwappiness": -1, | "OomKillDisable": false, | "PidsLimit": 0, | "Ulimits": null, | "CpuCount": 0, | "CpuPercent": 0, | "IOMaximumIOps": 0, | "IOMaximumBandwidth": 0 | }, | "Mounts": [], | "Config": { | "Hostname": "4d777037f4c3", | "Domainname": "", | "User": "", | "AttachStdin": false, | "AttachStdout": true, | "AttachStderr": true, | "ExposedPorts": { | "1999/tcp": {} | }, | "Tty": false, | "OpenStdin": false, | "StdinOnce": false, | "Env": [ | "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", | "JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64" | ], | "Cmd": [ | "/robertalab-master/ora.sh", | "--start-from-git" | ], | "ArgsEscaped": true, | "Image": "shms/robertalab", | "Volumes": null, | "WorkingDir": "/robertalab-master", | "Entrypoint": null, | "OnBuild": null, | "Labels": {} | }, | "NetworkSettings": { | "Bridge": "", | "SandboxID": "cd440944403cfb8b2e21b34526b50dab271437a2dec204b62999bfa95edc0074", | "HairpinMode": false, | "LinkLocalIPv6Address": "", | "LinkLocalIPv6PrefixLen": 0, | "Ports": { | "1999/tcp": [ | { | "HostIp": "0.0.0.0", | "HostPort": "1999" | } | ] | }, | "SandboxKey": "/var/run/docker/netns/cd440944403c", | "SecondaryIPAddresses": null, | "SecondaryIPv6Addresses": null, | "EndpointID": "21db51a0ce38e90c0ee6d6e329f4fba1335d38146e1ca8e297a08c4b8642a636", | "Gateway": "172.17.0.1", | "GlobalIPv6Address": "", | "GlobalIPv6PrefixLen": 0, | "IPAddress": "172.17.0.2", | "IPPrefixLen": 16, | "IPv6Gateway": "", | "MacAddress": "02:42:ac:11:00:02", | "Networks": { | "bridge": { | "IPAMConfig": null, | "Links": null, | "Aliases": null, | "NetworkID": "3ec5038f109efb893d8dcb3cc89a20e98857a0dc930af063763b74f25f1907f3", | "EndpointID": "21db51a0ce38e90c0ee6d6e329f4fba1335d38146e1ca8e297a08c4b8642a636", | "Gateway": "172.17.0.1", | "IPAddress": "172.17.0.2", | "IPPrefixLen": 16, | "IPv6Gateway": "", | "GlobalIPv6Address": "", | "GlobalIPv6PrefixLen": 0, | "MacAddress": "02:42:ac:11:00:02" | } | } | } | } |]