1
0
mirror of synced 2025-12-25 02:09:19 -05:00

Upgrade to Dagger 0.13 (#46923)

## What
<!--
* Describe what the change is solving. Link all GitHub issues related to this change.
-->
Upgrade from dagger 0.9.6 to dagger 0.13

## How
<!--
* Describe how code changes achieve the solution.
-->
* change behavior of `with_exec()`. The `skip_entrypoint` keyword arg has been changed to an opposite kwarg: `use_entrypoint`
* The `pipeline()` function has been removed. Remove its use.

## How will I deem the update stable
* [x] `pipelines` tests are 🟢 
* [x] `CAT` tests are 🟢 
* [x] `base_image` tests are 🟢 
* [x] Tests are running for a java and a python connector 🟢  [(Python test)](https://github.com/airbytehq/airbyte/actions/runs/11370125686) [(Java test)](https://github.com/airbytehq/airbyte/actions/runs/11381915439/job/31664363609)
* [x] The publish pipeline still works for  java and python connectors 🟢  [(test)](https://github.com/airbytehq/airbyte/actions/runs/11367885824/job/31621641890)


## User Impact
Should have no impact

## Can this PR be safely reverted and rolled back?
<!--
* If unsure, leave it blank.
-->
- [x] YES 💚
- [ ] NO 
This commit is contained in:
Augustin
2024-10-17 12:24:40 +02:00
committed by GitHub
parent 40ee0298f5
commit 0d6cf1bdc9
77 changed files with 1606 additions and 661 deletions

View File

@@ -14,11 +14,8 @@ 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"])
# Download install-docker.sh script
.with_exec(["curl", "-fsSL", "https://get.docker.com", "-o", "/tmp/install-docker.sh"])
# Run the install-docker.sh script with a pinned Docker version
.with_exec(["sh", "/tmp/install-docker.sh", "--version", "25.0"])
# Remove the install-docker.sh script
.with_exec(["rm", "/tmp/install-docker.sh"])
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", "--version", "25.0"], use_entrypoint=True)
.with_exec(["rm", "/tmp/install-docker.sh"], use_entrypoint=True)
)