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

{Extension} Install library libpq-dev for extension rdbms-connect in Docker #23265

Merged
merged 1 commit into from
Jul 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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