<commit_before>===================
webdevops/liquibase
===================

The certbot images are based on ``java`` with liquibase and mysql driver

Docker image tags
-----------------

====================== ==========================
Tag                    Distribution name
====================== ==========================
``latest``             Based on official java
====================== ==========================

Environment variables
---------------------

========================== ============================ ==============================================
Environment variable       Description                  Default
========================== ============================ ==============================================
``LIQUIBASE_VERSION``      Installed Liquibase version  *not changeable*
``LIQUIBASE_DRIVER``       Database driver              ``com.mysql.jdbc.Driver``
``LIQUIBASE_CLASSPATH``    Java class path              ``/usr/share/java/mysql.jar``
``LIQUIBASE_URL``          DB url                       *empty* (eg. ``jdbc:mysql://host/app``)
``LIQUIBASE_USERNAME``     DB username                  *empty*
``LIQUIBASE_PASSWORD``     DB password                  *empty*
``LIQUIBASE_CHANGELOG``    Changelog file               ``/liquibase/changelog.xml``
``LIQUIBASE_CONTEXTS``     Server contexts              *empty*
``LIQUIBASE_OPTS``         Additional options           *empty*
========================== ============================ ==============================================

<commit_msg>Add liquibase example<commit_after>===================
webdevops/liquibase
===================

The certbot images are based on ``java`` with liquibase and mysql driver

Docker image tags
-----------------

====================== ==========================
Tag                    Distribution name
====================== ==========================
``latest``             Based on official java
====================== ==========================

Environment variables
---------------------

========================== ============================ ==============================================
Environment variable       Description                  Default
========================== ============================ ==============================================
``LIQUIBASE_VERSION``      Installed Liquibase version  *not changeable*
``LIQUIBASE_DRIVER``       Database driver              ``com.mysql.jdbc.Driver``
``LIQUIBASE_CLASSPATH``    Java class path              ``/usr/share/java/mysql.jar``
``LIQUIBASE_URL``          DB url                       *empty* (eg. ``jdbc:mysql://host/app``)
``LIQUIBASE_USERNAME``     DB username                  *empty*
``LIQUIBASE_PASSWORD``     DB password                  *empty*
``LIQUIBASE_CHANGELOG``    Changelog file               ``/liquibase/changelog.xml``
``LIQUIBASE_CONTEXTS``     Server contexts              *empty*
``LIQUIBASE_OPTS``         Additional options           *empty*
========================== ============================ ==============================================

Usage
-----

Expecting the ``changelog.xml`` is inside the current directory the update process can be started with:
``docker run --rm -v $(pwd):/liquibase/ -e "LIQUIBASE_URL=jdbc:mysql://host/app" -e "LIQUIBASE_USERNAME=root" -e "LIQUIBASE_PASSWORD=<PASSWORD>" liquibase update``

{'fraction_non_alphanumeric': 0.37920762585641943, 'fraction_numerical': 0.0, 'mean_word_length': 3.245259165613148, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 3}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4441259', 'n_tokens_mistral': 805, 'n_tokens_neox': 720, 'n_words': 175}