diff --git a/oci/base/alpine-ansible-lint/entrypoint.sh b/oci/base/alpine-ansible-lint/entrypoint.sh index 9aac491..63c3888 100755 --- a/oci/base/alpine-ansible-lint/entrypoint.sh +++ b/oci/base/alpine-ansible-lint/entrypoint.sh @@ -1,10 +1,17 @@ #!/bin/sh -set -e - -# check if there was a command passed # required by Jenkins Docker plugin: https://github.com/docker-library/official-images#consistency # https://issues.jenkins.io/browse/JENKINS-51307?focusedCommentId=341121&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel + +set -e + +echo "Starting entrypoint script..." + +# Check if there was a command passed if [ "$1" ]; then - # execute it + echo "Executing passed command: $@" exec "$@" +else + echo "No command provided, running default application..." + # 在这里指定一个默认命令,如果通常没有特定的命令需要执行 + exec /bin/bash fi