Git Product home page Git Product logo

docker-liquibase's Introduction

Docker: Liquibase

Build Status

A development environment for liquibase that projects can use as a base.

Usage

  1. Just make a Dockerfile in your project like this:

    FROM aetheric/liquibase:latest
    
    # Add needed alpine packages
    RUN apk --no-cache add --virtual .build-dependencies \
    	curl
    
    ARG POSTGRES_VERSION=9.3.1102.jdbc41
    ARG POSTGRES_DIST_HOST=http://jdbc.postgresql.org
    ARG POSTGRES_DIST_PATH=${POSTGRES_HOST}/download
    ARG POSTGRES_DIST_NAME=postgresql-${POSTGRES_VERSION}
    ARG POSTGRES_DIST_FILE=${POSTGRES_NAME}.jar
    
    # Install whatever binaries you need
    RUN pwd \
    	&& mkdir /opt/jdbc_drivers \
    	&& curl -fO ${POSTGRES_DIST_PATH}/${POSTGRES_DIST_FILE} \
    	&& mv ${POSTGRES_DIST_FILE} /opt/jdbc_drivers/
    	&& ln -s /opt/jdbc_drivers/${POSTGRES_DIST_FILE} /usr/local/bin/
    
    # Make sure to clean up your apk additions.
    RUN apk del .build-dependencies
  2. Then call the following command to run a build:

    docker build \
    	--tag reponame/projectname \
    	.
  3. And finally, get to running docker commands:

    docker run reponame/projectname \
    	--volume .:/usr/work \
    	--interactive \
    	--tty \
    	watch

It’s a good idea to put that last one in a script so commands can be run against the project a lot easier. Alternately, you can run it with the --interactive flag to just keep running commands.

docker-liquibase's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.