Skip to content

Add Docker support for local development#101

Merged
zachary62 merged 8 commits intoThe-Pocket:mainfrom
srinadhkesineni:main
May 15, 2025
Merged

Add Docker support for local development#101
zachary62 merged 8 commits intoThe-Pocket:mainfrom
srinadhkesineni:main

Conversation

@srinadhkesineni
Copy link
Copy Markdown
Contributor

  • 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
Copy Markdown
Contributor Author

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

@zachary62
Copy link
Copy Markdown
Member

Thank you! But could you remove the GEMINI_API_KEY?

@srinadhkesineni
Copy link
Copy Markdown
Contributor 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?

# 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
Copy Markdown
Member

Choose a reason for hiding this comment

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

Here

Copy link
Copy Markdown
Contributor 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
Copy Markdown

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

Dockerfile Outdated

COPY . .

CMD ["python"]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Does this command simply start a Python interpreter in interactive mode?

Should it be something more like CMD ["python", "main.py"...?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

My apologies, but it seems I either forgot to commit the latest changes or they weren't actually committed.
I recommitted the changes now it is working fine. And also this is my first PR so a bit of excitement. could you check once. I updated the readme documentation too.

@zachary62
Copy link
Copy Markdown
Member

Added a follow up question

@srinadhkesineni
Copy link
Copy Markdown
Contributor Author

@zachary62 hey did you check this PR, it is working fine.

@zachary62
Copy link
Copy Markdown
Member

Thank you!

@zachary62 zachary62 merged commit 915813b into The-Pocket:main May 15, 2025
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