GithubHelp home page GithubHelp logo

docker-diesel-cli's Introduction

Diesel CLI Docker Image

This repository hosts the Dockerfile used to build the diesel CLI.

Why?

This Dockerfile move the result diesel binary to a smaller debian image s.t. it downloads faster in tester's computer / CI environment.

Usage

This image is intended to be used against another db container, or as part of a docker-compose file.

For example, to connect to another postgres container in the network diesel and run migration:

> docker network create diesel
3287b47e1373c49a9bba8c5c5a4a21c7531493ab6095f5e6f55e9cd90e28d83f
> docker run --name db --rm --network diesel -d postgres
ca1cf4fb669c137fbd75f32a4ea55706e02b690b1f949c9dfee96d9b4ca77f36
> docker run \
    --name diesel-cli \
    --rm \
    --network diesel \
    -v "$(pwd)":"/usr/src" \
    -e DATABASE_URL=postgres://postgres@db/postgres \
    limouren/diesel-cli diesel migration run
Running migration ...
# clean up everything
> docker stop db
db
> docker network rm diesel
diesel

docker-diesel-cli's People

Contributors

limouren avatar

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.