Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.
/ docker-make Public archive

A tool based on make which make docker operating simpler, it can be a alternative of docker-compose.

License

Notifications You must be signed in to change notification settings

wolfogre/docker-make

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-make

A tool based on make which make docker operating simpler, it can be a alternative of docker-compose.

How to install

cd ~ # chose a dir to store path
curl -sSL https://raw.githubusercontent.com/wolfogre/docker-make/master/auto-download.sh | sh -
cd docker-make # there is all you need

How to use

1. Create a dir in with the container name, for example: my-mysql

cd docker-make
mkdir my-mysql

2. Copy a sample Makefile to my-mysql

cp sample/Makefile my-mysql/

3. Edit the Makefile in my-mysql

cd my-mysql
vim Makefile

Pay attention : you should rewrite the NAME and run: only, until you know what you are doing, for example:

NAME=my-mysql
VOLUME=$(VOLUME_ROOT)/$(NAME)

include ../Generalfile

run:
	docker run --name=$(NAME) -v $(VOLUME)/var/lib/mysql:/var/lib/mysql -p 3306:3306 -d mysql

4. Run it!

make run

you can use make help to see more opration, like make stop, make restart and make rm etc.

About

A tool based on make which make docker operating simpler, it can be a alternative of docker-compose.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages