Skip to content
/ lanny Public

Slim docker container image LANNY = Liquibase + Alpine + Nginx + Node.js + Yarn

License

Notifications You must be signed in to change notification settings

izonder/lanny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LANNY - a slim docker container image with Liquibase

LANNY = Liquibase + Alpine + Nginx + Node.js + Yarn

Build Docker image

IMPORTANT! Breaking changes announcement

Due to new JDK version we have released a major upgrade, which contains:

Please be aware of that and make sure these changes won't affect your functionality.

Features

  • Alpine linux as base-image
  • S6-overlay to run multiple processes in container
  • Nginx v1.24.x with basic configuration
  • Node.js v18.x.x
  • Yarn package manager
  • Java OpenJDK 17 (JRE)
  • Liquibase

Supported tags

Liquibase features and limitations

  • YAML/JSON changelogs formats support
  • Supported databases according the list: http://www.liquibase.org/databases.html
  • Pre-installed JDBC drivers for Postgres, MariaDB/MySQL
  • To include JAR into classpath just add it to /usr/local/lib/liquibase/lib directory

FAQ

Q1. I got an error Cannot find database driver: com.mysql.jdbc.Driver

A1. To use pre-installed MariaDB/J Connector you should specify --driver=org.mariadb.jdbc.Driver or install your own native MySQL/J Connector here: https://dev.mysql.com/downloads/connector/j/


Q2. Where can I find other JDBC drivers?

A2. Use this table:

DBMS JDBC driver URL
MySQL com.mysql.jdbc.Driver http://dev.mysql.com/downloads/connector/j/
MariaDB org.mariadb.jdbc.Driver https://downloads.mariadb.org/connector-java/
PostgreSQL org.postgresql.Driver https://jdbc.postgresql.org/download.html
MSSQL com.microsoft.jdbc.sqlserver.SQLServerDriver http://www.microsoft.com/en-us/download
Oracle oracle.jdbc.OracleDriver http://www.oracle.com/technetwork/database/jdbc-112010-090769.html
SQLite org.sqlite.JDBC https://github.com/xerial/sqlite-jdbc/releases
FireBird org.firebirdsql.jdbc http://www.firebirdsql.org/en/jdbc-driver/
Derby org.apache.derby.jdbc.ClientDriver http://db.apache.org/derby/derby_downloads.html

How to use?

FROM izonder/anny:latest

...

# add new service
COPY ./service/myservice.sh /etc/services.d/myservice/run

...

# add nginx configuration
COPY ./nginx/myapp.conf /etc/nginx/conf.d/myapp.conf

...

# install dependencies
RUN yarn install

...

# apply database migrations
RUN liquibase [options] [command] [command parameters]

...

# entry point
CMD ["node", "myapp.js"]

About

Slim docker container image LANNY = Liquibase + Alpine + Nginx + Node.js + Yarn

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published