Containers : build from source using the SCM.

This commit is contained in:
Gitouche 2024-03-30 14:38:05 +01:00
parent c05b52d1cf
commit 74d5330a88
3 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@ build_base() {
}
mkdir ${buildfolder} &&
if curl -sSfL -- "https://github.com/jitsi/docker-jitsi-meet/archive/refs/tags/${version}.tar.gz" | tar xz --strip-components 1 -C ${buildfolder}/ ; then
if git clone -b ${version} --depth=1 https://github.com/jitsi/docker-jitsi-meet/ ${buildfolder} ; then
if ! podman image exists git.garbaye.fr/garbaye/jitsi-jvb:${version}; then
build_base
TMPDIR=${HOME} podman image build -t git.garbaye.fr/garbaye/jitsi-jvb:${version} ${buildfolder}/jvb/ || exit 255

View file

@ -11,7 +11,7 @@ buildfolder=/tmp/synapse-$$
if ! podman image exists ${synapse_image}:${synapse_version}; then
mkdir ${buildfolder} &&
if curl -sSfL -- "https://github.com/element-hq/synapse/archive/refs/tags/${synapse_version}.tar.gz" | \tar xz --strip-components 1 -C ${buildfolder}/ ; then
if git clone -b ${synapse_version} --depth=1 https://github.com/element-hq/synapse/ ${buildfolder} ; then
rm -rf "${HOME}/buildah-cache-${UID}"
TMPDIR=${HOME} podman image build \
-t ${synapse_image}:${synapse_version} \

View file

@ -11,7 +11,7 @@ buildfolder=/tmp/peerjs-server-$$
if ! podman image exists ${upstream_images}:${version}; then
mkdir ${buildfolder} &&
curl -sSfL -- "https://github.com/peers/peerjs-server/archive/refs/tags/v${version}.tar.gz" | \tar xz --strip-components 1 -C ${buildfolder}/ &&
git clone -b v${version} --depth=1 https://github.com/peers/peerjs-server/ ${buildfolder} &&
TMPDIR=${HOME} podman image build \
--label org.opencontainers.image.description='PeerServer helps establishing connections between PeerJS clients. Data is not proxied through the server.' \
--label org.opencontainers.image.source='https://github.com/peers/peerjs-server' \