Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Commit 43c7c74

Browse files
windhamwongtahlia
and
tahlia
authored
Update Debian docker build with JDK11 and correct debian version (#3487)
* Debian9 docker build fix * Fix Debian docker build with JDK11 Co-authored-by: tahlia <[email protected]>
1 parent 576e0c7 commit 43c7c74

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

docker/compile/Dockerfile.debian10

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ RUN apt-get update && apt-get -y install \
3131
libtool \
3232
libtool-bin \
3333
python \
34-
python2.7-dev \
34+
python-dev \
3535
software-properties-common \
3636
python-setuptools \
3737
tree \

docker/compile/Dockerfile.debian9

+2-5
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
FROM openjdk:8-jdk-slim
18+
FROM openjdk:11-jdk-slim-stretch
1919

2020
# This is passed to the heron build command via the --config flag
2121
ENV TARGET_PLATFORM debian
@@ -37,10 +37,7 @@ RUN apt-get update && apt-get -y install \
3737
tree \
3838
zip \
3939
unzip \
40-
wget \
41-
openjdk-11-jdk-headless
42-
43-
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64
40+
wget
4441

4542
RUN wget -O /tmp/bazel.sh https://github.com/bazelbuild/bazel/releases/download/$bazelVersion/bazel-$bazelVersion-installer-linux-x86_64.sh \
4643
&& chmod +x /tmp/bazel.sh \

docker/dist/Dockerfile.dist.debian9

+3-4
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,16 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
FROM openjdk:8-jdk-slim
18+
FROM openjdk:11-jdk-slim-stretch
1919

2020
RUN apt-get -y update && apt-get -y install \
2121
netcat-openbsd \
2222
python \
23-
python3 \
23+
python-dev \
2424
unzip \
2525
curl \
2626
vim \
27-
supervisor \
28-
openjdk-11-jdk-headless && \
27+
supervisor && \
2928
apt-get clean all && \
3029
rm -rf /var/lib/apt/lists/*
3130

0 commit comments

Comments
 (0)