Donit is a command-line interface (CLI) tool for initializing Docker and Docker Compose files for various programming languages. It simplifies the setup process for Docker projects by generating the necessary configuration files for you.
- Initialize Docker projects for multiple programming languages.
- Generates
.dockerignore,Dockerfile,docker-compose.yaml, andDocker.md. - Supports Go, Rust, Node.js, Java, Python, and PHP.
- Provides version information and help commands.
- Go 1.16 or later installed on your machine.
- Docker installed on your machine.
-
Clone the repository:
git clone https://github.com/ksatriow/donit cd donit -
Build the binary:
make build
-
Install the binary:
sudo make install
This will place the donit binary in /usr/local/bin, making it accessible from anywhere on your system.
-
Initialize a Go project:
donit go
-
Initialize a Rust project:
donit rust
-
Initialize a Node.js project:
donit node
-
Initialize a Java project:
donit java
-
Initialize a Python project:
donit python
-
Initialize a PHP project:
donit php
To check the version of donit:
donit versionTo get help with donit:
donit helpYou can also get help for specific commands:
donit help go-
Navigate to your project directory:
cd /path/to/your/go/project -
Run the
donit gocommand:donit go
-
The following files will be created in your project directory:
.dockerignoreDockerfiledocker-compose.yamlDocker.md
-
Navigate to your project directory:
cd /path/to/your/node/project -
Run the
donit nodecommand:donit node
-
The following files will be created in your project directory:
.dockerignoreDockerfiledocker-compose.yamlDocker.md
Contributions are welcome! Please fork the repository and submit a pull request for any improvements or bug fixes.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Make your changes and commit them (
git commit -am 'Add new feature'). - Push to the branch (
git push origin feature-branch). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
If you have any questions or suggestions, feel free to reach out at kukuhsatriowibowo@gmail.com.
Happy Coding!