1
0
mirror of synced 2025-12-20 02:23:30 -05:00
Files
airbyte/airbyte-integrations/connectors/source-azure-blob-storage/build_customization.py
David Gold fb69db37b1 [ci] (source-azure-blob-storage) fix vulnerabilities (#60867)
Co-authored-by: Aaron ("AJ") Steers <aj@airbyte.io>
Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2025-05-27 16:02:07 -07:00

23 lines
791 B
Python

# Copyright (c) 2024 Airbyte, Inc., all rights reserved.
from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from dagger import Container
async def pre_connector_install(base_image_container: Container) -> Container:
"""
Docker compose is required to run the integration tests so we install Docker on top of the base image.
"""
return (
base_image_container.with_exec(["sh", "-c", "apt-get update && apt-get install -y curl jq"], use_entrypoint=True)
.with_exec(["curl", "-fsSL", "https://get.docker.com", "-o", "/tmp/install-docker.sh"], use_entrypoint=True)
.with_exec(["sh", "/tmp/install-docker.sh"], use_entrypoint=True)
.with_exec(["rm", "/tmp/install-docker.sh"], use_entrypoint=True)
)