scripts and fixes
This commit is contained in:
18
Dockerfile
18
Dockerfile
@ -39,7 +39,7 @@ ENV DEBIAN_FRONTEND=noninteractive TZ=Europe/Berlin
|
||||
# Setup build deps
|
||||
RUN apt-get update && \
|
||||
apt-get -y install --no-install-recommends build-essential git cmake autoconf automake unzip libtool-bin pkgconf libssl-dev \
|
||||
python2.7 python-pip libcppunit-dev swig uuid-dev libusb-1.0-0-dev \
|
||||
python2.7 python-pip python3 python3-pip python-cheetah libcppunit-dev swig uuid-dev libusb-1.0-0-dev \
|
||||
python-mako libzmq3-dev libcomedi-dev python-sip-dev python-six socat && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
@ -49,7 +49,7 @@ FROM base-cli as base-gui
|
||||
|
||||
# Setup grc and gui deps
|
||||
RUN apt-get update && \
|
||||
apt-get -y install --no-install-recommends python-numpy python-wxgtk3.0 python-cheetah libzmq3-dev \
|
||||
apt-get -y install --no-install-recommends python-numpy python-wxgtk3.0 libzmq3-dev \
|
||||
libqt4-opengl-dev python-qt4 libqwt-dev python-gtk2 python-lxml && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
@ -73,15 +73,17 @@ RUN mkdir build && cd build && \
|
||||
FROM base-${UI_MODE} AS run
|
||||
|
||||
# Copy sources from build stage
|
||||
COPY --from=build /app/move2radio/build/prefix/usr /usr
|
||||
COPY --from=build /app/move2radio/build/prefix/usr /app/move2radio/build/prefix/usr
|
||||
COPY --from=build /app/move2radio/AppDir/move-ii-gr /app/move2radio/AppDir/move-ii-gr
|
||||
ENV PATH="/app/move2radio/build/prefix/usr/bin:${PATH}" \
|
||||
PYTHONPATH="/app/move2radio/build/prefix/usr/lib/python2.7/dist-packages:${PYTHONPATH}" \
|
||||
LD_LIBRARY_PATH="/app/move2radio/build/prefix/usr/lib:${LD_LIBRARY_PATH}"
|
||||
|
||||
# Install binaries
|
||||
COPY build/blocks/* /usr/share/gnuradio/grc/blocks/
|
||||
RUN chmod 644 /usr/share/gnuradio/grc/blocks/*.xml && \
|
||||
ldconfig
|
||||
COPY build/blocks/* app/move2radio/build/prefix/usr/share/gnuradio/grc/blocks/
|
||||
COPY build/fakeserver/* /app/fakeserver/
|
||||
COPY build/run.sh /app/run.sh
|
||||
RUN chmod 644 app/move2radio/build/prefix/usr/share/gnuradio/grc/blocks/*.xml && \
|
||||
chmod +x /app/run.sh && ldconfig
|
||||
|
||||
# Entrypoint
|
||||
RUN chmod +x /app/run.sh
|
||||
ENTRYPOINT ["/app/run.sh"]
|
Reference in New Issue
Block a user