Skip to content

Commit

Permalink
Protobuf fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tarnfeld committed Nov 1, 2014
1 parent 1ab16d3 commit c2b5a17
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 27 deletions.
5 changes: 2 additions & 3 deletions portainer/app/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ def launch_docker_daemon():
os.path.join(env["MESOS_DIRECTORY"], "docker")
)

if build_task.daemon.HasField("insecure_registries"):
for reg in build_task.daemon.insecure_registries:
env["DOCKER_DAEMON_ARGS"] += " --insecure-registry %s" % reg
for reg in build_task.daemon.insecure_registries:
env["DOCKER_DAEMON_ARGS"] += " --insecure-registry %s" % reg

# Use the `wrapdocker` script included in our docker image
proc = subprocess.Popen(["/usr/local/bin/wrapdocker"], env=env)
Expand Down
2 changes: 1 addition & 1 deletion portainer/app/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def handle_exception(e):
if self.insecure_registries:
for registry in [self.pull_registry, self.push_registry]:
if registry:
build_task.daemon.insecure_registries.add(registry)
build_task.daemon.insecure_registries.append(registry)

# Pull out the repository from the dockerfile
try:
Expand Down
89 changes: 66 additions & 23 deletions portainer/proto/portainer_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c2b5a17

Please sign in to comment.