Skip to content

Commit

Permalink
{Extension} Install library libpq-dev for extension rdbms-connect in …
Browse files Browse the repository at this point in the history
…Docker (#23265)
  • Loading branch information
alanenriqueo committed Jul 26, 2022
1 parent 7dffa74 commit d20e675
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/azure-cli-core/azure/cli/core/extension/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,11 @@ def _install_deps_for_psycopg2(): # pylint: disable=too-many-statements
if exit_code == 0:
logger.debug("Install dependencies with '%s'", " ".join(zypper_install_cmd))
subprocess.call(zypper_install_cmd)
elif installer == 'DOCKER' or any(x in distname for x in ['alpine linux']):
apk_install_cmd = 'apk add --no-cache libpq-dev'.split()
logger.debug("Install dependencies with '%s'", " ".join(apk_install_cmd))
logger.warning('This extension depends on libpq-dev and will be installed first.')
subprocess.call(apk_install_cmd)


def is_valid_sha256sum(a_file, expected_sum):
Expand Down

0 comments on commit d20e675

Please sign in to comment.