From e92d62a2fcb253b97ecebe66ff4cf4f56f9581df Mon Sep 17 00:00:00 2001 From: alafanechere Date: Tue, 17 Dec 2024 10:48:53 +0100 Subject: [PATCH] fix entrypoint --- .../pipelines/pipelines/dagger/containers/java.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/airbyte-ci/connectors/pipelines/pipelines/dagger/containers/java.py b/airbyte-ci/connectors/pipelines/pipelines/dagger/containers/java.py index 44f35e40da159..47bbe7822b214 100644 --- a/airbyte-ci/connectors/pipelines/pipelines/dagger/containers/java.py +++ b/airbyte-ci/connectors/pipelines/pipelines/dagger/containers/java.py @@ -174,21 +174,18 @@ async def with_airbyte_java_connector(context: ConnectorContext, connector_java_ f"Connector {context.connector.technical_name} has in-connector normalization enabled. This is supposed to be deprecated. " f"Please declare a base image address in the connector metadata.yaml file (connectorBuildOptions.baseImage)." ) - base = with_integration_base_java_and_normalization(context, build_platform) - entrypoint = ["/airbyte/run_with_normalization.sh"] + base = with_integration_base_java_and_normalization(context, build_platform).with_entrypoint(["/airbyte/run_with_normalization.sh"]) else: context.logger.warn( f"Connector {context.connector.technical_name} does not declare a base image in its connector metadata. " f"Please declare a base image address in the connector metadata.yaml file (connectorBuildOptions.baseImage)." ) - base = with_integration_base_java(context, build_platform) - entrypoint = ["/airbyte/base.sh"] + base = with_integration_base_java(context, build_platform).with_entrypoint(["/airbyte/base.sh"]) connector_container = ( base.with_workdir("/airbyte") .with_env_variable("APPLICATION", application) .with_mounted_directory("built_artifacts", build_stage.directory("/airbyte")) .with_exec(sh_dash_c(["mv built_artifacts/* ."])) - .with_entrypoint(entrypoint) ) return await finalize_build(context, connector_container)