| 1 |
ARG FED_REL=37 |
| 2 |
|
| 3 |
FROM fedora:${FED_REL} |
| 4 |
|
| 5 |
# Build & Test Linux: cmake build-essential git libspeexdsp-dev libsamplerate0-dev octave-common octave gnuplot sox ca-cacert octave-signal |
| 6 |
# Build OpenOCD: automake libtool libusb-1.0-0-dev wget which? |
| 7 |
# Build & Test STM32: libc6-i386 p7zip-full python3-numpy bc |
| 8 |
# tar: bzip2 |
| 9 |
# arm-none-eabi-gdb: ncurses-compat-libs |
| 10 |
|
| 11 |
RUN dnf -y install --setopt=install_weak_deps=False @development-tools cmake git speexdsp-devel libsamplerate-devel octave octave-signal gnuplot sox python3-numpy automake libtool libusb1-devel wget bc glibc.i686 which bzip2 gcc gcc-c++ diffutils && useradd -m build |
| 12 |
|
| 13 |
# specific for windows mingw build |
| 14 |
RUN dnf install -y dnf-plugins-core |
| 15 |
RUN dnf -y copr enable hobbes1069/mingw |
| 16 |
RUN dnf install -y mingw{32,64}-filesystem mingw{32,64}-binutils mingw{32,64}-gcc mingw{32,64}-crt mingw{32,64}-headers mingw32-nsis mingw{32,64}-libusbx-static |
| 17 |
RUN dnf install -y mingw{32,64}-speex mingw{32,64}-wxWidgets3 mingw{32,64}-portaudio mingw{32,64}-libsndfile mingw{32,64}-libsamplerate.noarch svn |
| 18 |
|
| 19 |
|
| 20 |
# finally, this is the build script. |
| 21 |
COPY entrypoint.sh / |
| 22 |
|
| 23 |
USER build |
| 24 |
|
| 25 |
ENTRYPOINT ["/entrypoint.sh"] |