I'm trying to figure out some software update tool...
# general
h
I'm trying to figure out some software update tooling things and looking to get some opinions here. I'm looking to build out a pex binary that is capable of updating itself (kind of like how you could
pip install -U pip
). Has anyone done this before and, if so, how?
1
w
Do you mean a pex that updates its internals? Or something where you have a symlink to pex.old and then the update re-points a symlink to pex.new ?
h
I guess I'm open to whatever. Core of the issue right now is say I have
my_pex
1.0 deployed and running. I want to be able to bump that to
my_pex
1.1 using
my_pex
.
w
So, what I'm doing is similar to what I mentioned, but I have an external service responsible for the download
I guess you could bundle code that would do that in the pex, but seems brittle
h
Where does your external service that does the updating come from/get updated?
w
In my case, I have a systemd service that always runs (it's a pex too), but it is almost never updated
h
Yeah I can't envision any such mechanism other than something like what SJ describes