mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
36b13e3e3d
* Add openssh-client to default docker container. * Include Azure requirements in default container. To do so, handling of pip requirements was updated to install each set of requirements separately and then run a verification pass to make sure there are no conflicts between requirements. * Add missing --docker-no-pull option. * Add documentation for the azure-requirements test.
40 lines
989 B
Docker
40 lines
989 B
Docker
FROM ubuntu:16.04
|
|
|
|
COPY docker/deadsnakes.list /etc/apt/sources.list.d/deadsnakes.list
|
|
|
|
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F23C5A6CF475977595C89F51BA6932366A755776
|
|
|
|
RUN apt-get update -y && \
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
gcc \
|
|
git \
|
|
libffi-dev \
|
|
libxml2-dev \
|
|
libxslt1-dev \
|
|
locales \
|
|
make \
|
|
openssh-client \
|
|
python2.6-dev \
|
|
python2.7-dev \
|
|
python3.5-dev \
|
|
python3.6-dev \
|
|
shellcheck \
|
|
&& \
|
|
apt-get clean
|
|
|
|
RUN rm /etc/apt/apt.conf.d/docker-clean
|
|
RUN locale-gen en_US.UTF-8
|
|
VOLUME /sys/fs/cgroup /run/lock /run /tmp
|
|
|
|
ADD https://bootstrap.pypa.io/get-pip.py /tmp/get-pip.py
|
|
|
|
COPY requirements/*.txt /tmp/requirements/
|
|
COPY docker/requirements.sh /tmp/
|
|
RUN cd /tmp/requirements && /tmp/requirements.sh
|
|
|
|
RUN ln -s python2.7 /usr/bin/python2
|
|
RUN ln -s python3.6 /usr/bin/python3
|
|
RUN ln -s python3 /usr/bin/python
|
|
|
|
ENV container=docker
|
|
CMD ["/sbin/init"]
|