yvanzo: I need advice on this. For an application that uses postgres, I'm creating a container for postgres so the main container can simply do `psql` to access it. Im confused as to why do I need all this ```POSTGRES_VERSION=9.5
2020-03-04 06404, 2020
Cyna
sudo apt-get install \
2020-03-04 06404, 2020
Cyna
postgresql-${POSTGRES_VERSION} \
2020-03-04 06404, 2020
Cyna
postgresql-contrib-${POSTGRES_VERSION} \
2020-03-04 06404, 2020
Cyna
postgresql-server-dev-${POSTGRES_VERSION}``` instead of simply just installing the psql binary
2020-03-04 06458, 2020
Cyna
can I simply remove both postgresql-contrib and postgresql-server-dev
2020-03-04 06425, 2020
Cyna
and just install postgresql-9.5 on my main machine just for the purpose of psql
2020-03-04 06446, 2020
Endurance21 has quit
2020-03-04 06428, 2020
yvanzo
Cyna: yes, other packages are needed by MBS to compile extensions, use perl modules, and some scripts.
2020-03-04 06448, 2020
Cyna
is there any way I can do echo `'eval $( perl -Mlocal::lib )' >> ~/.bashrc` without using .bashrc cause its not persistent among containers during build
2020-03-04 06407, 2020
yvanzo
no but building image with custom entrypoint i guess
2020-03-04 06448, 2020
sumedh joined the channel
2020-03-04 06403, 2020
BestSteve has quit
2020-03-04 06445, 2020
yvanzo
we should probably just create .bashrc in Dockerfile
2020-03-04 06443, 2020
Endurance21 joined the channel
2020-03-04 06417, 2020
BestSteve joined the channel
2020-03-04 06409, 2020
Cyna
Yea we could most probably as it has no container specific function and running source would create the local::lib finally
2020-03-04 06429, 2020
Cyna
I'll give it a shot tomorrow after my exams.. Gotta go prepare now
2020-03-04 06432, 2020
Cyna
Thanks :)
2020-03-04 06413, 2020
alastairp
does perl -Mlocal::lib just export a bunch of env vars? You could also do that directly in the Dockerfile with ENV, though it's not sustainable (if locallib changes the way it works we might not know until something breaks)
2020-03-04 06403, 2020
yvanzo
alastairp: no because it sets PATH among other variables
2020-03-04 06448, 2020
alastairp
right, you could just `ENV PATH=/everything/you:/need`, but I agree that this could cause problems
2020-03-04 06454, 2020
alastairp
better to just create a bashrc file
2020-03-04 06401, 2020
yvanzo
plus in dev setup I set local::lib from ${MUSICBRAINZ_PERL_LOCAL_LIB}
2020-03-04 06404, 2020
mudcrow has quit
2020-03-04 06406, 2020
sumedh has quit
2020-03-04 06405, 2020
sumedh joined the channel
2020-03-04 06435, 2020
KrachbummNT joined the channel
2020-03-04 06430, 2020
c1e0 joined the channel
2020-03-04 06453, 2020
sumedh has quit
2020-03-04 06417, 2020
c1e0_ joined the channel
2020-03-04 06417, 2020
c1e0 has quit
2020-03-04 06454, 2020
mudcrow joined the channel
2020-03-04 06446, 2020
anshuman73 joined the channel
2020-03-04 06449, 2020
ruaok
does anyone here fully understand passwords in postgres? this keeps tripping me over and over again.
2020-03-04 06434, 2020
ruaok
especially since psycopg2 always needs a password. but the the default postgres user has no DB, so it can't log in to create new dbs.
2020-03-04 06448, 2020
ruaok
yvanzo: alastairp : bitmap ^^
2020-03-04 06402, 2020
ruaok
> sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) fe_sendauth: no password supplied