Creates a Docker Python image that installs git-dumper and then runs a container with git-dumper -u url -o outputDirectory
If the repository you are downloading is controlled by an attacker, this could lead to remote code execution on your machine. So this creates a sandboxed environment for safe use
- Docker Daemon CLI
$ go run main.go -u http://example.com/.git -o output/dirOR build the program
The build does embed a Tarfile into the program so any changes to the Dockerfile you should run
$ tar -cvf Dockerfile.tar DockerfileThis is because the docker SDK expects a tarfile because just using a regular Dockerfile you get an EOF error