This repository has been archived on 2024-08-19. You can view files and clone it, but cannot push or open issues or pull requests.
molecule/docker/Dockerfile.gce.linux.amd64

43 lines
912 B
Docker
Raw Normal View History

2019-02-28 09:34:14 +00:00
FROM python:3.7-alpine
2019-03-18 13:45:18 +00:00
LABEL maintainer="Robert Kaussow <mail@geeklabor.de>" \
org.label-schema.name="molecule" \
org.label-schema.vcs-url="https://gitea.rknet.org/docker/molecule" \
org.label-schema.vendor="Robert Kaussow" \
org.label-schema.schema-version="1.0"
2019-02-28 09:34:14 +00:00
ENV PACKAGES="\
gcc \
make \
bash \
libffi-dev \
musl-dev \
openssl-dev \
python-dev \
git \
openssh-client \
"
ENV PIP_PACKAGES="\
2019-09-23 06:30:02 +00:00
ansible~=2.8.0 \
2019-02-28 09:51:09 +00:00
molecule[gce] \
2019-02-28 09:34:14 +00:00
virtualenv \
apache-libcloud \
2019-02-28 09:51:09 +00:00
pycrypto \
2019-02-28 09:34:14 +00:00
"
2019-05-11 21:50:00 +00:00
COPY ./gce-entrypoint.sh /docker-entrypoint.sh
2019-03-12 10:18:14 +00:00
2019-02-28 09:34:14 +00:00
RUN \
apk update \
&& apk add --update --no-cache ${PACKAGES} \
&& rm -rf /var/cache/apk/* \
&& pip install --upgrade pip \
&& pip install --no-cache-dir ${PIP_PACKAGES} \
&& rm -rf /root/.cache \
&& mkdir /root/.ssh \
2019-02-28 10:12:00 +00:00
&& chmod 700 /root/.ssh
2019-02-28 09:34:14 +00:00
USER root
2019-03-12 10:18:14 +00:00
ENTRYPOINT ["/docker-entrypoint.sh"]