Properly add JDK deps in the Docker image.
This commit is contained in:
parent
738393b2c0
commit
0f8c25d105
3 changed files with 19 additions and 5 deletions
|
@ -30,7 +30,8 @@
|
|||
# Base Dockerfile for gRPC dev images
|
||||
FROM debian:latest
|
||||
|
||||
# Install Git.
|
||||
# Install dependencies. We start with the basic ones require to build protoc
|
||||
# and the C++ build
|
||||
RUN apt-get update && apt-get install -y \
|
||||
autoconf \
|
||||
autotools-dev \
|
||||
|
@ -52,7 +53,14 @@ RUN apt-get update && apt-get install -y \
|
|||
telnet \
|
||||
unzip \
|
||||
wget \
|
||||
zip && apt-get clean
|
||||
zip \
|
||||
# For all Java builds \
|
||||
maven \
|
||||
# For java_jdk6 \
|
||||
# oops! not in Jessie. Too old? openjdk-6-jdk \
|
||||
# For java_jdk7 \
|
||||
openjdk-7-jdk \
|
||||
&& apt-get clean
|
||||
|
||||
# Prepare ccache
|
||||
RUN ln -s /usr/bin/ccache /usr/local/bin/gcc
|
||||
|
|
|
@ -19,5 +19,5 @@ cd protobuf
|
|||
$TEST_SCRIPT cpp || exit 1
|
||||
|
||||
# Other tests can fail and we keep on going.
|
||||
$TEST_SCRIPT java_jdk6
|
||||
#$TEST_SCRIPT java_jdk6
|
||||
$TEST_SCRIPT java_jdk7
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
on_travis() {
|
||||
if [ "$TRAVIS" == "true" ]; then
|
||||
"$@"
|
||||
fi
|
||||
}
|
||||
|
||||
# For when some other test needs the C++ main build, including protoc and
|
||||
# libprotobuf.
|
||||
internal_build_cpp() {
|
||||
|
@ -75,11 +81,11 @@ use_java() {
|
|||
version=$1
|
||||
case "$version" in
|
||||
jdk6)
|
||||
sudo apt-get install openjdk-6-jdk
|
||||
on_travis sudo apt-get install openjdk-6-jdk
|
||||
export PATH=/usr/lib/jvm/java-6-openjdk-amd64/bin:$PATH
|
||||
;;
|
||||
jdk7)
|
||||
sudo apt-get install openjdk-7-jdk
|
||||
on_travis sudo apt-get install openjdk-7-jdk
|
||||
export PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH
|
||||
;;
|
||||
oracle7)
|
||||
|
|
Loading…
Add table
Reference in a new issue