Sign inSign up

izonder/lanny

By izonder

•Updated almost 3 years ago

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

Image
0

3.2K

izonder/lanny repository overview

⁠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.20.x with basic configuration
  • Node.js v16.x.x
  • Yarn package manager
  • Java OpenJDK 11 (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:

DBMSJDBC driverURL
MySQLcom.mysql.jdbc.Driverhttp://dev.mysql.com/downloads/connector/j/⁠
MariaDBorg.mariadb.jdbc.Driverhttps://downloads.mariadb.org/connector-java/⁠
PostgreSQLorg.postgresql.Driverhttps://jdbc.postgresql.org/download.html⁠
MSSQLcom.microsoft.jdbc.sqlserver.SQLServerDriverhttp://www.microsoft.com/en-us/download⁠
Oracleoracle.jdbc.OracleDriverhttp://www.oracle.com/technetwork/database/jdbc-112010-090769.html⁠
SQLiteorg.sqlite.JDBChttps://github.com/xerial/sqlite-jdbc/releases⁠
FireBirdorg.firebirdsql.jdbchttp://www.firebirdsql.org/en/jdbc-driver/⁠
Derbyorg.apache.derby.jdbc.ClientDriverhttp://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"]

Tag summary

Content type

Image

Digest

sha256:78b3252f5…

Size

187.5 MB

Last updated

almost 3 years ago

docker pull izonder/lanny