-
Bug
-
Resolution: Done
-
Minor
-
None
-
None
-
False
-
-
False
-
en-US (English)
-
AppDev Sprint Nov28-Dec12, AppDev Sprint Dec12-Jan9, AppDev Sprint Jan10-Jan30
Please fill in the following information:
| URL: | https://rol.redhat.com/rol/app/courses/do188-4.14/pages/ch07s05 |
| Reporter RHNID: | atcorduneanu@extraordy.com |
| Section Title: | Lab: Multi-container Applications with Compose |
Issue description
Specifying the top-level name directive in the compose file, causes the grading script to fail on step "4. Containers should be attached to the specified networks"
Steps to reproduce:
Use the following as the content for compose.yaml
---
services:
quotes-provider:
networks:
- lab-net
container_name: quotes-provider
image: registry.ocp4.example.com:8443/redhattraining/wiremock
volumes:
- /home/student/DO188/labs/compose-lab/wiremock/stubs:/home/wiremock:Z
quotes-api:
environment:
QUOTES_SERVICE: http://quotes-provider:8080
networks:
- lab-net
ports:
- "8080:8080"
container_name: quotes-api
image: registry.ocp4.example.com:8443/redhattraining/podman-quotesapi-compose
quotes-ui:
networks:
- lab-net
ports:
- "3000:8080"
container_name: quotes-ui
image: registry.ocp4.example.com:8443/redhattraining/podman-quotes-ui
volumes: {}
networks:
lab-net:
name: mycompose
podman-compose up -d Gives a successful result.
The result is as intended by the instruction n.5
Workaround:
Remove the name: directive
Expected result:
I would expect the grading step 4 to pass.