Re: How to Build Postgres in a Portable / Relocatable fashion?
От | AJ ONeal |
---|---|
Тема | Re: How to Build Postgres in a Portable / Relocatable fashion? |
Дата | |
Msg-id | UsfgvLLt8VkL8nBwR4MDOqw89Y6OChvbXDoOWn74C3zNMByBOY9UPG8W_lWN8c2eEPut4svGmCAX4_82oZfC87gISSMp2jhctSkeMejgwAw=@proton.me обсуждение исходный текст |
Ответ на | Re: How to Build Postgres in a Portable / Relocatable fashion? (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: How to Build Postgres in a Portable / Relocatable fashion?
|
Список | pgsql-general |
> > What I want to create (and provide) is a portable tarball that has > > most of all what it needs in the tarball and will look for relevant > > libraries relative to itself. > > > See > > https://www.postgresql.org/docs/current/installation.html > > particularly the discussion of installation relocatability under > > https://www.postgresql.org/docs/current/install-make.html#CONFIGURE-OPTIONS-LOCATIONS It seems like the first bit of magic I need is: `--prefix=/doesntexist/postgres` Including 'postgres' as part of the name puts it in "relative mode", so-to-speak. Thank you! > > Something that Just Works™ almost anywhere (Ubuntu, Debian, RedHat, Suse... maybe even Alpine). > > > That's a little harder, mainly because the shared libraries for > dependencies like openssl etc may not be 100% compatible across > all those platforms. Different versions, different build options, > yadda yadda. I'd like to build as much static as possible (or reasonable). Is there a way to tell it "just include openssl"? > Maybe you should be thinking in terms of a docker container > or the like? I really hate Docker. The idea of "we can't ship your computer to the client, so we'll just ship... a clone of you computerto the client" offends my sensibilities. Or rather, I like the opportunity that LXC provides in the right context, but I don't like how it's become a replacementfor shared knowledge within a group - i.e. "no one can remember the wisdom of the ancients, so if this fragilesystem that Ted built ever fails or needs a change no one knows how he did it or what the options mean, but don'tworry, it's all encapsulated in a very complex Dockerfile that no one understands and depends on hundreds of layersof images... but it's not like someone would ever leftpad any of them... What could go wrong?"
В списке pgsql-general по дате отправления: