mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-05 17:02:00 +00:00
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:
@@ -1,3 +1,4 @@
|
||||
FROM alpine:3.15
|
||||
|
||||
COPY foo /foo
|
||||
COPY foo /foo
|
||||
RUN uname -m >/uname_m && uname -s >/uname_s
|
@@ -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
|
Reference in New Issue
Block a user