peerjs-server : ajout labels org.opencontainers.image sur les images

This commit is contained in:
Gitouche 2022-12-13 22:40:46 +01:00
parent 593c1d7675
commit bb3775aa59

View file

@ -13,7 +13,12 @@ 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}/ &&
sed_in_place "^FROM node:alpine" "FROM docker.io/library/node:alpine" ${buildfolder}/Dockerfile &&
podman build -t ${upstream_images}:${version} ${buildfolder}/ &&
podman 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' \
--label org.opencontainers.image.title='PeerServer' \
--label org.opencontainers.image.url='https://peerjs.com' \
-t ${upstream_images}:${version} ${buildfolder}/ &&
podman rmi docker.io/library/node:alpine &&
rm -rf ${buildfolder}
else