Created
January 22, 2019 11:11
-
-
Save aaronbrown1988/95a0f5bab5ef9b0e6eefa2ad111db758 to your computer and use it in GitHub Desktop.
A docker file for building WSJTX
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 TZ 'Australia/Melbourne' | |
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 asciidoc libudev-dev | |
RUN mkdir /hamlib | |
WORKDIR /hamlib | |
RUN git clone git://git.code.sf.net/u/bsomervi/hamlib src | |
RUN cd src && git checkout integration && ./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
This is now updated with necessary dependencies as of WSJT-X 2.7.0: https://sm6vfz.wordpress.com/2023/07/10/building-and-running-wsjt-x-in-a-docker-container/