summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-06-21 23:03:13 +0100
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-06-28 13:50:34 +0900
commita58a15c20079bb4d25c11c8ec8fe201c106f592c (patch)
tree1ac6fdf8bf6685a63bdbe00fb8fa5e1766c9289a /Dockerfile
parent2669fcfb2440b9bd651e6fd9cc834936194de3a5 (diff)
downloadbuildstream-a58a15c20079bb4d25c11c8ec8fe201c106f592c.tar.gz
Rewrite Dockerfile to add latest OSTree
Due to issues in OSTree we currently need to build an unreleased commit for BuildStream to work in certain situations (such as GitLab CI). I wrote this Dockerfile without spotting Pedro's existing one. The switch from a Debian to a Fedora base is purely to save time.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile34
1 files changed, 18 insertions, 16 deletions
diff --git a/Dockerfile b/Dockerfile
index ecf5c56ac..ff83d0a31 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,20 +1,22 @@
-FROM debian:stretch-slim
+# Docker image for running BuildStream
+# ====================================
+#
+# This image has BuildStream and its dependencies installed in /usr.
+# See Dockerfile-build.sh for the full build instructions.
+#
+# To build it, run this command from the current directory:
+#
+# docker build --tag=buildstream:latest .
+#
+# The build takes a long time because it has to download lots of packages using
+# DNF and also build OSTree from source.
-RUN apt-get update --fix-missing -qq
-RUN apt-get install -y -qq bubblewrap
-RUN apt-get install -y -qq python3.5
-RUN apt-get install -y -qq python3-pip
-RUN apt-get install -y -qq ostree
-RUN apt-get install -y -qq gir1.2-ostree-1.0
-RUN apt-get install -y -qq python3-dev
-RUN apt-get install -y -qq python3-gi
-RUN apt-get install -y -qq git
-# Install BuildStream
-ADD . /buildstream
-RUN pip3 install /buildstream
-RUN rm -rf /buildstream
+FROM fedora:25
-# Use locales that exist, otherwise build-stream will not run
-ENV LC_ALL C.UTF-8
+ADD Dockerfile-build.sh /root/Dockerfile-build.sh
+RUN bash /root/Dockerfile-build.sh
+
+# Work around https://github.com/fedora-cloud/docker-brew-fedora/issues/14
ENV LANG C.UTF-8
+ENV LC_ALL C.UTF-8