seafile : fix? build image 5/5
This commit is contained in:
parent
344ec15cc7
commit
e365f0b22a
|
@ -12,7 +12,7 @@ buildfolder=/tmp/seafile-$$
|
||||||
if ! podman image exists ${seafile_image}:${seafile_release}; then
|
if ! podman image exists ${seafile_image}:${seafile_release}; then
|
||||||
mkdir ${buildfolder} &&
|
mkdir ${buildfolder} &&
|
||||||
git clone --depth=1 https://github.com/haiwen/seafile-docker.git ${buildfolder}/ &&
|
git clone --depth=1 https://github.com/haiwen/seafile-docker.git ${buildfolder}/ &&
|
||||||
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 "^FROM phusion" "FROM docker.io/phusion" ${buildfolder}/image/seafile_${seafile_release%.*}/Dockerfile &&
|
||||||
sed_in_place "SEAFILE_VERSION=" "SEAFILE_VERSION=${seafile_release}" ${buildfolder}/image/seafile_${seafile_release%.*}/Dockerfile &&
|
sed_in_place "SEAFILE_VERSION=" "SEAFILE_VERSION=${seafile_release}" ${buildfolder}/image/seafile_${seafile_release%.*}/Dockerfile &&
|
||||||
sed_in_place "pip -i https://pypi.tuna.tsinghua.edu.cn/simple/" "pip" ${buildfolder}/image/seafile_${seafile_release%.*}/Dockerfile &&
|
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 " -i https://pypi.tuna.tsinghua.edu.cn/simple/" " " ${buildfolder}/image/seafile_${seafile_release%.*}/Dockerfile &&
|
||||||
|
@ -21,7 +21,7 @@ if ! podman image exists ${seafile_image}:${seafile_release}; then
|
||||||
podman build -t ${seafile_image}:${seafile_release} \
|
podman build -t ${seafile_image}:${seafile_release} \
|
||||||
-f ${buildfolder}/image/seafile_${seafile_release%.*}/Dockerfile \
|
-f ${buildfolder}/image/seafile_${seafile_release%.*}/Dockerfile \
|
||||||
${buildfolder} &&
|
${buildfolder} &&
|
||||||
podman rmi phusion/baseimage:focal-1.2.0
|
podman rmi -f $(podman images -a -q -- phusion/baseimage)
|
||||||
rm -rf ${buildfolder}
|
rm -rf ${buildfolder}
|
||||||
else
|
else
|
||||||
echo "Image ${seafile_image}:${seafile_release} already built"
|
echo "Image ${seafile_image}:${seafile_release} already built"
|
||||||
|
|
Loading…
Reference in a new issue