Skip to content

Commit

Permalink
move unrelated dependencies out of the docker install script
Browse files Browse the repository at this point in the history
speeds up build by eliminating an apt update call
  • Loading branch information
wiedehopf committed Nov 6, 2024
1 parent ff0ac5e commit 00b470f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 0 additions & 4 deletions src/modules/adsb-docker/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ install_cleanup_trap
export DEBIAN_FRONTEND=noninteractive

echo "Installing docker, each step may take a while:"
echo -n "Updating repositories... "
apt-get update -y
echo -n "Ensuring dependencies are installed... "
apt-get install -y git rtl-sdr apt-transport-https ca-certificates curl gnupg2 slirp4netns uidmap jq zstd netcat-openbsd
echo -n "Getting docker..."
curl -fsSL https://get.docker.com -o get-docker.sh
echo "Installing Docker... "
Expand Down
7 changes: 6 additions & 1 deletion src/modules/adsb-feeder/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,12 @@ echo "_ADSBIM_CONTAINER_VERSION=$(cat /opt/adsb/adsb.im.version)" >> "$ENV_FILE"
rm -f /boot/ADSB-README.txt

# Install dependencies
apt-get install -y gnupg hostapd isc-dhcp-server avahi-utils
apt-get install -y \
gnupg hostapd isc-dhcp-server avahi-utils \
git rtl-sdr \
apt-transport-https ca-certificates curl gnupg2 \
slirp4netns uidmap jq zstd netcat-openbsd

systemctl mask hostapd.service
systemctl mask isc-dhcp-server.service

Expand Down

0 comments on commit 00b470f

Please sign in to comment.