summaryrefslogtreecommitdiffstats
path: root/llvm/utils/docker/example/Dockerfile
diff options
context:
space:
mode:
authorIlya Biryukov <ibiryukov@google.com>2018-04-20 10:19:38 +0000
committerIlya Biryukov <ibiryukov@google.com>2018-04-20 10:19:38 +0000
commit2bf7c51d0e580456f256e2cd7932bb197d1ecd32 (patch)
treede1c3d1d2ec05b796d25d416076813cd4faf2f82 /llvm/utils/docker/example/Dockerfile
parentd4332eb3b792f614d77d4e2a07e71a8cb42267a2 (diff)
downloadbcm5719-llvm-2bf7c51d0e580456f256e2cd7932bb197d1ecd32.tar.gz
bcm5719-llvm-2bf7c51d0e580456f256e2cd7932bb197d1ecd32.zip
[Dockerfiles] Split checkout and build scripts into separate files.
Summary: This is a small refactoring to extract the svn checkout code from the build script used inside the docker image. This would give more flexibility if more than a single invocation of cmake is needed inside the docker image. User-facing interface (build_docker_image.sh) hasn't changed, only the internal scripts running inside the build container are affected. Reviewers: ioeric Reviewed By: ioeric Subscribers: mehdi_amini, llvm-commits Differential Revision: https://reviews.llvm.org/D45868 llvm-svn: 330412
Diffstat (limited to 'llvm/utils/docker/example/Dockerfile')
-rw-r--r--llvm/utils/docker/example/Dockerfile9
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/utils/docker/example/Dockerfile b/llvm/utils/docker/example/Dockerfile
index bb42a4df6bf..d875ed96d90 100644
--- a/llvm/utils/docker/example/Dockerfile
+++ b/llvm/utils/docker/example/Dockerfile
@@ -19,10 +19,13 @@ LABEL maintainer "Maintainer <maintainer@email>"
ADD checksums /tmp/checksums
ADD scripts /tmp/scripts
-# Arguments passed to build_install_clang.sh.
+
+# Checkout the source code.
+ARG checkout_args
+RUN /tmp/scripts/checkout.sh ${checkout_args}
+# Run the build. Results of the build will be available at /tmp/clang-install/.
ARG buildscript_args
-# Run the build. Results of the build will be available as /tmp/clang-install.
-RUN /tmp/scripts/build_install_llvm.sh ${buildscript_args}
+RUN /tmp/scripts/build_install_llvm.sh --to /tmp/clang-install ${buildscript_args}
# Stage 2. Produce a minimal release image with build results.
OpenPOWER on IntegriCloud