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