Pull PPA/Package install into a single file to bump build times.

This commit is contained in:
Buster Neece 2023-01-12 16:53:22 -06:00
parent fe2b44df12
commit 84d25adc3b
No known key found for this signature in database
GPG Key ID: F1D2E64A0005E80E
7 changed files with 21 additions and 25 deletions

View File

@ -0,0 +1,18 @@
#!/bin/bash
set -e
set -x
# Group up several package installations here to reduce overall build time
add-apt-repository -y ppa:chris-needham/ppa
add-apt-repository -y ppa:sftpgo/sftpgo
add-apt-repository -y ppa:ondrej/php
apt-get update
apt-get install -y --no-install-recommends \
audiowaveform \
nginx nginx-common openssl \
sftpgo \
tmpreaper \
zstd

View File

@ -1,8 +0,0 @@
#!/bin/bash
set -e
set -x
add-apt-repository -y ppa:chris-needham/ppa
apt-get update
apt-get install -y --no-install-recommends audiowaveform

View File

@ -2,7 +2,7 @@
set -e
set -x
apt-get install -y --no-install-recommends nginx nginx-common openssl
# Package installation handled in 00_packages.sh
# Install nginx and configuration
cp /bd_build/web/nginx/proxy_params.conf /etc/nginx/proxy_params

View File

@ -4,8 +4,7 @@ set -x
PHP_VERSION=8.2
add-apt-repository -y ppa:ondrej/php
apt-get update
# PPA set up in 00_packages.sh
apt-get install -y --no-install-recommends php${PHP_VERSION}-fpm php${PHP_VERSION}-cli php${PHP_VERSION}-gd \
php${PHP_VERSION}-curl php${PHP_VERSION}-xml php${PHP_VERSION}-zip php${PHP_VERSION}-bcmath \

View File

@ -2,10 +2,7 @@
set -e
set -x
add-apt-repository -y ppa:sftpgo/sftpgo
apt-get update
apt-get install -y --no-install-recommends sftpgo
# Package installed in 00_packages.sh
mkdir -p /var/azuracast/sftpgo/persist /var/azuracast/sftpgo/backups

View File

@ -1,5 +0,0 @@
#!/bin/bash
set -e
set -x
apt-get install -y --no-install-recommends tmpreaper

View File

@ -1,5 +0,0 @@
#!/bin/bash
set -e
set -x
apt-get install -y --no-install-recommends zstd