mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-08-22 13:47:29 +02:00
Pull sqlite3 from mirror (#19540)
* Pull sqlite3 from mirror * Remove extra wget * Adjust folder name * Use pre-built sqlite * Include unzip
This commit is contained in:
parent
addb4e6891
commit
06539c925c
@ -152,7 +152,7 @@ ARG TARGETARCH
|
|||||||
# Use a separate container to build wheels to prevent build dependencies in final image
|
# Use a separate container to build wheels to prevent build dependencies in final image
|
||||||
RUN apt-get -qq update \
|
RUN apt-get -qq update \
|
||||||
&& apt-get -qq install -y \
|
&& apt-get -qq install -y \
|
||||||
apt-transport-https wget \
|
apt-transport-https wget unzip \
|
||||||
&& apt-get -qq update \
|
&& apt-get -qq update \
|
||||||
&& apt-get -qq install -y \
|
&& apt-get -qq install -y \
|
||||||
python3.11 \
|
python3.11 \
|
||||||
|
@ -2,18 +2,25 @@
|
|||||||
|
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
|
|
||||||
SQLITE3_VERSION="96c92aba00c8375bc32fafcdf12429c58bd8aabfcadab6683e35bbb9cdebf19e" # 3.46.0
|
SQLITE3_VERSION="3.46.1"
|
||||||
PYSQLITE3_VERSION="0.5.3"
|
PYSQLITE3_VERSION="0.5.3"
|
||||||
|
|
||||||
# Fetch the source code for the latest release of Sqlite.
|
# Fetch the pre-built sqlite amalgamation instead of building from source
|
||||||
if [[ ! -d "sqlite" ]]; then
|
if [[ ! -d "sqlite" ]]; then
|
||||||
wget https://www.sqlite.org/src/tarball/sqlite.tar.gz?r=${SQLITE3_VERSION} -O sqlite.tar.gz
|
mkdir sqlite
|
||||||
tar xzf sqlite.tar.gz
|
cd sqlite
|
||||||
cd sqlite/
|
|
||||||
LIBS="-lm" ./configure --disable-tcl --enable-tempstore=always
|
# Download the pre-built amalgamation from sqlite.org
|
||||||
make sqlite3.c
|
# For SQLite 3.46.1, the amalgamation version is 3460100
|
||||||
|
SQLITE_AMALGAMATION_VERSION="3460100"
|
||||||
|
|
||||||
|
wget https://www.sqlite.org/2024/sqlite-amalgamation-${SQLITE_AMALGAMATION_VERSION}.zip -O sqlite-amalgamation.zip
|
||||||
|
unzip sqlite-amalgamation.zip
|
||||||
|
mv sqlite-amalgamation-${SQLITE_AMALGAMATION_VERSION}/* .
|
||||||
|
rmdir sqlite-amalgamation-${SQLITE_AMALGAMATION_VERSION}
|
||||||
|
rm sqlite-amalgamation.zip
|
||||||
|
|
||||||
cd ../
|
cd ../
|
||||||
rm sqlite.tar.gz
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Grab the pysqlite3 source code.
|
# Grab the pysqlite3 source code.
|
||||||
|
Loading…
Reference in New Issue
Block a user