Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to locate package postgresql-client #1537

Closed
ronydebnath opened this issue May 10, 2018 · 2 comments
Closed

Unable to locate package postgresql-client #1537

ronydebnath opened this issue May 10, 2018 · 2 comments
Labels

Comments

@ronydebnath
Copy link
Contributor

Info:

  • Docker version (Docker version 18.03.0-ce, build 0520e24):
  • Laradock commit ($ git rev-parse HEAD):
  • System info (Linux):
  • System info disto/version: Ubuntu 18.04 Linux 4.16.7-041607-generic x86_64

Issue:

E: Unable to locate package postgresql-client
ERROR: Service 'php-fpm' failed to build: The command '/bin/sh -c if [ ${INSTALL_PG_CLIENT} = true ]; then     mkdir -p /usr/share/man/man1 &&     mkdir -p /usr/share/man/man7 &&     apt-get install -y postgresql-client ;fi' returned a non-zero code: 100


Expected behavior:


Reproduce:

INSTALL_PG_CLIENT=true
then
docker-compose up -d nginx mariadb adminer postgres


Relevant Code:

This error can be solved by modifying the pgsql client in php-fpm/Dockerfile

 ARG INSTALL_PG_CLIENT=false

RUN if [ ${INSTALL_PG_CLIENT} = true ]; then \
    # Create folders if not exists (https://github.com/tianon/docker-brew-debian/issues/65)
    mkdir -p /usr/share/man/man1 && \
    mkdir -p /usr/share/man/man7 && \
    # Install the pgsql client
    apt-get update && \
    apt-get install -y postgresql-client \
;fi

simply adding apt-get update before installing the pg client

@stale
Copy link

stale bot commented Feb 2, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale label Feb 2, 2020
@stale
Copy link

stale bot commented Feb 23, 2020

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed Feb 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant