mirror of
https://github.com/containers/podman-compose.git
synced 2024-11-22 07:53:16 +01:00
resolve
This commit is contained in:
commit
80e7ba188d
@ -870,6 +870,10 @@ class PodmanCompose:
|
||||
print(" ** merged:\n", json.dumps(compose, indent = 2))
|
||||
ver = compose.get('version', None)
|
||||
services = compose.get('services', None)
|
||||
if services is None:
|
||||
services = {}
|
||||
print("WARNING: No services defined")
|
||||
|
||||
# NOTE: maybe add "extends.service" to _deps at this stage
|
||||
flat_deps(services, with_extends=True)
|
||||
service_names = sorted([ (len(srv["_deps"]), name) for name, srv in services.items() ])
|
||||
|
7
tests/no_services/docker-compose.yaml
Normal file
7
tests/no_services/docker-compose.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
version: '3'
|
||||
networks:
|
||||
shared-network:
|
||||
driver: bridge
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 172.19.0.0/24
|
Loading…
Reference in New Issue
Block a user