Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amirhnajafiz/captain-mustache
Dockerizing Golang applications under Captains Mustache.
https://github.com/amirhnajafiz/captain-mustache
docker docker-compose docker-image dockerfile dockerization go golang
Last synced: about 2 months ago
JSON representation
Dockerizing Golang applications under Captains Mustache.
- Host: GitHub
- URL: https://github.com/amirhnajafiz/captain-mustache
- Owner: amirhnajafiz
- Created: 2022-07-03T11:14:07.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-05T08:35:35.000Z (over 1 year ago)
- Last Synced: 2023-08-10T03:48:08.033Z (over 1 year ago)
- Topics: docker, docker-compose, docker-image, dockerfile, dockerization, go, golang
- Language: Go
- Homepage:
- Size: 246 KB
- Stars: 28
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Captain Mustache
![GitHub release (with filter)](https://img.shields.io/github/v/release/amirhnajafiz/captain-mustache)
![GitHub language count](https://img.shields.io/github/languages/count/amirhnajafiz/captain-mustache)
![GitHub top language](https://img.shields.io/github/languages/top/amirhnajafiz/captain-mustache)
![GitHub Repo stars](https://img.shields.io/github/stars/amirhnajafiz/captain-mustache)Dockerize your Golang applications under Captain *Mustache*.
A fast, safe, dynamic way to create dockerfiles for you golang applications.
This CLI helps you to build Docker manifests in and dockerize your system.
With this tool you don't need to know docker to dockerize your applications,
all you need is to have ```Go``` and ```Docker``` installed on your system.## Table of contents
- [Install](#installation)
- [Env](#env-path)
- [Script](#lua)
- [Commands](#commands)
- [Stubs](#stubs)## Installation
Clone into the project repository and build the executable file using the following commands:
```shell
git clone https://github.com/amirhnajafiz/captain-mustache.git
make build
```Now you can run ```captain-mustache``` command in order to use the cli.
### env path
In order to use ```captain-mustache``` in every place on your system, make sure to
the followings to either ```~/.zshrc```, ```~/.bash_profile```, or ```~/.bashrc```.```shell
export PATH=":$PATH"
export STRAGO_PATH=""
```### lua
If you have ```lua``` installed on your system, just download the installation
file in ```install``` directory, after that you can install this package
using the following commands:```shell
luarocks install sh
lue install.lue
```## Commands
In here you can find a list of cli commands. You can run ```help``` command in order
to get a list of available commands and their usage.| Command | Description |
|:------------:|----------------------------------------------------------|
| ```build``` | Build dockerfile and docker compose for your application |
| ```up``` | Start building docker containers |
| ```down``` | Stop docker containers |
| ```status``` | Displays a status of your containers |
| ```help``` | CLI help |## Stubs
Available stubs on captain mustache. Stubs are external services that you may have
along your Golang service. Like databases, message brokers, or email services.
Stubs will be optional when building your manifests.| Stub | Description | Values |
|:--------:|-------------------------------------------------|-----------------------------------------|
| Database | Create database containers for your application | ```redis, mongodb, mysql, postgresql``` |## Contribute
Feel free to make your contribution to this project by creating a merge request.