mirror of
https://github.com/moby/buildkit.git
synced 2026-11-06 05:16:45 +00:00
FreeBSD CI Run logs retention
This is a follow-up to https://github.com/moby/buildkit/pull/2376#issuecomment-1661948508. Currently, once the integration test has been run, there is no way to check the buildkitd / containerd logs. This change adds a step to print the logs Signed-off-by: Artem Khramov <akhramov@pm.me>
This commit is contained in:
3 files changed
+8
-3
No files matched your search
@@ -110,3 +110,7 @@ jobs:
|
||||
run: |
|
||||
vagrant ssh -- "cp /vagrant/hack/dockerfiles/freebsd-smoke.Dockerfile /vagrant/cmd/buildctl/Dockerfile"
|
||||
vagrant ssh -- "cd /vagrant/cmd/buildctl; go run . build --frontend dockerfile.v0 --local context=. --local dockerfile=."
|
||||
|
||||
- name: Print BuildKit logs
|
||||
if: always()
|
||||
run: vagrant ssh -- "sudo cat /vagrant/run-logs/buildkitd"
|
||||
@@ -32,14 +32,15 @@ Vagrant.configure("2") do |config|
|
||||
pkg install -y go git containerd runj wait_on
|
||||
|
||||
mkdir -p /vagrant/coverage
|
||||
daemon -o /var/log/containerd.log containerd
|
||||
mkdir -p /vagrant/run-logs
|
||||
daemon -o /vagrant/run-logs/containerd containerd
|
||||
|
||||
mkdir -p /run/buildkit
|
||||
cd /vagrant/cmd/buildkitd
|
||||
go build -buildvcs=false .
|
||||
echo "launching buildkitd..."
|
||||
mkdir -p /run/buildkit
|
||||
daemon ./buildkitd
|
||||
daemon -o /vagrant/run-logs/buildkitd ./buildkitd
|
||||
wait_on -t 5 /run/buildkit
|
||||
echo "launched buildkitd"
|
||||
SHELL
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
FROM dougrabson/freebsd-minimal:13.1
|
||||
FROM dougrabson/freebsd-minimal:13
|
||||
|
||||
RUN echo "Hello, buildkit!"
|
||||
Reference in new issue
Block a user