Update buildkit to have platform fix

We noticed that we use host arch when we want to use previously build
image in oci-layout. Let's use fix on buildkit side and improve test.

Signed-off-by: Petr Fedchenkov <giggsoff@gmail.com>
This commit is contained in:
Petr Fedchenkov
2022-07-22 11:21:09 +03:00
parent 3f25e09ab5
commit 3540a1bc34
15 changed files with 219 additions and 45 deletions

View File

@@ -1,3 +1,4 @@
FROM alpine:3.15
COPY foo /foo
COPY foo /foo
RUN uname -m >/uname_m && uname -s >/uname_s

View File

@@ -1,5 +1,9 @@
# this FROM *must* be updated when changing ../build1; just run `lkt pkg show-tag ../build1` and place it here
FROM linuxkit/chained-build-image1-test-does-not-exist-anywhere-else-123456789:ad06eb29c48f0daab0cc2836a1351a053948100c as src
FROM linuxkit/chained-build-image1-test-does-not-exist-anywhere-else-123456789:e247132d6bc3a56bdce0fcb2d0d4848a1dfcf3b6 as src
FROM alpine:3.15
COPY --from=src /foo /foo
RUN cat /foo
RUN cat /foo
# copy output of uname commands from first build and compare with current
COPY --from=src /uname* /
RUN uname -m >/uname_m_current && uname -s >/uname_s_current && cat /uname_m_current && cat /uname_s_current
RUN diff /uname_m /uname_m_current && diff /uname_s /uname_s_current