Package com.alexecollins.docker.orchestration.model

Examples of com.alexecollins.docker.orchestration.model.Conf


    if (src.isDirectory()) {
      for (File file : src.listFiles()) {
        final File confFile = new File(file, "conf.yml");
                try {
                    confs.put(new Id(file.getName()), confFile.length() > 0 ? MAPPER.readValue(confFile, Conf.class) : new Conf());
                } catch (IOException e) {
                   throw new OrchestrationException(e);
                }
            }
    }
View Full Code Here


    if (src.isDirectory()) {
      for (File file : src.listFiles()) {
        final File confFile = new File(file, "conf.yml");
                try {
                    confs.put(new Id(file.getName()), confFile.length() > 0 ? MAPPER.readValue(confFile, Conf.class) : new Conf());
                } catch (IOException e) {
                   throw new OrchestrationException(e);
                }
            }
    }
View Full Code Here

            }
    }
  }

  String imageName(Id id) {
    Conf conf = conf(id);
    if (conf != null && conf.hasTag()) {
      return conf.getTag();
    }
    return prefix + "_" + id;
  }
View Full Code Here

    if (src.isDirectory()) {
      for (File file : src.listFiles()) {
        final File confFile = new File(file, "conf.yml");
                try {
                    confs.put(new Id(file.getName()), confFile.length() > 0 ? MAPPER.readValue(confFile, Conf.class) : new Conf());
                } catch (IOException e) {
                   throw new OrchestrationException(e);
                }
            }
    }
View Full Code Here

            }
    }
  }

  String imageName(Id id) {
    Conf conf = conf(id);
    return Filters.filter(
                (conf != null && conf.hasTag())
                        ? conf.getTag()
                        : prefix + "_" + id,
                properties
        );
  }
View Full Code Here

        return l;
    }

    public static Conf filter(Conf conf, Properties properties) {

        final Conf out = new Conf();

        out.getHealthChecks().getPings().addAll(conf.getHealthChecks().getPings());
        out.getLinks().addAll(conf.getLinks());
        for (String add : conf.getPackaging().getAdd()) {
            out.getPackaging().getAdd().add(Filters.filter(add, properties));
        }
        out.getPorts().addAll(conf.getPorts());
        if (conf.getTag() != null) {
            out.setTag(Filters.filter(conf.getTag(), properties));
        }
        out.getVolumesFrom().addAll(conf.getVolumesFrom());

        return out;
    }
View Full Code Here

    this.src = src;

    if (src.isDirectory()) {
      for (File file : src.listFiles()) {
        final File confFile = new File(file, "conf.yml");
        confs.put(new Id(file.getName()), confFile.length() > 0 ? MAPPER.readValue(confFile, Conf.class) : new Conf());
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.alexecollins.docker.orchestration.model.Conf

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.