hammerlab / secotrec

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

Use mounted scripts for Docker-compose services #43

Closed smondet closed 7 years ago

smondet commented 7 years ago

This fixes issue #41.

Mounting 41 times the generated extra-NFS over and over:

export nfs_mounts="$prefix-extranfs-vm,/nfs-pool,.strato-witness.txt,/extranfs-0"
for n in $(seq 1 40); do
    nfs_mounts="$prefix-extranfs-vm,/nfs-pool,.strato-witness.txt,/extranfs-$n:$nfs_mounts"
done;

The subcommand compose-configuration now takes a required directory path:

$ secotrec-gke comp _comp-conf
$ find _comp-conf
_comp-conf
_comp-conf/secotrec-service-authproxy-8d4c4e8d8a8485e308fabe1bb5a42c36.sh
_comp-conf/secotrec-service-coclo-2d51a1daf9311ded532d064929fceda8.sh
_comp-conf/docker-compose.json
_comp-conf/secotrec-service-kserver-22f1a488bafedeb90a47d00b24cf853a.sh
_comp-conf/secotrec-service-tlstun-71564ae1e6b7bd1847e75edda466ac73.sh

There are still a few calls to genspio_to_one_liner but they all seem mostly “bound” in length.

tavinathanson commented 7 years ago

Thanks @smondet! Will defer to @ihodes on the code itself because it'll take me a while to process what's going on.