-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
Add a Dockerfile to allow git-sim running via docker #46
Comments
Hi @borekb! That sounds like a good suggestion. I worked with Docker several years ago but it's been a while. It would take me some time to get familiar again and we're also working on various other enhancements to git-sim at the moment. Any chance you want to try your hand at creating a working Docker image and submitting a pull request? Happy to provide guidance on what needs to be included, and help troubleshooting if you run into issues. |
It's also been some time for me 😄. I'll try to pair with ChatGPT next weekend to come up with something 🤞. |
Haha sounds good! Let me know if you get stuck on anything or if you have any implementation questions. |
Hello @borekb, could you check if the Dockerfile works for you on macOS? |
@Averagess Thanks for this! I was able to get it to work on MacOS Monterey, so I'll merge the PR. FYI for other Mac users out there - I had crazy issues setting up docker with docker-machine and virtualbox from the command-line using Homebrew. It was much easier to set up by manually downloading/installing docker on Macos from here: https://docs.docker.com/desktop/install/mac-install/ |
@Averagess Actually quick question - since it's tedious to run git-sim using long docker commands like It might be possible by setting up an alias like (pseudocode): alias git-sim = docker run --rm -v $(pwd):/usr/src/git-sim git-sim So that running |
@initialcommit-io With Docker alone, most likely not possible. For Bash, you can write your own alias functions inside the .bashrc file I got mine working with Git Bash on Windows, i put this function inside my .bashrc file. for macOS and linux this should work:
Now only running git-sim with params, works For Windows Powershell its a bit more complicated, but you can define same functions as aliases
|
@Averagess Sweet! I'll merge the PR now and then update the README with the Docker steps and your suggestions for aliasing. Thanks again and if you ever want to work on other aspects of Git-Sim let me know! |
I didn't realize this earlier but there already was https://hub.docker.com/r/cvagner/git-sim 8 days ago – it's created by @cvagner and the repo behind it is https://github.com/cvagner/docker-git-sim. So now I have two options how to run git-sim via Docker – open source is awesome 😄. |
Hi, |
Tools built in Python are quite tricky for me to run on macOS and I know many other people struggle with it too, would you consider publishing a Docker image to make consuming this awesome looking utility easier? It looks really great!
The text was updated successfully, but these errors were encountered: