commercetools / commercetools/commercetools-project-sync

Can't detect failure from container

Open
#627 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
50
Forks
29
PR merge metrics
No merged PRs in 30d

Description

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
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.