add base entrypoint to ec2 image
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2019-05-12 01:14:54 +02:00
parent 9888d672a3
commit 8dd345591d
2 changed files with 13 additions and 0 deletions

View File

@ -25,6 +25,8 @@ ENV PIP_PACKAGES="\
pycrypto \
"
COPY ./gce-entrypoint.sh /docker-entrypoint.sh
RUN \
apk update \
&& apk add --update --no-cache ${PACKAGES} \
@ -36,3 +38,4 @@ RUN \
&& chmod 700 /root/.ssh
USER root
ENTRYPOINT ["/docker-entrypoint.sh"]

10
ec2-entrypoint.sh Normal file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -o pipefail
set -o errtrace
set -o nounset
set -o errexit
if [ "${MOLECULE_CUSTOM_MODULES_REPO}" ]; then
mkdir ./library/
git clone "$MOLECULE_CUSTOM_MODULES_REPO" ./library/
fi