Merge pull request #26 from svc-design/ci-runner-alpine-ansible-lint
Ci runner alpine ansible lint
This commit is contained in:
commit
e8d3a357ec
@ -27,5 +27,6 @@ RUN apk add --no-cache bash git python3 py3-pip jq \
|
||||
# Set work directory
|
||||
WORKDIR /src
|
||||
|
||||
# Define an entrypoint
|
||||
ENTRYPOINT ["/bin/bash"]
|
||||
|
||||
ADD entrypoint.sh /
|
||||
ENTRYPOINT [ "/entrypoint.sh" ]
|
||||
|
||||
10
oci/base/alpine-ansible-lint/entrypoint.sh
Executable file
10
oci/base/alpine-ansible-lint/entrypoint.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/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
|
||||
if [ "$1" ]; then
|
||||
# execute it
|
||||
exec "$@"
|
||||
fi
|
||||
Loading…
Reference in New Issue
Block a user