Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM perl:5.42.0-slim-threaded-bullseye

COPY pg2mysql.pl pg2mysql.pl

ENTRYPOINT [ "./pg2mysql.pl" ]
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,20 @@ about:

You must have Perl installed at `/usr/bin/perl` to run the script directly.

# Execute with Docker

First need to build it into one image:

```sh
docker image build . -t pg2mysql
```

then you can just running with docker run like this (be aware of the -i argument):

```sh
docker run -v --rm -i pg2mysql < drupal_pg.dump > mysql.sql
```

# Credits

pg2mysql is heavily inspired and informed by this project of the same
Expand Down