mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add Python 3.7-dev to the default docker image.
This commit is contained in:
parent
cf662ed74b
commit
677aca1cc7
3 changed files with 16 additions and 0 deletions
|
@ -10,7 +10,10 @@ RUN apt-get update -y && \
|
|||
curl \
|
||||
gcc \
|
||||
git \
|
||||
libbz2-dev \
|
||||
libffi-dev \
|
||||
libreadline-dev \
|
||||
libsqlite3-dev \
|
||||
libxml2-dev \
|
||||
libxslt1-dev \
|
||||
locales \
|
||||
|
@ -25,6 +28,12 @@ RUN apt-get update -y && \
|
|||
&& \
|
||||
apt-get clean
|
||||
|
||||
ADD https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer /tmp/pyenv-installer
|
||||
RUN bash -c 'PYENV_ROOT=/usr/local/opt/pyenv bash /tmp/pyenv-installer'
|
||||
RUN bash -c 'PYENV_ROOT=/usr/local/opt/pyenv /usr/local/opt/pyenv/bin/pyenv install 3.7-dev'
|
||||
RUN ln -s /usr/local/opt/pyenv/versions/3.7-dev/bin/python3.7 /usr/local/bin/python3.7
|
||||
RUN ln -s /usr/local/opt/pyenv/versions/3.7-dev/bin/pip3.7 /usr/local/bin/pip3.7
|
||||
|
||||
RUN rm /etc/apt/apt.conf.d/docker-clean
|
||||
RUN locale-gen en_US.UTF-8
|
||||
VOLUME /sys/fs/cgroup /run/lock /run /tmp
|
||||
|
|
|
@ -5,6 +5,7 @@ python_versions=(
|
|||
2.7
|
||||
3.5
|
||||
3.6
|
||||
3.7
|
||||
)
|
||||
|
||||
requirements=()
|
||||
|
|
|
@ -509,6 +509,12 @@ class PathMapper(object):
|
|||
}
|
||||
|
||||
if path.startswith('test/runner/'):
|
||||
if dirname == 'test/runner' and name in (
|
||||
'Dockerfile',
|
||||
'.dockerignore',
|
||||
):
|
||||
return minimal # not used by tests, only used to build the default container
|
||||
|
||||
return all_tests(self.args) # test infrastructure, run all tests
|
||||
|
||||
if path.startswith('test/utils/shippable/'):
|
||||
|
|
Loading…
Reference in a new issue