Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
fredclausen committed Dec 1, 2024
1 parent dd4fe08 commit 33ab37e
Showing 1 changed file with 52 additions and 52 deletions.
104 changes: 52 additions & 52 deletions Dockerfile.local
Original file line number Diff line number Diff line change
@@ -1,68 +1,68 @@
#build acars-bridge
FROM rust:1.82.0 as builder
FROM rust:1.83.0 as builder
WORKDIR /tmp/acars-bridge
# hadolint ignore=DL3008,DL3003,SC1091
RUN set -x && \
apt-get update && \
apt-get install -y --no-install-recommends libzmq3-dev
apt-get update && \
apt-get install -y --no-install-recommends libzmq3-dev

RUN set -x && \
git clone https://github.com/sdr-enthusiasts/acars-bridge.git . && \
cargo build --release && \
# clean up the apt-cache
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
cp /tmp/acars-bridge/target/release/acars-bridge . && \
cargo clean
git clone https://github.com/sdr-enthusiasts/acars-bridge.git . && \
cargo build --release && \
# clean up the apt-cache
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
cp /tmp/acars-bridge/target/release/acars-bridge . && \
cargo clean

FROM ghcr.io/sdr-enthusiasts/docker-baseimage:acars-decoder

ENV DEVICE_INDEX="" \
QUIET_LOGS="TRUE" \
FREQUENCIES="" \
FEED_ID="" \
PPM="0"\
GAIN="400" \
SERIAL="" \
OUTPUT_SERVER="acars_router" \
OUTPUT_SERVER_PORT="5555" \
OUTPUT_SERVER_MODE="udp" \
MODE="J"
QUIET_LOGS="TRUE" \
FREQUENCIES="" \
FEED_ID="" \
PPM="0"\
GAIN="400" \
SERIAL="" \
OUTPUT_SERVER="acars_router" \
OUTPUT_SERVER_PORT="5555" \
OUTPUT_SERVER_MODE="udp" \
MODE="J"

# hadolint ignore=DL3008,SC2086,SC2039,SC3054
RUN set -x && \
TEMP_PACKAGES=() && \
KEPT_PACKAGES=() && \
# Required for building multiple packages.
TEMP_PACKAGES+=(build-essential) && \
TEMP_PACKAGES+=(pkg-config) && \
TEMP_PACKAGES+=(cmake) && \
TEMP_PACKAGES+=(git) && \
TEMP_PACKAGES+=(automake) && \
TEMP_PACKAGES+=(autoconf) && \
TEMP_PACKAGES+=(wget) && \
# install packages
apt-get update && \
apt-get install -y --no-install-recommends \
"${KEPT_PACKAGES[@]}" \
"${TEMP_PACKAGES[@]}"\
&& \
# vdlm2dec
# git clone https://github.com/TLeconte/vdlm2dec.git /src/vdlm2dec && \
git clone https://github.com/wiedehopf/vdlm2dec.git /src/vdlm2dec && \
pushd /src/vdlm2dec && \
# fix for floating point amd64 nonsense
sed -i 's/add_compile_options(-Ofast -march=native )/add_compile_options(-O2 )/g' CMakeLists.txt && \
mkdir build && \
pushd build && \
cmake ../ -Drtl=ON -DCMAKE_BUILD_TYPE=Debug && \
make && \
make install && \
popd && popd && \
# Clean up
apt-get remove -y "${TEMP_PACKAGES[@]}" && \
apt-get autoremove -y && \
rm -rf /src/* /tmp/* /var/lib/apt/lists/*
TEMP_PACKAGES=() && \
KEPT_PACKAGES=() && \
# Required for building multiple packages.
TEMP_PACKAGES+=(build-essential) && \
TEMP_PACKAGES+=(pkg-config) && \
TEMP_PACKAGES+=(cmake) && \
TEMP_PACKAGES+=(git) && \
TEMP_PACKAGES+=(automake) && \
TEMP_PACKAGES+=(autoconf) && \
TEMP_PACKAGES+=(wget) && \
# install packages
apt-get update && \
apt-get install -y --no-install-recommends \
"${KEPT_PACKAGES[@]}" \
"${TEMP_PACKAGES[@]}"\
&& \
# vdlm2dec
# git clone https://github.com/TLeconte/vdlm2dec.git /src/vdlm2dec && \
git clone https://github.com/wiedehopf/vdlm2dec.git /src/vdlm2dec && \
pushd /src/vdlm2dec && \
# fix for floating point amd64 nonsense
sed -i 's/add_compile_options(-Ofast -march=native )/add_compile_options(-O2 )/g' CMakeLists.txt && \
mkdir build && \
pushd build && \
cmake ../ -Drtl=ON -DCMAKE_BUILD_TYPE=Debug && \
make && \
make install && \
popd && popd && \
# Clean up
apt-get remove -y "${TEMP_PACKAGES[@]}" && \
apt-get autoremove -y && \
rm -rf /src/* /tmp/* /var/lib/apt/lists/*


COPY rootfs/ /
Expand Down

0 comments on commit 33ab37e

Please sign in to comment.