Browse code

Work around 64MB tmpfs limit

Specify a different temporary directory besides /tmp because /tmp in
containers in Docker 1.6 on Fedora and RHEL 7 is only 64MB, and that's
not enough to build OpenShift.

Andy Goldstein authored on 2015/04/28 01:14:28
Showing 1 changed files
... ...
@@ -10,8 +10,12 @@ RUN yum install -y hg golang golang-pkg-darwin golang-pkg-windows && yum clean a
10 10
 
11 11
 ENV GOPATH /go
12 12
 
13
+# work around 64MB tmpfs size
14
+ENV TMPDIR /openshifttmp
15
+
13 16
 # Get the code coverage tool and godep
14
-RUN go get code.google.com/p/go.tools/cmd/cover github.com/tools/godep github.com/golang/lint/golint
17
+RUN mkdir $TMPDIR && \
18
+    go get code.google.com/p/go.tools/cmd/cover github.com/tools/godep github.com/golang/lint/golint
15 19
 
16 20
 # Mark this as a os-build container
17 21
 RUN touch /os-build-image