Skip to content
Snippets Groups Projects
Commit ed8804f7 authored by Mattia Mancini's avatar Mattia Mancini
Browse files

Make portable binary, change script location

parent 7d75574e
No related branches found
No related tags found
1 merge request!69Change the name of the pre-calibrated output MS
...@@ -44,7 +44,7 @@ ADD ./DP3 /src/dp3/src ...@@ -44,7 +44,7 @@ ADD ./DP3 /src/dp3/src
RUN cd /src/dp3/ && \ RUN cd /src/dp3/ && \
mkdir build && \ mkdir build && \
cd build && \ cd build && \
cmake ../src -DCMAKE_INSTALL_PREFIX=/usr/local/ &&\ cmake ../src -DCMAKE_INSTALL_PREFIX=/usr/local/ -DPORTABLE=True &&\
make -j2 && \ make -j2 && \
make install -j2 make install -j2
...@@ -106,9 +106,13 @@ RUN chown lofaruser:lofaruser /home/lofaruser/.entrypoint && \ ...@@ -106,9 +106,13 @@ RUN chown lofaruser:lofaruser /home/lofaruser/.entrypoint && \
chmod +rx /home/lofaruser/.entrypoint chmod +rx /home/lofaruser/.entrypoint
WORKDIR /home/lofaruser WORKDIR /home/lofaruser
COPY scripts/* /usr/local/bin/
COPY scripts/* /opt/lofar/scripts/
RUN ln -sf /opt/lofar/scripts/* /usr/local/bin/
RUN chmod +rx /usr/local/bin/* RUN chmod +rx /usr/local/bin/*
ENV PYTHONPATH="/usr/local/bin:${PYTHONPATH}" ENV PYTHONPATH="/opt/lofar/scripts:${PYTHONPATH}"
ENTRYPOINT ["/home/lofaruser/.entrypoint"] ENTRYPOINT ["/home/lofaruser/.entrypoint"]
USER lofaruser USER lofaruser
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment