Browse code

Enable protoc in the release images

Clayton Coleman authored on 2016/07/19 08:08:39
Showing 3 changed files
... ...
@@ -11,7 +11,7 @@ set -o pipefail
11 11
 
12 12
 OS_ROOT=$(dirname "${BASH_SOURCE}")/..
13 13
 source "${OS_ROOT}/hack/lib/init.sh"
14
-os::log::install_errexit
14
+os::log::stacktrace::install
15 15
 
16 16
 # Go to the top of the tree.
17 17
 cd "${OS_ROOT}"
... ...
@@ -6,7 +6,7 @@
6 6
 #
7 7
 FROM openshift/origin-base
8 8
 
9
-ENV VERSION=1.6.2 \
9
+ENV VERSION=1.6.3 \
10 10
     GOARM=5 \
11 11
     GOPATH=/go \
12 12
     GOROOT=/usr/local/go \
... ...
@@ -15,10 +15,12 @@ ENV VERSION=1.6.2 \
15 15
 ENV PATH=$PATH:$GOROOT/bin:$GOPATH/bin
16 16
 
17 17
 RUN mkdir $TMPDIR && \
18
-    INSTALL_PKGS="make gcc zip mercurial krb5-devel" && \
18
+    INSTALL_PKGS="make gcc zip mercurial krb5-devel bsdtar" && \
19 19
     yum install -y $INSTALL_PKGS && \
20 20
     rpm -V $INSTALL_PKGS && \
21 21
     yum clean all && \
22
+    curl -L https://github.com/google/protobuf/releases/download/v3.0.0-beta-4/protoc-3.0.0-beta-4-linux-x86_64.zip | bsdtar -C /usr/local -xf - && \
23
+    chmod ug+x /usr/local/bin/protoc && \
22 24
     curl https://storage.googleapis.com/golang/go$VERSION.linux-amd64.tar.gz | tar -C /usr/local -xzf - && \
23 25
     go get golang.org/x/tools/cmd/cover github.com/tools/godep github.com/golang/lint/golint && \
24 26
     touch /os-build-image
... ...
@@ -6,7 +6,7 @@
6 6
 #
7 7
 FROM openshift/origin-base
8 8
 
9
-ENV VERSION=1.7beta1 \
9
+ENV VERSION=1.7rc2 \
10 10
     GOARM=5 \
11 11
     GOPATH=/go \
12 12
     GOROOT=/usr/local/go \
... ...
@@ -15,10 +15,12 @@ ENV VERSION=1.7beta1 \
15 15
 ENV PATH=$PATH:$GOROOT/bin:$GOPATH/bin
16 16
 
17 17
 RUN mkdir $TMPDIR && \
18
-    INSTALL_PKGS="make gcc zip mercurial krb5-devel" && \
18
+    INSTALL_PKGS="make gcc zip mercurial krb5-devel bsdtar" && \
19 19
     yum install -y $INSTALL_PKGS && \
20 20
     rpm -V $INSTALL_PKGS && \
21 21
     yum clean all && \
22
+    curl -L https://github.com/google/protobuf/releases/download/v3.0.0-beta-4/protoc-3.0.0-beta-4-linux-x86_64.zip | bsdtar -C /usr/local -xf - && \
23
+    chmod ug+x /usr/local/bin/protoc && \
22 24
     curl https://storage.googleapis.com/golang/go$VERSION.linux-amd64.tar.gz | tar -C /usr/local -xzf - && \
23 25
     go get golang.org/x/tools/cmd/cover github.com/tools/godep github.com/golang/lint/golint && \
24 26
     touch /os-build-image