#! /usr/bin/env python

import glob
import os
import subprocess
from subprocess import PIPE
import sys

DOCKER_REPO_PREFIX = 'jseabold'


def build(base, tag):
    print("Building {}".format(tag))
    # use the go client
    p = subprocess.Popen(["docker", "build", "--pull", "-t", tag, base],
                         stdout=PIPE)
    for line in iter(p.stdout.readline, b''):
        sys.stdout.write(line.decode())


def main():
    dockerfiles = glob.glob("*/Dockerfile")
    dockerfiles.sort()

    for dockerfile in dockerfiles:
        base = os.path.dirname(dockerfile)
        tag = os.path.join(DOCKER_REPO_PREFIX, ':'.join((base, 'latest')))
        build(base, tag)


if __name__ == "__main__":
    main()

ade24e36fd941af192ee4a8f9d9eed3430020505
<mask token>


def build(base, tag):
    print('Building {}'.format(tag))
    p = subprocess.Popen(['docker', 'build', '--pull', '-t', tag, base],
        stdout=PIPE)
    for line in iter(p.stdout.readline, b''):
        sys.stdout.write(line.decode())


def main():
    dockerfiles = glob.glob('*/Dockerfile')
    dockerfiles.sort()
    for dockerfile in dockerfiles:
        base = os.path.dirname(dockerfile)
        tag = os.path.join(DOCKER_REPO_PREFIX, ':'.join((base, 'latest')))
        build(base, tag)


<mask token>

<mask token>


def build(base, tag):
    print('Building {}'.format(tag))
    p = subprocess.Popen(['docker', 'build', '--pull', '-t', tag, base],
        stdout=PIPE)
    for line in iter(p.stdout.readline, b''):
        sys.stdout.write(line.decode())


def main():
    dockerfiles = glob.glob('*/Dockerfile')
    dockerfiles.sort()
    for dockerfile in dockerfiles:
        base = os.path.dirname(dockerfile)
        tag = os.path.join(DOCKER_REPO_PREFIX, ':'.join((base, 'latest')))
        build(base, tag)


if __name__ == '__main__':
    main()

<mask token>
DOCKER_REPO_PREFIX = 'jseabold'


def build(base, tag):
    print('Building {}'.format(tag))
    p = subprocess.Popen(['docker', 'build', '--pull', '-t', tag, base],
        stdout=PIPE)
    for line in iter(p.stdout.readline, b''):
        sys.stdout.write(line.decode())


def main():
    dockerfiles = glob.glob('*/Dockerfile')
    dockerfiles.sort()
    for dockerfile in dockerfiles:
        base = os.path.dirname(dockerfile)
        tag = os.path.join(DOCKER_REPO_PREFIX, ':'.join((base, 'latest')))
        build(base, tag)


if __name__ == '__main__':
    main()

import glob
import os
import subprocess
from subprocess import PIPE
import sys
DOCKER_REPO_PREFIX = 'jseabold'


def build(base, tag):
    print('Building {}'.format(tag))
    p = subprocess.Popen(['docker', 'build', '--pull', '-t', tag, base],
        stdout=PIPE)
    for line in iter(p.stdout.readline, b''):
        sys.stdout.write(line.decode())


def main():
    dockerfiles = glob.glob('*/Dockerfile')
    dockerfiles.sort()
    for dockerfile in dockerfiles:
        base = os.path.dirname(dockerfile)
        tag = os.path.join(DOCKER_REPO_PREFIX, ':'.join((base, 'latest')))
        build(base, tag)


if __name__ == '__main__':
    main()

#! /usr/bin/env python

import glob
import os
import subprocess
from subprocess import PIPE
import sys

DOCKER_REPO_PREFIX = 'jseabold'


def build(base, tag):
    print("Building {}".format(tag))
    # use the go client
    p = subprocess.Popen(["docker", "build", "--pull", "-t", tag, base],
                         stdout=PIPE)
    for line in iter(p.stdout.readline, b''):
        sys.stdout.write(line.decode())


def main():
    dockerfiles = glob.glob("*/Dockerfile")
    dockerfiles.sort()

    for dockerfile in dockerfiles:
        base = os.path.dirname(dockerfile)
        tag = os.path.join(DOCKER_REPO_PREFIX, ':'.join((base, 'latest')))
        build(base, tag)


if __name__ == "__main__":
    main()
