Skip to content
Snippets Groups Projects
Commit ee6b2f40 authored by Jan David Mol's avatar Jan David Mol
Browse files

Fixed build: do not attempt to replace populated var directory by a symlink....

Fixed build: do not attempt to replace populated var directory by a symlink. We don't need to link var to the build user home dir anyway.
parent d92b5ea1
No related branches found
No related tags found
No related merge requests found
......@@ -66,8 +66,8 @@ RUN apt-get update && apt-get install -y git cmake g++ gfortran bison flex autog
cd ${INSTALLDIR}/lofar/build/${LOFAR_BUILDVARIANT} && sed -i '29,31d' include/ApplCommon/PosixTime.h && \
cd ${INSTALLDIR}/lofar/build/${LOFAR_BUILDVARIANT} && make -j ${J} && \
cd ${INSTALLDIR}/lofar/build/${LOFAR_BUILDVARIANT} && make install && \
bash -c "mkdir -p /home/${USER}/lofar/var/{log,run}" && \
bash -c "ln -sfT /home/${USER}/lofar/var ${INSTALLDIR}/lofar/var" && \
bash -c "mkdir -p ${INSTALLDIR}/lofar/var/{log,run}" && \
bash -c "chmod a+rwx ${INSTALLDIR}/lofar/var/{log,run} && \
bash -c "strip ${INSTALLDIR}/lofar/{bin,sbin,lib64}/* || true" && \
bash -c "rm -rf ${INSTALLDIR}/lofar/{build,src}" && \
setcap cap_sys_nice,cap_sys_admin=ep ${INSTALLDIR}/lofar/bin/outputProc && \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment