Skip to content
Snippets Groups Projects
Commit 11c9f1b8 authored by Izzard, Robert Dr (Maths & Physics)'s avatar Izzard, Robert Dr (Maths & Physics)
Browse files

update docs and Dockerfile for Meson builds

parent 215414e3
No related branches found
No related tags found
No related merge requests found
Source diff could not be displayed: it is too large. Options to address this: view the blob.
...@@ -5059,7 +5059,7 @@ status open ...@@ -5059,7 +5059,7 @@ status open
\begin_layout Plain Layout \begin_layout Plain Layout
meson -Daccurate=true meson builddir -Daccurate=true
\end_layout \end_layout
\end_inset \end_inset
...@@ -5127,7 +5127,7 @@ status open ...@@ -5127,7 +5127,7 @@ status open
\begin_layout Plain Layout \begin_layout Plain Layout
meson -Dgeneric=true meson builddir -Dgeneric=true
\end_layout \end_layout
\end_inset \end_inset
......
# Dockerfile for binary_c (2.1) and binary_grid2 # Dockerfile for binary_c (2.1.4) and binary_grid2 (2.1.4)
# based on Ubuntu 18.04 # based on Ubuntu 18.04
FROM ubuntu:18.04 FROM ubuntu:18.04
...@@ -34,6 +34,11 @@ RUN apt-get -y --no-install-recommends install make ...@@ -34,6 +34,11 @@ RUN apt-get -y --no-install-recommends install make
RUN apt-get -y --no-install-recommends install libc6-dev RUN apt-get -y --no-install-recommends install libc6-dev
RUN apt-get -y --no-install-recommends install sudo RUN apt-get -y --no-install-recommends install sudo
RUN apt-get -y --no-install-recommends install okular RUN apt-get -y --no-install-recommends install okular
RUN apt-get -y --no-install-recommends install python3
RUN apt-get -y --no-install-recommends install python3-pip
RUN apt-get -y --no-install-recommends install meson
RUN apt-get -y --no-install-recommends install ninja-build
RUN pip3 install meson
############################################################ ############################################################
# apt cleanup # apt cleanup
...@@ -161,9 +166,17 @@ COPY --chown=binary_c ./binary_c_master /home/binary_c/progs/stars/binary_c ...@@ -161,9 +166,17 @@ COPY --chown=binary_c ./binary_c_master /home/binary_c/progs/stars/binary_c
############################################################ ############################################################
WORKDIR /home/binary_c/progs/stars/binary_c WORKDIR /home/binary_c/progs/stars/binary_c
RUN export LD_LIBRARY_PATH=$HOME/lib LIBRARY_PATH=$HOME/lib && wc -c LICENCE |gawk "{print \$1}" > .lread && ./configure generic
RUN export LD_LIBRARY_PATH=$HOME/lib LIBRARY_PATH=$HOME/lib && ./make ###### old configure/make
RUN export LD_LIBRARY_PATH=$HOME/lib LIBRARY_PATH=$HOME/lib && ./make libbinary_c.so || true #RUN export LD_LIBRARY_PATH=$HOME/lib LIBRARY_PATH=$HOME/lib && wc -c LICENCE |gawk "{print \$1}" > .lread && ./configure generic
#RUN export LD_LIBRARY_PATH=$HOME/lib LIBRARY_PATH=$HOME/lib && ./make
#RUN export LD_LIBRARY_PATH=$HOME/lib LIBRARY_PATH=$HOME/lib && ./make libbinary_c.so || true
###### new meson/ninja
RUN export LD_LIBRARY_PATH=$HOME/lib LIBRARY_PATH=$HOME/lib && wc -c LICENCE |gawk "{print \$1}" > .lread && meson builddir -Dgeneric=true
RUN export LD_LIBRARY_PATH=$HOME/lib LIBRARY_PATH=$HOME/lib && cd builddir && ninja
RUN export LD_LIBRARY_PATH=$HOME/lib LIBRARY_PATH=$HOME/lib && cd builddir && ninja libbinary_c.so
RUN export LD_LIBRARY_PATH=$HOME/lib LIBRARY_PATH=$HOME/lib && cd builddir && ninja binary_c_symlink
############################################################ ############################################################
# install perl modules for binary_grid # install perl modules for binary_grid
...@@ -186,7 +199,7 @@ RUN cpanm Sort::Key ...@@ -186,7 +199,7 @@ RUN cpanm Sort::Key
RUN perl ./install_all.pl RUN perl ./install_all.pl
RUN cpanm Proc::ProcessTable RUN cpanm Proc::ProcessTable
RUN cpanm Cpanel::JSON::XS RUN cpanm Cpanel::JSON::XS
RUN cpanm -v ./binary_grid-v2.1.3.tar.gz RUN cpanm -v ./binary_grid-v2.1.4.tar.gz
############################################################ ############################################################
# cleanup: cpanm and build directories # cleanup: cpanm and build directories
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment