Просмотр исходного кода

Add Liquibase (#1803)

Co-authored-by: Alejandro Alvarez <[email protected]>
Co-authored-by: jandroav <[email protected]>
Robert Reeves 1 год назад
Родитель
Сommit
bb4f7e2d53
6 измененных файлов с 27 добавлено и 0 удалено
  1. 1 0
      liquibase/README-short.txt
  2. 23 0
      liquibase/content.md
  3. 1 0
      liquibase/github-repo
  4. 1 0
      liquibase/license.md
  5. BIN
      liquibase/logo.png
  6. 1 0
      liquibase/maintainer.md

+ 1 - 0
liquibase/README-short.txt

@@ -0,0 +1 @@
+Liquibase is DevOps for your database.

+ 23 - 0
liquibase/content.md

@@ -0,0 +1,23 @@
+# What is Liquibase?
+
+Liquibase is DevOps for your database. More information about Liquibase can be found at [http://www.liquibase.org](http://www.liquibase.org).
+
+Liquibase compares the contents of a Change Log to the database to determine which, if any, changes need to be applied to the database. For example, you can create tables, add columns, and many more with Liquibase. Liquibase is delivered via a Docker container to assist users that are leveraging Docker for their CI/CD solution.
+
+%%LOGO%%
+
+# How to use this image
+
+If you are executing Liquibase via the command line today, you are probably doing it like so:
+
+```console
+$ liquibase update --driver=org.postgresql.Driver --url="jdbc:postgresql://<DATABASE_IP>:<DATABASE_PORT>/<DATABASE>" --changeLogFile=/liquibase/changelog/changelog.xml --username=<USERNAME> --password=<PASSWORD>
+```
+
+The only change to use this docker image, is to use `docker run ...` and mount the folder containing your changelog.xml (or .yml or .json or .sql) to `/liquibase/changelog` in the Liquibase container
+
+```console
+$ docker run -v /home/user/changelog:/liquibase/changelog %%IMAGE%% --driver=org.postgresql.Driver --url="jdbc:postgresql://<DATABASE_IP>:<DATABASE_PORT>/<DATABASE>" --changeLogFile=/liquibase/changelog/changelog.xml --username=<USERNAME> --password=<PASSWORD>
+```
+
+All Liquibase commands, such as `rollback`, `updateSQL`, and others, are available, as well.

+ 1 - 0
liquibase/github-repo

@@ -0,0 +1 @@
+https://github.com/liquibase/docker

+ 1 - 0
liquibase/license.md

@@ -0,0 +1 @@
+View [license information](https://github.com/liquibase/liquibase/blob/master/LICENSE.txt) for the Liquibase software contained in this image.

BIN
liquibase/logo.png


+ 1 - 0
liquibase/maintainer.md

@@ -0,0 +1 @@
+[Liquibase](%%GITHUB-REPO%%)