diff options
Diffstat (limited to 'utils/docker/example')
-rw-r--r-- | utils/docker/example/build/Dockerfile | 26 | ||||
-rw-r--r-- | utils/docker/example/release/Dockerfile | 24 |
2 files changed, 50 insertions, 0 deletions
diff --git a/utils/docker/example/build/Dockerfile b/utils/docker/example/build/Dockerfile new file mode 100644 index 00000000000..597ccfeb4f2 --- /dev/null +++ b/utils/docker/example/build/Dockerfile @@ -0,0 +1,26 @@ +#===- llvm/utils/docker/example/build/Dockerfile -------------------------===// +# +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. +# +#===----------------------------------------------------------------------===// +# This is an example Dockerfile to build an image that compiles clang. +# Replace FIXMEs to prepare your own image. + +# FIXME: Replace 'ubuntu' with your base image +FROM ubuntu + +# FIXME: Change maintainer name +LABEL maintainer "Maintainer <maintainer@email>" + +# FIXME: Install llvm/clang build dependencies. Including compiler to +# build stage1, cmake, subversion, ninja, etc. + +# Arguments to pass to build_install_clang.sh. +ARG buildscript_args + +# Run the build. Results of the build will be available as /tmp/clang.tar.gz. +ADD scripts/build_install_llvm.sh /tmp +RUN /tmp/build_install_llvm.sh ${buildscript_args} diff --git a/utils/docker/example/release/Dockerfile b/utils/docker/example/release/Dockerfile new file mode 100644 index 00000000000..953d81fc995 --- /dev/null +++ b/utils/docker/example/release/Dockerfile @@ -0,0 +1,24 @@ +#===- llvm/utils/docker/example/release/Dockerfile -----------------------===// +# +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. +# +#===----------------------------------------------------------------------===// +# An image that unpacks a clang installation, compiled by the 'build/' +# container. +# Replace FIXMEs to prepare your own image. + +# FIXME: Replace 'ubuntu' with your base image. +FROM ubuntu + +# FIXME: Change maintainer name. +LABEL maintainer "Maintainer <maintainer@email>" + +# FIXME: Install all packages you want to have in your release container. +# A minimal usefull installation must include libstdc++ and binutils. + +# Unpack clang installation into this container. +# It is copied to this directory by build_docker_image.sh script. +ADD clang.tar.gz / |