Skip to content

Commit

Permalink
fix issue seed-labs#158
Browse files Browse the repository at this point in the history
  • Loading branch information
wonkr committed Aug 29, 2023
1 parent 55c99b9 commit ebfddd1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions seedemu/compiler/Docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@
{nodeId}:
build: ./{nodeId}
container_name: {nodeName}
depends_on:
- {dependsOn}
cap_add:
- ALL
sysctls:
Expand Down Expand Up @@ -944,6 +946,7 @@ def _compileNode(self, node: Node) -> str:
return DockerCompilerFileTemplates['compose_service'].format(
nodeId = real_nodename,
nodeName = name,
dependsOn = md5(image.getName().encode('utf-8')).hexdigest(),
networks = node_nets,
# privileged = 'true' if node.isPrivileged() else 'false',
ports = ports,
Expand Down
3 changes: 2 additions & 1 deletion test/SeedEmuTestCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ def wait_until_all_containers_up(cls, total_containers:int) -> None:
cur_container_count = len(cls.containers) - cls.container_count_before_up_container
cls.printLog("current containers counts : ", cur_container_count)
if cur_container_count == total_containers:
time.sleep(10)
# wait until the initial setting in containers such as bird configuration.
time.sleep(30)
return True
if time.time() - current_time > 300:
cls.printLog("TimeExhausted: 5 min")
Expand Down

0 comments on commit ebfddd1

Please sign in to comment.