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

Docker Support #47

Open
varadrane7 opened this issue Nov 7, 2024 · 2 comments
Open

Docker Support #47

varadrane7 opened this issue Nov 7, 2024 · 2 comments

Comments

@varadrane7
Copy link

A way to run this in a docker container.

@Shpota
Copy link
Owner

Shpota commented Nov 7, 2024

What kind of Docker support would you expect? What do you want to achieve with it?

@chrisvaillancourt
Copy link

I was also interested in running this in a container. The reason is I don't have python installed so I needed to download it in order to make it work.

I tried but wasn't successful with running contribute.py from a container due to issues with making my ssh keys available within the container. I probably could've updated my git config to not sign commits but didn't try to see if that worked.

Here's the Dockerfile I made if you want to try it without signed commits:

FROM python:3.13-slim

RUN apt-get -y update
RUN apt-get -y install git


ADD contribute.py .

CMD ["python", "contribute.py", "--repository=<YOUR_REPO>"]

Build the container with docker build -t github-activity-generator . and run the image with docker run -v ~/.gitconfig:/root/.gitconfig github-activity-generator

Without docker

I ended up using uv to install python and run the script.

If you're on mac, this worked for me:

  1. run brew install uv
  2. run uv python install 3.13
  3. cd to the directory where you cloned / downloaded the script
  4. run uv init in that directory
  5. run the contribute.py script with uv run contribute.py --repository=<YOUR_REPO>

Thanks so much for making this @Shpota!!

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

No branches or pull requests

3 participants