Skip to content

Commit

Permalink
add redis
Browse files Browse the repository at this point in the history
- mine mine mine
  • Loading branch information
wwwutz committed Mar 25, 2024
1 parent 6c3337a commit 05c45d4
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 5 deletions.
8 changes: 4 additions & 4 deletions build.profile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
BUILD_TAG=2.6.1
BUILD_TAG=2.6.3

. build.local

PAPERLESS_LOGGING_DIR=${PROJECT}/log

DEVSHM=/dev/shm/${USER}/${BUILD_TAG}

PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin
NPROC=$(nproc)
XDG_CACHE_HOME=${PREFIX}/cache
TMPDIR=${TMPDIR:-/tmp/${USER}/${BUILD_TAG}}
LOGDIR=${PROJECT}/log

BUILD_sqlite=sqlite-3.45.1
BUILD_redis=redis-7.2.4
BUILD_python=Python-3.11.8
BUILD_node=node-20.11.0
BUILD_ffmpeg=ffmpeg-6.1.1
Expand All @@ -25,4 +25,4 @@ BUILD_jbig2enc=jbig2enc-0.28-17-gea05019
BUILD_jbig2dec=jbig2dec-0.20
BUILD_libfontttf=liberation-fonts-ttf-2.1.5

BUILD_paperless=paperless-ngx-2.6.2
BUILD_paperless=paperless-ngx-2.6.3
6 changes: 5 additions & 1 deletion buildall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ ln -fs "${logfile}" "${LOGS}/build.log"

{
./profile.build.sh
./startstop-paperless.build.sh
./startstop.build.sh
[ -d "${BUILD_sqlite}" ] || ./sqlite.build.sh
[ -d "${BUILD_redis}" ] || ./redis.build.sh
./redis.startstop.build.sh
[ -d "${BUILD_python}" ] || ./Python.build.sh
[ -d "${BUILD_node}" ] || ./node.build.sh
[ -d "${BUILD_ffmpeg}" ] || ./ffmpeg.build.sh
Expand All @@ -73,7 +75,9 @@ ln -fs "${logfile}" "${LOGS}/build.log"
[ -d "${BUILD_libfontttf}" ] || ./liberation-fonts-ttf.build.sh
[ -d "${BUILD_nginx}" ] || ./nginx.build.sh
./nginx.conf.build.sh
./nginx.startstop.build.sh
[ -d "$PROJECT/${BUILD_paperless}" ] || ./paperless-ngx.build.sh
./paperless-gunicorn.startstop.build.sh


} 2>&1 | tee "$logfile" 2>&1
1 change: 1 addition & 0 deletions cleanall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RMRF=(
"${BUILD_paperless}"
"${BUILD_pngquant}"
"${BUILD_python}"
"${BUILD_redis}"
"${BUILD_sqlite}"
"${BUILD_tesseract}"
"${BUILD_unpaper}"
Expand Down
1 change: 1 addition & 0 deletions profile.build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin
. ${PROJECT}/${BUILD_sqlite}/profile
. ${PROJECT}/${BUILD_python}/profile
. ${PROJECT}/${BUILD_node}/profile
. ${PROJECT}/${BUILD_redis}/profile
. ${PROJECT}/${BUILD_nginx}/profile
. ${PROJECT}/${BUILD_unpaper}/profile
. ${PROJECT}/${BUILD_ffmpeg}/profile
Expand Down
36 changes: 36 additions & 0 deletions redis.build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/bash
{
set -x
set -e
set -u

. build.profile

function B_REDIS {

SRCURL="https://download.redis.io/releases/redis-7.2.4.tar.gz"

BUILD_PKG=${BUILD_redis}

PREFIX=${PREFIX}/${BUILD_PKG}

mkdir -p $PREFIX

cat >$PREFIX/profile <<-EOF
PATH=$PREFIX/bin:\$PATH
# PKG_CONFIG_PATH=${PROJECT}/${BUILD_PKG}/lib/pkgconfig\${PKG_CONFIG_PATH:+:}\$PKG_CONFIG_PATH
EOF


test -e ${BUILD_PKG}.tar.gz || wget -nv ${SRCURL} -O ${BUILD_PKG}.tar.gz
test -d ${BUILD_PKG} || mkdir -pv ${BUILD_PKG} && tar -xf ${BUILD_PKG}.tar.gz --strip-components=1 -C ${BUILD_PKG}

cd ${BUILD_PKG}

make -j "${NPROC}" install PREFIX="${PREFIX}"

}

B_REDIS

}

0 comments on commit 05c45d4

Please sign in to comment.