I made a little wrapper to build and export by ssh to your server your module
on your dev laptop in the dev directory
build-podman webserver:latest <root@server>
on your server
[root@ns8loc3 ~]# podman load -i webserver_latest.tar
Getting image source signatures
Copying blob d07fb73f482b done
Copying config d54d7a45dd done
Writing manifest to image destination
Storing signatures
Loaded image(s): ghcr.io/nethserver/webserver:latest
[root@ns8loc3 ~]#add-module ghcr.io/nethserver/webserver:latest 1
the code:
#!/bin/bash
IMAGE=$1
SERVER=$2
# toto
if [[ -z $1 ]];then
echo "#
# usage
#
build the image podman and upload to the /root of VM:
build-podman <image-name> <rootr@server>
build-podman mariadb:latest <root@server>
once scp to the /root of the remote server use :
podman load -i image_tag.tar
list all images available to scp
build-podman ls"
exit 0
fi
if [[ $1 == 'ls' ]];then
podman images
exit 0
fi
if [[ -z $2 ]]; then
echo "We have not the user@domain.com"
exit 0
fi
if [[ -f 'build-images.sh' ]];then
bash +x build-images.sh
file=${1//:/_}
podman save $1 > $file.tar
scp $file.tar $2:/root
else
echo "We have not found build-images.sh script"
exit 0
fi