This commit is contained in:
parent
1bddf19134
commit
2ed79d3010
2 changed files with 10 additions and 2 deletions
|
@ -6,8 +6,10 @@ ENV GROUP dockergroup
|
||||||
ENV USER docker
|
ENV USER docker
|
||||||
ENV HOMEDIR "/home/${USER}"
|
ENV HOMEDIR "/home/${USER}"
|
||||||
ENV PATH ${HOMEDIR}/.local/bin:$PATH
|
ENV PATH ${HOMEDIR}/.local/bin:$PATH
|
||||||
ENV PROFILE production
|
ENV PLUGIN_PROFILE production
|
||||||
RUN addgroup -S "${GROUP}" && adduser -S "${USER}" -G "${GROUP}"
|
RUN addgroup -S "${GROUP}" && adduser -S "${USER}" -G "${GROUP}"
|
||||||
|
COPY script.sh /bin/
|
||||||
|
RUN chmod +x /bin/script.sh
|
||||||
USER ${USER}
|
USER ${USER}
|
||||||
WORKDIR ${HOMEDIR}
|
WORKDIR ${HOMEDIR}
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
|
@ -15,4 +17,4 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||||
RUN rm requirements.txt
|
RUN rm requirements.txt
|
||||||
RUN git config --global --add safe.directory /drone/src
|
RUN git config --global --add safe.directory /drone/src
|
||||||
|
|
||||||
CMD [ "ansible-lint", "--profile $PROFILE" ]
|
ENTRYPOINT [ "script.sh" ]
|
6
script.sh
Normal file
6
script.sh
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "Starting ansible linter by Aaron Riedel"
|
||||||
|
echo ""
|
||||||
|
cd /drone/src
|
||||||
|
ansible-lint --profile $PLUGIN_PROFILE
|
Loading…
Reference in a new issue