Here is an example save script for s2i:
if [ -d ${HOME}/.m2 ]; then
pushd ${HOME} > /dev/null
tar cf - .m2
popd > /dev/null
fi
where is the compressed save file physically stored? on the node Vm? etcd?
Hi Charles
Not 100% sure, I need to investigate a bit further, but my educated guess is that this is stored in the etcd cluster (even maybe in the build configuration metadata).
I don't think it can be stored in the node (VM or bare metal). If the archive were stored in the node, the next incremental build would be restricted to the same node. Same build in a different node and that is indeed not the case.
Let me know if this answers your question. Else I will investigate a bit more.
Kind regards
Jordi
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.