Example #1
0
File: docker.py Project: srand/jolt
 def _tags(self):
     return " ".join([utils.option("-t ", tag) for tag in self.tags])
Example #2
0
File: docker.py Project: srand/jolt
 def _labels(self):
     return " ".join([
         utils.option("-l ", self.tools.expand(label))
         for label in self.labels
     ])
Example #3
0
File: docker.py Project: srand/jolt
 def _platform(self):
     platform = self.tools.expand(self.platform) if self.platform else None
     return utils.option("--platform ", platform)
Example #4
0
File: docker.py Project: srand/jolt
 def _volumes(self):
     return " ".join([
         utils.option("-v ", self.tools.expand(vol))
         for vol in self.volumes_default + self.volumes
     ])
Example #5
0
File: docker.py Project: srand/jolt
 def _buildargs(self):
     return " ".join([
         utils.option("--build-arg ", self.tools.expand(ba))
         for ba in self.buildargs
     ])
Example #6
0
File: docker.py Project: srand/jolt
 def _ports(self):
     if self.ports is True:
         return "-P"
     return " ".join([
         utils.option("-p ", self.tools.expand(port)) for port in self.ports
     ])
Example #7
0
File: docker.py Project: srand/jolt
 def _environment(self):
     return " ".join([
         utils.option("-e ", self.tools.expand(env))
         for env in self.environment
     ])
Example #8
0
File: docker.py Project: srand/jolt
 def _entrypoint(self):
     return utils.option("--entrypoint ", self.entrypoint)
Example #9
0
File: docker.py Project: srand/jolt
 def _cap_drops(self):
     return " ".join(
         [utils.option("--cap-drop ", cap) for cap in self.cap_drops])
Example #10
0
File: docker.py Project: srand/jolt
 def _cap_adds(self):
     return " ".join(
         [utils.option("--cap-add ", cap) for cap in self.cap_adds])