mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-18 18:15:50 +00:00
* include info gathering script in rippled linux pkgs * modify script to output results to single markdown file * rename info script
44 lines
1.3 KiB
Docker
44 lines
1.3 KiB
Docker
FROM centos:7
|
|
ARG GIT_COMMIT=unknown
|
|
ARG CI_USE=false
|
|
|
|
LABEL git-commit=$GIT_COMMIT
|
|
|
|
COPY centos-builder/centos_setup.sh /tmp/
|
|
COPY shared/build_deps.sh /tmp/
|
|
COPY shared/install_cmake.sh /tmp/
|
|
COPY centos-builder/extras.sh /tmp/
|
|
COPY shared/install_boost.sh /tmp/
|
|
RUN chmod +x /tmp/centos_setup.sh && \
|
|
chmod +x /tmp/build_deps.sh && \
|
|
chmod +x /tmp/install_boost.sh && \
|
|
chmod +x /tmp/install_cmake.sh && \
|
|
chmod +x /tmp/extras.sh
|
|
RUN /tmp/centos_setup.sh
|
|
|
|
RUN /tmp/install_cmake.sh 3.16.1 /opt/local/cmake-3.16
|
|
RUN ln -s /opt/local/cmake-3.16 /opt/local/cmake
|
|
ENV PATH="/opt/local/cmake/bin:$PATH"
|
|
# also install min supported cmake for testing
|
|
RUN if [ "${CI_USE}" = true ] ; then /tmp/install_cmake.sh 3.9.0 /opt/local/cmake-3.9; fi
|
|
|
|
RUN source scl_source enable devtoolset-7 python27 && \
|
|
/tmp/build_deps.sh
|
|
ENV BOOST_ROOT="/opt/local/boost/_INSTALLED_"
|
|
ENV PLANTUML_JAR="/opt/plantuml/plantuml.jar"
|
|
ENV OPENSSL_ROOT="/opt/local/openssl"
|
|
ENV GDB_ROOT="/opt/local/gdb"
|
|
RUN source scl_source enable devtoolset-7 python27 && \
|
|
/tmp/extras.sh
|
|
|
|
# prep files for package building
|
|
RUN mkdir -m 777 -p /opt/rippled_bld/pkg
|
|
WORKDIR /opt/rippled_bld/pkg
|
|
RUN mkdir -m 777 ./rpmbuild
|
|
RUN mkdir -m 777 ./rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
|
|
|
|
COPY packaging/rpm/build_rpm.sh ./
|
|
CMD ./build_rpm.sh
|
|
|
|
|