Browse Source

chg: dev: force ``pyyaml`` to use C bindings to boost ``shyaml``.

hostresources
Valentin Lab 6 years ago
parent
commit
993253d7da
  1. 10
      Dockerfile

10
Dockerfile

@ -52,7 +52,7 @@ RUN apk --update add binutils && \
## install shyaml
RUN apk add python-dev build-base
RUN apk add python-dev py-yaml && \
RUN apk add yaml-dev cython cython-dev && \
pip install shyaml
RUN pip install docker-compose==$DOCKER_COMPOSE_VERSION
@ -65,6 +65,14 @@ RUN curl -L https://git.0k.io/git-sub.git/plain/bin/git-sub > /usr/local/bin/git
RUN curl http://docker.0k.io/get/ca.0k.io.pem > /usr/local/share/ca-certificates/ca.0k.io.pem
##force install pyyaml with libyaml
RUN cd /tmp && \
wget https://github.com/yaml/pyyaml/archive/4.1.tar.gz && \
tar xvzf 4.1.tar.gz && \
cd pyyaml-4.1 && \
PYTHONPATH=/usr/lib/python2.7/site-packages python setup.py --with-libyaml install
FROM common

Loading…
Cancel
Save