Official Docker image for Cloney, the dynamic template generator for Git repositories.
219
The Cloney Docker image offers a convenient way to use Cloney within an isolated environment. With this approach, you can run Cloney without the need for a direct installation on your machine, making template cloning processes straightforward and reproducible.
To clone a Cloney template repository to your local machine using the Cloney Docker image, follow this simple example:
docker run --rm -it -v ./:/home/cloney magicmanatee/cloney cloney clone https://github.com/ArthurSudbrackIbarra/cloney-example.git --variables .cloney-vars.yaml
https://github.com/ArthurSudbrackIbarra/cloney-example.git is the URL of the repository to clone and --variables .cloney-vars.yaml is the path to a variables file relative to your current working directory.
Note: The volume mount ./:/home/cloney ensures that every file in your current working directory becomes available to the Cloney Docker container. This way, you can point to a variables file in your current working directory, as shown in the example above.
For an even smoother process, consider using Docker Compose. Create a Docker Compose file like this:
services:
cloney:
image: magicmanatee/cloney
command: >
cloney clone https://github.com/ArthurSudbrackIbarra/cloney-example.git
--variables .cloney-vars.yaml
volumes:
- ./:/home/cloney
Now, run the following command:
docker compose run --rm cloney
This will achieve the same result as the previous example. Don't forget to also adapt the repository URL and the path to the variables file to your needs.
Content type
Image
Digest
sha256:a9fc33a1d…
Size
64.7 MB
Last updated
over 2 years ago
docker pull magicmanatee/cloney