Copy container log to deploy (#688)
The container log is much more detailed than the default build.log, which makes life much easier for a build maintainer. Before deleting the container copy the log out to the deploy/ directory.
This commit is contained in:
parent
6dc45a80e7
commit
9249e146d2
@ -166,6 +166,10 @@ time ${DOCKER} run \
|
||||
# Ensure that deploy/ is always owned by calling user
|
||||
echo "copying results from deploy/"
|
||||
${DOCKER} cp "${CONTAINER_NAME}":/pi-gen/deploy - | tar -xf -
|
||||
|
||||
echo "copying log from container ${CONTAINER_NAME} to depoy/"
|
||||
${DOCKER} logs --timestamps "${CONTAINER_NAME}" &>deploy/build-docker.log
|
||||
|
||||
ls -lah deploy
|
||||
|
||||
# cleanup
|
||||
|
Loading…
x
Reference in New Issue
Block a user