slimdump icon indicating copy to clipboard operation
slimdump copied to clipboard

Provide Docker image

Open mpdude opened this issue 6 years ago • 6 comments

Is anybody interested in having a webfactory/slimdump Docker image? Give 👍 .

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

mpdude avatar Dec 07 '18 11:12 mpdude

Which php version do you expect to be used?

7.4 oder 7.3?

kaystrobach avatar Dec 31 '19 08:12 kaystrobach

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 :).

peter279k avatar Dec 31 '19 18:12 peter279k

Does that make a difference when we’re running in a container?

mpdude avatar Dec 31 '19 19:12 mpdude

Yes as it would mean adjustment of the baseimage dependency.

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

kaystrobach avatar Dec 31 '19 20:12 kaystrobach

@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 :).

peter279k avatar Jan 04 '20 10:01 peter279k

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?

mpdude avatar Jan 04 '20 11:01 mpdude