Skip to content

Instantly share code, notes, and snippets.

@kareiva
Created October 24, 2023 15:39
Show Gist options
  • Save kareiva/8a67061ccb7bd75ad3c4ca3b1e96f683 to your computer and use it in GitHub Desktop.
Save kareiva/8a67061ccb7bd75ad3c4ca3b1e96f683 to your computer and use it in GitHub Desktop.
Dockerfile to build WSJT-Z version 1.22 inside an Ubuntu container
FROM ubuntu:latest
ENV DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC
ENV WSJTZ_VERSION="wsjtz-2.5.4-1.22.zip"
RUN apt update && apt install -y cmake asciidoc g++ gfortran automake libtool libboost-dev \
libboost-log-dev libfftw3-dev libusb-1.0-0 libusb-1.0-0-dev \
qtbase5-dev libqt5serialport5-dev libqt5multimedia5 \
qtmultimedia5-dev qttools5-dev-tools qttools5-dev git
RUN mkdir ~/hamlib-prefix && cd ~/hamlib-prefix && git clone git://git.code.sf.net/u/bsomervi/hamlib src
RUN cd ~/hamlib-prefix/src && git checkout integration && ./bootstrap
RUN mkdir ~/hamlib-prefix/build && cd ~/hamlib-prefix/build && ../src/configure --prefix=$HOME/hamlib-prefix \
--disable-shared --enable-static --without-cxx-binding --disable-winradio \
CFLAGS="-g -O2 -fdata-sections -ffunction-sections" \
LDFLAGS="-Wl,--gc-sections" && make && make install-strip
RUN apt install -y curl
RUN mkdir -p ~/wsjtx-prefix/build && cd ~/wsjtx-prefix && curl -L https://downloads.sourceforge.net/project/wsjt-z/Source/$WSJTZ_VERSION > $WSJTZ_VERSION && unzip $WSJTZ_VERSION
RUN cd ~/wsjtx-prefix/build && cmake -D CMAKE_PREFIX_PATH=~/hamlib-prefix -DWSJT_SKIP_MANPAGES=ON \
-DWSJT_GENERATE_DOCS=OFF ../wsjtx && cmake --build . && cmake --build . --target install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment