Closed Akash-Nayak closed 1 year ago
Seems the ir.ContainerImages
is empty after ComposeAnalyser.Transform
function is called.
I just checked that the same issue can also be reproduced with the move2kube-demos docker-compose sample https://github.com/konveyor/move2kube-demos/blob/main/samples/docker-compose/multiple-services/docker-compose.yaml if I comment-out/remove lines 6 and 17, i.e., if the docker-compose file doesn’t have the build
key for any service.
Tried adding the build
key to the Dockerfile in the original post:
services:
hello_worldDLR_BR_OP_TAG_BR_CL:
build: .
command:
- /bin/echo
- Hello world
deploy:
placement:
constraints:
- node.a.b.c == true
environment:
- env:${CODE}
image: ubuntu:${TAG}
links:
- redis${TAG}:redis${TAG}
ports:
- ${UIPORT}:8443
version: "3"
This works without error, produces ContainerImages
and BuildConfig
fixed by adding a check before creating the artifact in BuildConfig transformer https://github.com/konveyor/move2kube/pull/963/files#diff-2a1ff621d16165f6fe85b3c4599804d42481d872fbebab5c38136dce75c83e01R152
Describe the bug I am getting an error
failed to parameterize YAML files in the source directory
while running move2kube transform on the below docker-compose fileTo Reproduce Steps to reproduce the behavior:
docker-compose.yml
Run
move2kube transform
over the source folder dc-input.zip which contains the above docker-compose file.Choose the cluster type as
IBM Openshift
orOpenshift
. (The error doesn't appear if I selectKubernetes
as the cluster type.)Expected behavior The above error should not show up while running
move2kube transform
Screenshots
Desktop (please complete the following information):