Skip to content

Conversation

@ael-code
Copy link
Member

Check if the detached container is correctly running before to test the
libreant interface.

In the case the container encounter some error during startup the exit
code and the last log lines will be printed.

Check if the detached container is correctly running before to test the
libreant interface.

In the case the container encounter some error during startup the exit
code and the last log lines will be printed.
Copy link
Member

@boyska boyska left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good!

docker run --rm -p 5000:5000 -d --name "${PREFIX}${os}" "${PREFIX}${os}"
if ! with_backoff test_libreant_homepage; then
docker run -p 5000:5000 -d --name "${PREFIX}${os}" "${PREFIX}${os}"
check_detatched_container "${PREFIX}${os}" || exit 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong indentation?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeap there was various indentation errors. Fixed

echo "Container state: " 1>&2
docker container inspect $c_name --format=" Status: {{.State.Status}}" 1>&2
docker container inspect $c_name --format=" ExitCode: {{.State.ExitCode}}" 1>&2
echo "Container's log tail:" 1>&2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saxon genitive is for people only, not for things. Container last log lines: would be better

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants