Skip to content

Commit e863405

Browse files
committed
FreeBSD CI Run logs retention
This is a follow-up to moby#2376 (comment). 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 <[email protected]>
1 parent c7318df commit e863405

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/test-os.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,7 @@ jobs:
110110
run: |
111111
vagrant ssh -- "cp /vagrant/hack/dockerfiles/freebsd-smoke.Dockerfile /vagrant/cmd/buildctl/Dockerfile"
112112
vagrant ssh -- "cd /vagrant/cmd/buildctl; go run . build --frontend dockerfile.v0 --local context=. --local dockerfile=."
113+
114+
- name: Print BuildKit logs
115+
if: always()
116+
run: vagrant ssh -- "sudo cat /vagrant/run-logs/buildkitd"

hack/Vagrantfile.freebsd13

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,15 @@ Vagrant.configure("2") do |config|
3232
pkg install -y go git containerd runj wait_on
3333

3434
mkdir -p /vagrant/coverage
35-
daemon -o /var/log/containerd.log containerd
35+
mkdir -p /vagrant/run-logs
36+
daemon -o /vagrant/run-logs/containerd containerd
3637

3738
mkdir -p /run/buildkit
3839
cd /vagrant/cmd/buildkitd
3940
go build -buildvcs=false .
4041
echo "launching buildkitd..."
4142
mkdir -p /run/buildkit
42-
daemon ./buildkitd
43+
daemon -o /vagrant/run-logs/buildkitd ./buildkitd
4344
wait_on -t 5 /run/buildkit
4445
echo "launched buildkitd"
4546
SHELL
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM dougrabson/freebsd-minimal:13.1
1+
FROM dougrabson/freebsd-minimal:13
22

33
RUN echo "Hello, buildkit!"

0 commit comments

Comments
 (0)