Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (20 sloc) 906 Bytes
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% block thrift_quagga_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
{% set thrift_quagga_packages = [
'git',
'wget'
] %}
{% endif %}
{{ macros.install_packages(thrift_quagga_packages | customizable("packages")) }}
RUN git clone https://github.com/6WIND/zrpcd.git /zrpcd && \
cd /zrpcd && \
sed -i 's/bison\*/bison-devel/' pkgsrc/dev_compile_script.sh && \
sed -i 's/boost\*/boost-devel boost-static/' pkgsrc/dev_compile_script.sh && \
chmod a+x pkgsrc/dev_compile_script.sh && \
pkgsrc/dev_compile_script.sh -d -b -t -v 2 && \
rm -rf /zrpcd
{% block thrift_quagga_footer %}{% endblock %}
{% block footer %}{% endblock %}