Skip to content

Can't detect failure from container #627

@devin-purple

Description

@devin-purple

Using the Docker container, it's not possible to detect failures as the process always exits cleanly.

# docker run commercetools/commercetools-project-sync:5.5.1
{"timestamp":"2025-05-01T17:17:16.1517Z","severity":"ERROR","loggerName":"com.commercetools.project.sync.CliRunner","message":"Failed to run sync process.","stackHash":"b3d4f391","stackTrace":"c.c.p.s.e.CliException: Please pass at least 1 option to the CLI.\n"}
# echo $?
0

Working example:

# docker run debian /bin/sh -c "exit 5"
# echo $?
5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions