Skip to content

Add Docker support for local development #101

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

srinadhkesineni
Copy link

  • Added Dockerfile for containerized setup
  • Included .dockerignore
  • Updated documentation with Docker usage instructions

srinadhkesineni and others added 2 commits May 11, 2025 10:03
docker documentation added
@srinadhkesineni
Copy link
Author

This PR adds basic Docker support so users can run the project in an isolated environment.

@zachary62
Copy link
Member

Thank you! But could you remove the GEMINI_API_KEY?

@srinadhkesineni
Copy link
Author

Thanks for pointing that out! I checked, but I couldn't find any GEMINI_API_KEY in the code. let me know where exactly it's located so I can remove it?

@@ -56,7 +56,7 @@ def call_llm(prompt: str, use_cache: bool = True) -> str:

# You can comment the previous line and use the AI Studio key instead:
client = genai.Client(
api_key=os.getenv("GEMINI_API_KEY", ""),
api_key=os.getenv("GEMINI_API_KEY", "AIzaSyDzXuRp0hP6wAWUFTGRrUPDiKWffUm7vGk"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated the code. could you check that once

@thoroc
Copy link

thoroc commented May 12, 2025

Any information on how to build and run the docker container in the README with the command that the main.py would expect if you were to run this locally? I think that would go a long way helping folks trying this.

I would expect to see something like:

docker run --rm -it \
    -v $(pwd)/output:/output tutorial-codebase-knowledge \
    --repo <github_repo> \
    --token <github_token>

BTW: there is another PR for something similar: https://github.com/The-Pocket/PocketFlow-Tutorial-Codebase-Knowledge/pull/54/files

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

Successfully merging this pull request may close these issues.

3 participants