Seafile : test images v9
This commit is contained in:
parent
daad776bfe
commit
ac037f0fc6
|
@ -5,7 +5,7 @@ service_name="pod-${pod_name}.service"
|
||||||
mariadb_release='10.3'
|
mariadb_release='10.3'
|
||||||
memcached_release='1.6'
|
memcached_release='1.6'
|
||||||
seafile_image='localhost/seafileltd/seafile-mc'
|
seafile_image='localhost/seafileltd/seafile-mc'
|
||||||
seafile_release='8.0.8'
|
seafile_release='9.0.4'
|
||||||
dbvolume='podman-seafile_seafile-db'
|
dbvolume='podman-seafile_seafile-db'
|
||||||
datavolume='podman-seafile_seafile-data'
|
datavolume='podman-seafile_seafile-data'
|
||||||
listen_if="${GARBAYE_SEAFILE_ENV_LISTENIF:-127.0.0.1}"
|
listen_if="${GARBAYE_SEAFILE_ENV_LISTENIF:-127.0.0.1}"
|
||||||
|
|
|
@ -12,12 +12,12 @@ 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.0.0" "FROM docker.io/phusion/baseimage:focal-1.0.0" ${buildfolder}/image/seafile_8.0/Dockerfile &&
|
sed_in_place "^FROM phusion/baseimage:focal-1.0.0" "FROM docker.io/phusion/baseimage:focal-1.0.0" ${buildfolder}/image/seafile_9.0/Dockerfile &&
|
||||||
sed_in_place "SEAFILE_VERSION=" "SEAFILE_VERSION=${seafile_release}" ${buildfolder}/image/seafile_8.0/Dockerfile &&
|
sed_in_place "SEAFILE_VERSION=" "SEAFILE_VERSION=${seafile_release}" ${buildfolder}/image/seafile_9.0/Dockerfile &&
|
||||||
mv ${buildfolder}/scripts_8.0 ${buildfolder}/image/seafile_8.0/ &&
|
mv ${buildfolder}/scripts_9.0 ${buildfolder}/image/seafile_9.0/ &&
|
||||||
podman build -t ${seafile_image}:${seafile_release} \
|
podman build -t ${seafile_image}:${seafile_release} \
|
||||||
-f ${buildfolder}/image/seafile_8.0/Dockerfile \
|
-f ${buildfolder}/image/seafile_9.0/Dockerfile \
|
||||||
${buildfolder}/image/seafile_8.0 &&
|
${buildfolder}/image/seafile_9.0 &&
|
||||||
podman rmi phusion/baseimage:focal-1.0.0
|
podman rmi phusion/baseimage:focal-1.0.0
|
||||||
rm -rf ${buildfolder}
|
rm -rf ${buildfolder}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue