Skip to content
Snippets Groups Projects
Commit ebf8d748 authored by gyulaid's avatar gyulaid
Browse files

Fix #33

parent 9bf90060
No related branches found
No related tags found
No related merge requests found
[metadata]
name = alice-ci
version = 0.0.12
version = 0.0.13
author = Daniel Gyulai
description = Alice CI framework
long_description = file: README.md
......
import logging
from weakref import KeyedRef
import docker
from os.path import join, isdir
from os import getcwd, mkdir
......@@ -64,7 +65,10 @@ class PypiRepoRunner:
docker_host_ip = None
for network in self.client.networks.list():
if network.name == "bridge":
try:
docker_host_ip = network.attrs["IPAM"]["Config"][0]["Gateway"]
except KeyError:
docker_host_ip = network.attrs["IPAM"]["Config"][0]["Subnet"].replace(".0/16", ".1")
if docker_host_ip is None:
raise RunnerError("Unable to determine Docker host IP")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment