- Add a small build script

- Take in the build worker branch name from config
- Add additional logging (to be removed after we figure out the problem)
This commit is contained in:
Joseph Schorr 2015-02-03 12:48:41 -05:00
parent 772d5d0772
commit 361fb33574
4 changed files with 5 additions and 1 deletions

1
build.sh Executable file
View file

@ -0,0 +1 @@
docker build -t quay.io/quay/quay:`git rev-parse --short HEAD` .

View file

@ -201,6 +201,8 @@ class BuildComponent(BaseComponent):
except ValueError:
pass
logger.debug('Got log message: %s: (%s) => (%s)', phase, json_data, docker_data)
# Extract the current status message (if any).
fully_unwrapped = ''
keys_to_extract = ['error', 'status', 'stream']

View file

@ -67,6 +67,7 @@ class BuilderExecutor(object):
quay_password=quay_password,
manager_hostname=manager_hostname,
coreos_channel=coreos_channel,
worker_tag=self.executor_config['WORKER_TAG'],
)

View file

@ -31,6 +31,6 @@ coreos:
TimeoutStartSec=600
TimeoutStopSec=2000
ExecStartPre=/usr/bin/docker login -u {{ quay_username }} -p {{ quay_password }} -e unused quay.io
ExecStart=/usr/bin/docker run --rm --net=host --name quay-builder --privileged --env-file /root/overrides.list -v /var/run/docker.sock:/var/run/docker.sock -v /usr/share/ca-certificates:/etc/ssl/certs quay.io/coreos/registry-build-worker:scratched
ExecStart=/usr/bin/docker run --rm --net=host --name quay-builder --privileged --env-file /root/overrides.list -v /var/run/docker.sock:/var/run/docker.sock -v /usr/share/ca-certificates:/etc/ssl/certs quay.io/coreos/registry-build-worker:{{ worker_tag }}
ExecStop=/usr/bin/docker stop quay-builder
ExecStopPost=/bin/sh -xc "/bin/sleep 120; /usr/bin/systemctl --no-block poweroff"