Docker Container Best Practices: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 36: Line 36:


{{Internal|Java in a Container|Java in a Container}}
{{Internal|Java in a Container|Java in a Container}}
=Fail Early=
Check the environment configuration and fail early in the ENTRYPOINT script:
<syntaxhighlight lang='bash'>
#
# check the environment and fail early, when the container executed for the first time
#
/opt/dsmanager/bin/dsmanager check-configuration || { echo "dsmanager configuration failure" 1>&2; exit 1; }
</syntaxhighlight>

Revision as of 17:46, 16 February 2018