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

[Feature Request]: Include keyrings.google-artifactregistry-auth in Python SDK container #32123

Closed
1 of 17 tasks
baeminbo opened this issue Aug 9, 2024 · 1 comment · Fixed by #32404
Closed
1 of 17 tasks

Comments

@baeminbo
Copy link
Contributor

baeminbo commented Aug 9, 2024

What would you like to happen?

I want to use Python packages in private repository in [Google Artifact Repository](https://cloud.google.com/artifact-registry/docs/python/authentication. It requires keyrings.google-artifactregistry-auth to run pip install <package> --extra-index-url <location>-python.pkg.dev/<project>/<repository>/simple.

To run Dataflow job with private packages, currently I should create a custom container that installs keyrings.google-artifactregistry-auth. [1] is an example of Dockerfile for this.

For convenience, can we pre-install the package in Python SDK containers?

[1]

FROM apache/beam_python3.11_sdk:2.58.0

RUN pip install keyrings.google-artifactregistry-auth

Issue Priority

Priority: 2 (default / most feature requests should be filed as P2)

Issue Components

  • Component: Python SDK
  • Component: Java SDK
  • Component: Go SDK
  • Component: Typescript SDK
  • Component: IO connector
  • Component: Beam YAML
  • Component: Beam examples
  • Component: Beam playground
  • Component: Beam katas
  • Component: Website
  • Component: Infrastructure
  • Component: Spark Runner
  • Component: Flink Runner
  • Component: Samza Runner
  • Component: Twister2 Runner
  • Component: Hazelcast Jet Runner
  • Component: Google Cloud Dataflow Runner
@baeminbo
Copy link
Contributor Author

baeminbo commented Sep 6, 2024

This allows the following usage in --requirements_file in Dataflow without building a custom container. b/358399167

# Don't forget /simple after the Python repository URL of Google Artifact Repository
--extra-index-url https://us-central1-python.pkg.dev/my-project/python/simple
private-sampleproject

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant