[!TIP]
Looking for a dead-simple automation tool? ruke is waiting for you!
Features
- Dockerfile Generation: Generate Dockerfiles for your projects with ease.
- docker-compose.yml Generation: Generate docker-compose.yml files to orchestrate multi-container Docker applications.
- Customizable Templates: Configure templates to suit your project's specific requirements.
- Command-line Interface: Use an intuitive and fancy interface to maximize your experience.
Installation
To install gorvus, you need to have Go installed on your system. Then, you can install it using the following command:
go install github.com/FelipeMCassiano/gorvus/gorvus@v2
Usage
Once installed, you can use gorvus to generate Dockerfiles and docker-compose.yml files for your projects.
Command |
Flags |
Description |
Interactive Mode |
gorvus createDockerfile |
-p --projectName <PROJECT-NAME> , -l --language <LANGUAGE-TEMPLATE> |
Create Dockerfile based on input language and project name |
yes |
gorvus compose |
--cd <DIRECTORY> |
Manages directory's docker-compose.yml |
no |
NOTE: All subcommands inherits flags from their parent.
e.g: gorvus compose --cd add ...
Subcommand |
Flags |
Description |
Interactive Mode |
gorvus compose new |
doens't have flags |
Create a new docker-compose.yml file with or without a template |
yes |
gorvus compose add |
-s --service <SERVICE-NAME> , -i --image <IMAGE> , -p --ports <PORTS> , -e --envs <ENVS> , -n --networks <NETWORK> , --hs <HOSTNAME> |
Adds a new service into docker-compose.yml |
yes |
gorvus compose add-net |
-n --name<NETWORK-NAME> , -d --driver<NETWORK-DRIVE> ,-x --name-network<reference this network when you're connecting containers> |
Adds a new network into docker-compose.yml |
yes |
gorvus compose rm |
-s --service <SERVICE-NAME> , -n --network<NETWORK-NAME> |
Remove services or networks in docker-compose.yml |
yes |
Templates
- Currently, only the languages Go, Rust, Node(js and ts), Java(gradle), Dotnet and Bun supports Dockerfile generation.
- Currently, only Postgres, Mysql and MongoDb have support for docker-compose with template generation.
Contributing
If you're interested in contributing to this project, consider reading the Contributing Guide
License
This project is licensed under the MIT License - see the LICENSE file for details.