Skip to content

This project is intended to help php developers to dockerize their projects. The difference of this project from others similar is simplicity: you run single bash command and get power of make commands with set of docker-compose files for different purposes. After installing php-dockerizer into your project you can commit only files you want to …

License

Notifications You must be signed in to change notification settings

OleksiiBulba/php-dockerizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Dockerizer

This project is intended to help php developers to dockerize their projects. The difference of this project from others similar is simplicity: you run single bash command and get power of make commands with set of docker-compose files for different purposes. After installing php-dockerizer into your project, you can commit only files you want to keep.

Usage

Usage of the dockerizer is pretty simple: you run online install command, it fetches changes from a source repository to your project, and you can commit files you want to keep. Keep in mind that dockerizer will copy these files and directories to the root of your project:

Makefile
.docker
.make
  • In future dockerizer will be able to detect if there is any file conflicts with your existing files.

Requirements

To use dockerizer you need to install make and docker-compose.

Before installation, you should have already in your project:

  • vendor, public and src folders (for php packages, index.php file and source files respectfully) -- it is required because dockerizer mounts these folders into containers;
  • composer.json and composer.lock files (it ensures the project has been set up correctly);

Installation

To install php-dockerizer into your project simply run command:

curl -s https://raw.githubusercontent.com/OleksiiBulba/php-dockerizer/master/bin/onlinesetup | bash -s -- https://github.com/OleksiiBulba/php-dockerizer origin/master dockerizer

If you cloned repository to your github account, you can install php-dockerizer by a command:

curl -s https://raw.githubusercontent.com/{you-github-username}/php-dockerizer/master/bin/onelinesetup | bash -s -- https://github.com/{you-github-username}/php-dockerizer origin/master dockerizer

You can change origin/master to appropriate branch you want to use and dockerizer to any directory name that does not exist in your repo; do not worry, the directory will be removed after installation.

Contributing

Please feel free to open pull request or create an issue, they are more than welcome!

Running tests

If you cloned the repo, you can run command ./tests/run-test-install.sh to test installation process. Command ./tests/clean-test-install.sh will uninstall dockerizer files from tests/install folder.

License

MIT

About

This project is intended to help php developers to dockerize their projects. The difference of this project from others similar is simplicity: you run single bash command and get power of make commands with set of docker-compose files for different purposes. After installing php-dockerizer into your project you can commit only files you want to …

Resources

License

Stars

Watchers

Forks

Packages

No packages published