Last active
December 10, 2023 22:08
-
-
Save danupp/0371f1c6bfde023e318d1fad7a831d78 to your computer and use it in GitHub Desktop.
Dockerfile for building and running WSJT-X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:latest | |
ENV SE 'Sweden/Stockholm' | |
RUN echo $TZ > /etc/timezone && \ | |
apt-get update && apt-get upgrade -y && \ | |
apt-get install -y tzdata && \ | |
rm /etc/localtime && \ | |
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \ | |
dpkg-reconfigure -f noninteractive tzdata && \ | |
apt-get install -y autoconf automake libtool cmake git && \ | |
apt-get clean | |
RUN apt-get install -y build-essential gfortran asciidoctor libfftw3-dev qtdeclarative5-dev texinfo libqt5multimedia5 libqt5multimedia5-plugins qtmultimedia5-dev libusb-1.0.0-dev libqt5serialport5-dev qttools5-dev asciidoc libudev-dev libboost-dev libboost-log-dev | |
RUN mkdir /hamlib | |
WORKDIR /hamlib | |
RUN git clone https://github.com/Hamlib/Hamlib.git src | |
RUN cd src && ./bootstrap && mkdir ../build && cd ../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 -j4 && make install-strip && cd ../../ | |
RUN mkdir /wsjtx | |
WORKDIR /wsjtx | |
RUN git clone https://git.code.sf.net/p/wsjt/wsjtx wsjt-wsjtx | |
RUN mkdir build && mkdir output && cd build && cmake -D CMAKE_PREFIX_PATH=~/hamlib-prefix -D CMAKE_INSTALL_PREFIX=/wsjtx/output ../wsjt-wsjtx/ && cmake --build . -- -j4 && cmake --build . --target install | |
CMD ["/bin/bash"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Read this: https://sm6vfz.wordpress.com/2023/07/10/building-and-running-wsjt-x-in-a-docker-container/