add docker build for funcube
This commit is contained in:
		
							
								
								
									
										8
									
								
								docker/Dockerfiles/Dockerfile-fcdpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								docker/Dockerfiles/Dockerfile-fcdpp
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| ARG ARCHTAG | ||||
| FROM openwebrx-soapysdr-base:$ARCHTAG | ||||
|  | ||||
| ADD docker/scripts/install-dependencies-fcdpp.sh / | ||||
| RUN /install-dependencies-fcdpp.sh &&\ | ||||
|     rm /install-dependencies-fcdpp.sh | ||||
|  | ||||
| ADD . /opt/openwebrx | ||||
| @@ -14,6 +14,7 @@ RUN /install-dependencies-rtlsdr.sh &&\ | ||||
|     /install-dependencies-limesdr.sh &&\ | ||||
|     /install-dependencies-soapyremote.sh &&\ | ||||
|     /install-dependencies-perseus.sh &&\ | ||||
|     /install-dependencies-fcdpp.sh &&\ | ||||
|     rm /install-dependencies-*.sh &&\ | ||||
|     rm /install-lib.*.patch | ||||
|  | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| ARCH=$(uname -m) | ||||
| IMAGES="openwebrx-rtlsdr openwebrx-sdrplay openwebrx-hackrf openwebrx-airspy openwebrx-rtlsdr-soapy openwebrx-plutosdr openwebrx-limesdr openwebrx-soapyremote openwebrx-perseus openwebrx-full openwebrx" | ||||
| IMAGES="openwebrx-rtlsdr openwebrx-sdrplay openwebrx-hackrf openwebrx-airspy openwebrx-rtlsdr-soapy openwebrx-plutosdr openwebrx-limesdr openwebrx-soapyremote openwebrx-perseus openwebrx-fcdpp openwebrx-full openwebrx" | ||||
| ALL_ARCHS="x86_64 armv7l aarch64" | ||||
| TAG=${TAG:-"latest"} | ||||
| ARCHTAG="$TAG-$ARCH" | ||||
|   | ||||
							
								
								
									
										32
									
								
								docker/scripts/install-dependencies-fcdpp.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										32
									
								
								docker/scripts/install-dependencies-fcdpp.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,32 @@ | ||||
| #!/bin/bash | ||||
| set -euxo pipefail | ||||
| export MAKEFLAGS="-j4" | ||||
|  | ||||
| function cmakebuild() { | ||||
|   cd $1 | ||||
|   if [[ ! -z "${2:-}" ]]; then | ||||
|     git checkout $2 | ||||
|   fi | ||||
|   mkdir build | ||||
|   cd build | ||||
|   cmake .. | ||||
|   make | ||||
|   make install | ||||
|   cd ../.. | ||||
|   rm -rf $1 | ||||
| } | ||||
|  | ||||
| cd /tmp | ||||
|  | ||||
| STATIC_PACKAGES="libhidapi-hidraw0 libhidapi-libusb0 libasound2" | ||||
| BUILD_PACKAGES="git cmake make gcc g++ libhidapi-dev libasound2-dev" | ||||
|  | ||||
| apt-get update | ||||
| apt-get -y install --no-install-recommends $STATIC_PACKAGES $BUILD_PACKAGES | ||||
|  | ||||
| git clone https://github.com/pothosware/SoapyFCDPP.git | ||||
| cmakebuild SoapyFCDPP soapy-fcdpp-0.1.1 | ||||
|  | ||||
| apt-get -y purge --autoremove $BUILD_PACKAGES | ||||
| apt-get clean | ||||
| rm -rf /var/lib/apt/lists/* | ||||
		Reference in New Issue
	
	Block a user
	 Jakob Ketterl
					Jakob Ketterl