webfactory / slimdump

A tool for creating configurable dumps of large MySQL-databases.
MIT License
183 stars 26 forks source link

Provide Docker image #53

Open mpdude opened 5 years ago

mpdude commented 5 years ago

Is anybody interested in having a webfactory/slimdump Docker image? Give ๐Ÿ‘ .

Any volunteers to do the work? Open PRs :-).

kaystrobach commented 4 years ago

Which php version do you expect to be used?

7.4 oder 7.3?

peter279k commented 4 years ago

Hi @kaystrobach, thanks for your reply.

I also care about this issue. IMHO, I prefer using the php-7.3 because this version is stable and it's not the latest version :).

mpdude commented 4 years ago

Does that make a difference when weโ€™re running in a container?

kaystrobach commented 4 years ago

Yes as it would mean adjustment of the baseimage dependency.

I would go with the latest verdion if slimdump works with 7.4.

peter279k commented 4 years ago

@mpdude and @kaystrobach. Just go ahead with using the PHP-7.4 to build this Docker image.

I will create the related PR at my available time :).

mpdude commented 4 years ago

Maybe we need to discuss how the config file(s) can conveniently be passed into the container?

I guess it would be rather cumbersome having to mount them into the container and then specify them as arguments.

So, would it make sense if the config could be passed via STDIN? Maybe that happens automatically if no single config file is given?

How could we deal with multiple configs then?

cat config1.xml config2.xml | docker run --rm -it webfactory/slimdump {DSN} > out.sql

We could also have - as the default argument for the container so the default would be to fetch the DSN from the env var?