- 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:
parent
772d5d0772
commit
361fb33574
4 changed files with 5 additions and 1 deletions
1
build.sh
Executable file
1
build.sh
Executable file
|
@ -0,0 +1 @@
|
|||
docker build -t quay.io/quay/quay:`git rev-parse --short HEAD` .
|
|
@ -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']
|
||||
|
|
|
@ -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'],
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Reference in a new issue