Sign inSign up

eko3alpha/docker-phinx

By eko3alpha

•Updated almost 9 years ago

Docker image for PHP Phinx migrations

Image
1

1.4K

eko3alpha/docker-phinx repository overview

⁠docker-phinx

Docker image for Phinx⁠

⁠Example

docker run --rm -u "$UID" -v "$PWD:/app" eko3alpha/docker-phinx create NewMigration

⁠Alias

You can also create an alias so you dont have to type that whole command! More information can be found here: Dockerize Commands⁠

OSX:

sudo pico ~/.bash_profile

Ubuntu:

sudo pico ~/.bash_aliases

Then add the following entry, in this case we're calling it "phpqa" you can change it to whatever you want. Make sure to wrap the alias in single quotes.

alias phinx='docker run --rm -u "$UID" -v "$PWD:/app" eko3alpha/docker-phinx'

After you add the entry refresh the profile

source ~/.bash_profile

Now you can use phinx without having to type the full docker command

phinx create NewMigration

For full documentation please head over to the Phinx Documentation⁠

Tag summary

Content type

Image

Digest

Size

219 MB

Last updated

almost 9 years ago

docker pull eko3alpha/docker-phinx