shlogg · Early preview
Franck Pachot @franckpachot

Streamlining CI/CD With Docker Images For YugabyteDB

Streamline your CI/CD pipeline with a Docker image containing pre-installed database schema and data. Reduce image size by removing unnecessary index files.

To establish a CI/CD pipeline, setting up a new database and executing the DDL (Data Definition Language) scripts to create the schema and the DML (Data Manipulation Language) scripts to populate data can be time-consuming. Creating an image that includes all the necessary schema and data for the process to run smoothly is advisable to streamline this. 
Here is an example where I install the well-known Sakila database:

# Start YugabyteDB
yugabyted start
# Create "sakila" database once ready
until ysqlsh -h $(hostname) -c "create database sakila" ; do sleep 1 ; done | uniq
# get the DDL and DM...