hammerlab / secotrec

Setup Coclobas/Ketrew Clusters
Apache License 2.0
5 stars 6 forks source link

Add command to output the compose-configuration #22

Closed smondet closed 7 years ago

smondet commented 7 years ago

It can be used to create and share docker-compose configurations:

custom_compose () {
    local tmpdir=/tmp/custom_compose
    local config=$tmpdir/docker-compose.yaml
    mkdir -p $tmpdir
    secotrec-local compo $config
    head -n 5 $config
    (
        cd $tmpdir
        docker-compose -f $config $*
    )
}