From 740fb296b41d369b3c9c2d1ac231335022f10a51 Mon Sep 17 00:00:00 2001 From: Niklas Gehlen Date: Tue, 29 Oct 2024 09:27:53 +0100 Subject: [PATCH] Simple demo using a parent Docker context. (#1344) --- internal/testdata/binaries/docker/Dockerfile | 7 +++++++ internal/testdata/binaries/docker/binary.cue | 9 +++++++++ 2 files changed, 16 insertions(+) create mode 100644 internal/testdata/binaries/docker/Dockerfile create mode 100644 internal/testdata/binaries/docker/binary.cue diff --git a/internal/testdata/binaries/docker/Dockerfile b/internal/testdata/binaries/docker/Dockerfile new file mode 100644 index 000000000..2de9b0fd1 --- /dev/null +++ b/internal/testdata/binaries/docker/Dockerfile @@ -0,0 +1,7 @@ +FROM ubuntu:22.04@sha256:2b7412e6465c3c7fc5bb21d3e6f1917c167358449fecac8176c6e496e5c1f05f + +WORKDIR /foo + +COPY README.md . + +RUN ls -al diff --git a/internal/testdata/binaries/docker/binary.cue b/internal/testdata/binaries/docker/binary.cue new file mode 100644 index 000000000..813b6b393 --- /dev/null +++ b/internal/testdata/binaries/docker/binary.cue @@ -0,0 +1,9 @@ +binary: { + name: "with-parent-context" + + build_plan: { + layer_build_plan: [ + {docker_build: {context_dir: "../..", dockerfile: "binaries/docker/Dockerfile"}}, + ] + } +}