Include LibYAML in container builds

Updates Dockerfiles to build the LibYAML library, which can provide much
faster YAML parsing and emitting than the native Python library.

https://pyyaml.org/wiki/LibYAML

Change-Id: I4cd48d5d5b5dddc44c88e9e08e405db96359ea6f
This commit is contained in:
Phil Sphicas 2020-09-08 23:14:18 +00:00
parent c55dc2346e
commit 3ca39ef54a
3 changed files with 51 additions and 0 deletions

View File

@ -18,9 +18,12 @@ ARG PROMENADE_VERSION=branch/master
RUN set -x \
&& zypper up -y \
&& zypper --non-interactive install \
automake \
curl \
gcc \
git-core \
libtool \
make \
openssh \
python3 \
python3-dbm \
@ -41,6 +44,20 @@ RUN pip3 install -U pip \
/var/log/* \
/var/tmp/*
ENV LD_LIBRARY_PATH=/usr/local/lib
ARG LIBYAML_VERSION=0.2.5
RUN set -ex \
&& git clone https://github.com/yaml/libyaml.git \
&& cd libyaml \
&& git checkout $LIBYAML_VERSION \
&& ./bootstrap \
&& ./configure \
&& make \
&& make install \
&& cd .. \
&& rm -fr libyaml
VOLUME /var/pegleg
WORKDIR /var/pegleg

View File

@ -18,6 +18,7 @@ ARG PROMENADE_VERSION=branch/master
RUN set -ex \
&& apt-get update -qq \
&& apt-get install -y --no-install-recommends \
automake \
ca-certificates \
curl \
gcc \
@ -25,6 +26,8 @@ RUN set -ex \
gpg \
gpg-agent \
libssl-dev \
libtool \
make \
netbase \
openssh-client \
python3-dev \
@ -42,6 +45,20 @@ RUN set -ex \
/var/log/* \
/var/tmp/*
ENV LD_LIBRARY_PATH=/usr/local/lib
ARG LIBYAML_VERSION=0.2.5
RUN set -ex \
&& git clone https://github.com/yaml/libyaml.git \
&& cd libyaml \
&& git checkout $LIBYAML_VERSION \
&& ./bootstrap \
&& ./configure \
&& make \
&& make install \
&& cd .. \
&& rm -fr libyaml
VOLUME /var/pegleg
WORKDIR /var/pegleg

View File

@ -18,11 +18,14 @@ ARG PROMENADE_VERSION=branch/master
RUN set -ex \
&& apt-get update -qq \
&& apt-get install -y --no-install-recommends \
automake \
ca-certificates \
curl \
gcc \
git \
libssl-dev \
libtool \
make \
netbase \
openssh-client \
python3-dev \
@ -40,6 +43,20 @@ RUN set -ex \
/var/log/* \
/var/tmp/*
ENV LD_LIBRARY_PATH=/usr/local/lib
ARG LIBYAML_VERSION=0.2.5
RUN set -ex \
&& git clone https://github.com/yaml/libyaml.git \
&& cd libyaml \
&& git checkout $LIBYAML_VERSION \
&& ./bootstrap \
&& ./configure \
&& make \
&& make install \
&& cd .. \
&& rm -fr libyaml
VOLUME /var/pegleg
WORKDIR /var/pegleg