Seafile : 10.0.0

This commit is contained in:
Gitouche 2023-03-01 23:51:00 +01:00
parent e9742f0b64
commit 2da2c34c8a
2 changed files with 8 additions and 5 deletions

View file

@ -12,13 +12,16 @@ buildfolder=/tmp/seafile-$$
if ! podman image exists ${seafile_image}:${seafile_release}; then
mkdir ${buildfolder} &&
git clone --depth=1 https://github.com/haiwen/seafile-docker.git ${buildfolder}/ &&
sed_in_place "^FROM phusion/baseimage:focal-1.0.0" "FROM docker.io/phusion/baseimage:focal-1.0.0" ${buildfolder}/image/seafile_${seafile_release%.*}/Dockerfile &&
sed_in_place "^FROM phusion/baseimage:focal-1.2.0" "FROM docker.io/phusion/baseimage:focal-1.2.0" ${buildfolder}/image/seafile_${seafile_release%.*}/Dockerfile &&
sed_in_place "SEAFILE_VERSION=" "SEAFILE_VERSION=${seafile_release}" ${buildfolder}/image/seafile_${seafile_release%.*}/Dockerfile &&
mv ${buildfolder}/scripts_${seafile_release%.*} ${buildfolder}/image/seafile_${seafile_release%.*}/ &&
sed_in_place "pip -i https://pypi.tuna.tsinghua.edu.cn/simple/" "pip" ${buildfolder}/image/seafile_${seafile_release%.*}/Dockerfile &&
sed_in_place " -i https://pypi.tuna.tsinghua.edu.cn/simple/" " " ${buildfolder}/image/seafile_${seafile_release%.*}/Dockerfile &&
sed_in_place 'wget https://seafile-downloads.oss-cn-shanghai.aliyuncs.com/seafile-server_${SEAFILE_VERSION}_x86-64.tar.gz' 'wget -q https://github.com/haiwen/seafile-server/archive/refs/tags/v${SEAFILE_VERSION}-server.tar.gz -O seafile-server_${SEAFILE_VERSION}_x86-64.tar.gz' ${buildfolder}/image/seafile_${seafile_release%.*}/Dockerfile &&
sed_in_place "tar -zxvf" "tar -zxf" ${buildfolder}/image/seafile_${seafile_release%.*}/Dockerfile &&
podman build -t ${seafile_image}:${seafile_release} \
-f ${buildfolder}/image/seafile_${seafile_release%.*}/Dockerfile \
${buildfolder}/image/seafile_${seafile_release%.*} &&
podman rmi phusion/baseimage:focal-1.0.0
${buildfolder} &&
podman rmi phusion/baseimage:focal-1.2.0
rm -rf ${buildfolder}
else
echo "Image ${seafile_image}:${seafile_release} already built"

View file

@ -3,7 +3,7 @@
mariadb_release='10.5'
memcached_release='1.6'
seafile_image='git.garbaye.fr/garbaye/seafile-mc'
seafile_release='9.0.10'
seafile_release='10.0.0'
## default vars : override with ENV var
listen_if="${GARBAYE_SEAFILE_ENV_LISTENIF:-127.0.0.1}"
listen_port="${GARBAYE_SEAFILE_ENV_LISTENPORT:-8082}"