Skip to content

Add log command to show build logs#71

Merged
ktock merged 1 commit intomainfrom
log-command
Aug 30, 2022
Merged

Add log command to show build logs#71
ktock merged 1 commit intomainfrom
log-command

Conversation

@ktock
Copy link
Copy Markdown
Owner

@ktock ktock commented Aug 30, 2022

log

Show build log

Usage: log [OPTIONS]

Flags:

  • -n value: Print recent n lines (default: 10)
  • --all, -a: show all lines
  • --more: show buffered and unread lines
$ buildg.sh debug /tmp/ctx
WARN[2022-08-30T11:22:53+09:00] using host network as the default            
#1 [internal] load .dockerignore
#1 transferring context: 2B done
#1 DONE 0.0s

#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 111B done
#2 DONE 0.1s

#3 [internal] load metadata for ghcr.io/stargz-containers/busybox:1.32.0-org
#3 ...

#4 [auth] stargz-containers/busybox:pull token for ghcr.io
#4 DONE 0.0s

#3 [internal] load metadata for ghcr.io/stargz-containers/busybox:1.32.0-org
#3 DONE 1.1s
INFO[2022-08-30T11:22:55+09:00] debug session started. type "help" for command reference. 
Filename: "Dockerfile"
 =>   1| FROM ghcr.io/stargz-containers/busybox:1.32.0-org
      2| RUN echo hello > /hello
(buildg) log
#3 ...

#4 [auth] stargz-containers/busybox:pull token for ghcr.io
#4 DONE 0.0s

#3 [internal] load metadata for ghcr.io/stargz-containers/busybox:1.32.0-org
#3 DONE 1.1s

#5 [1/2] FROM ghcr.io/stargz-containers/busybox:1.32.0-org@sha256:bde48e1751173b709090c2539fdf12d6ba64e88ec7a4301591227ce925f3c678
#5 resolve ghcr.io/stargz-containers/busybox:1.32.0-org@sha256:bde48e1751173b709090c2539fdf12d6ba64e88ec7a4301591227ce925f3c678 0.0s done
(buildg) log -more

#5 [1/2] FROM ghcr.io/stargz-containers/busybox:1.32.0-org@sha256:bde48e1751173b709090c2539fdf12d6ba64e88ec7a4301591227ce925f3c678
#5 resolve ghcr.io/stargz-containers/busybox:1.32.0-org@sha256:bde48e1751173b709090c2539fdf12d6ba64e88ec7a4301591227ce925f3c678 0.0s done
(buildg) log -n 5
#3 [internal] load metadata for ghcr.io/stargz-containers/busybox:1.32.0-org
#3 DONE 1.1s

#5 [1/2] FROM ghcr.io/stargz-containers/busybox:1.32.0-org@sha256:bde48e1751173b709090c2539fdf12d6ba64e88ec7a4301591227ce925f3c678
#5 resolve ghcr.io/stargz-containers/busybox:1.32.0-org@sha256:bde48e1751173b709090c2539fdf12d6ba64e88ec7a4301591227ce925f3c678 0.0s done

@ktock ktock merged commit a2baa76 into main Aug 30, 2022
@ktock ktock deleted the log-command branch August 30, 2022 03:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant