JDBC2XML Docker-Image

JDBC2XML Docker-Image

JDBC2XML Docker-Image Overview

A Docker-Image of JDBC2XML can be publicly pulled as clazzesorg/jdbc2xml, current tags are 1.6 (legacy stable) and beta (currently recommended), the vague latest has been removed.

This public free image only contains the free JDBC drivers for MariaDB and PostgreSQL.

To add additional JDBC drivers just map the JAR file under /usr/lib/jdbc2xml/lib/ (or map them elsewhere and specify them using --*driver options).

Image usage examples

Here are some basic examples for getting the jdbc2xml help text, making a connection test, and duming a database:

docker run -i -t --rm clazzesorg/jdbc2xml:beta jdbc2xml --help

docker run -i -t --rm --network mariadb clazzesorg/jdbc2xml:beta \
  jdbcping --user testUser --password testPassword --url jdbc:mariadb://mariadb-server:3306/testdb

docker run -i -t --rm --network mariadb \
  -v /tmp:/tmp:rw \
  clazzesorg/iteggmbh/jdbc2xml:beta \
  jdbc2xml --user testUser --password testPassword --url jdbc:mariadb://mariadb:3306/testdb --file /tmp/testdb.xml

For more syntax sugre also see JDBC2XML Usage.