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
sudo apt-get install \
postgresql-${POSTGRES_VERSION} \
postgresql-contrib-${POSTGRES_VERSION} \
postgresql-server-dev-${POSTGRES_VERSION}``` instead of simply just installing the psql binary
can I simply remove both postgresql-contrib and postgresql-server-dev
and just install postgresql-9.5 on my main machine just for the purpose of psql
Endurance21 has quit
yvanzo
Cyna: yes, other packages are needed by MBS to compile extensions, use perl modules, and some scripts.
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
yvanzo
no but building image with custom entrypoint i guess
sumedh joined the channel
BestSteve has quit
we should probably just create .bashrc in Dockerfile
Endurance21 joined the channel
BestSteve joined the channel
Cyna
Yea we could most probably as it has no container specific function and running source would create the local::lib finally
I'll give it a shot tomorrow after my exams.. Gotta go prepare now
Thanks :)
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)
yvanzo
alastairp: no because it sets PATH among other variables
alastairp
right, you could just `ENV PATH=/everything/you:/need`, but I agree that this could cause problems
better to just create a bashrc file
yvanzo
plus in dev setup I set local::lib from ${MUSICBRAINZ_PERL_LOCAL_LIB}
mudcrow has quit
sumedh has quit
sumedh joined the channel
KrachbummNT joined the channel
c1e0 joined the channel
sumedh has quit
c1e0_ joined the channel
c1e0 has quit
mudcrow joined the channel
anshuman73 joined the channel
ruaok
does anyone here fully understand passwords in postgres? this keeps tripping me over and over again.
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.
yvanzo: alastairp : bitmap ^^
> sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) fe_sendauth: no password supplied