Circle 2.0 looks really good. I’m struggling to get a port open from Nextcloud to the system under test. This is the image configuration from
containerInfo: - image: ubuntu:16.04 cmd: ["/bin/bash"] - image: python:2.7 - image: mysql:8.0 env: - MYSQL_ROOT_PASSWORD=root - MYSQL_DATABASE=circle_test - MYSQL_USER=ubuntu - MYSQL_PASSWORD=ubuntu - image: couchbase/sync-gateway:1.3.1-community - image: wonderfall/nextcloud:11.0 env: - ADMIN_USER=admin - ADMIN_PASSWORD=admin ports: - 8888:8888
However, by the time the tests that depend on Nextcloud are reached, the connection on port 8888 is refused:
ConnectionError: HTTPConnectionPool(host='localhost', port=8888): Max retries exceeded with url: ocs/v1.php/cloud/capabilities (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb08f279250>: Failed to establish a new connection: [Errno 111] Connection refused',))
When I had this issue working locally I added the
-p 8888:8888 to the
docker run command, so I’m wondering what the equivalent of this is in CircleCI 2?
The 8888 port is already exposed by the Nextcloud image https://hub.docker.com/r/wonderfall/nextcloud/~/dockerfile/