Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix docker build not working due to missing java #34

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,29 @@ MAINTAINER Kasper Luckow <[email protected]>
#############################################################################
# Setup base image
#############################################################################
RUN \
apt-get update -y && \
apt-get install software-properties-common -y && \
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
add-apt-repository ppa:webupd8team/java -y && \
apt-get update -y && \
apt-get install -y oracle-java8-installer \
RUN apt-get update && \
apt-get install -y \
software-properties-common \
ant \
maven \
git \
junit \
build-essential \
python \
antlr3 \
&& \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/oracle-jdk8-installer
wget


RUN wget https://cdn.azul.com/zulu/bin/zulu8.38.0.13-ca-jdk8.0.212-linux_amd64.deb
RUN dpkg -i zulu8.38.0.13-ca-jdk8.0.212-linux_amd64.deb
RUN rm zulu8.38.0.13-ca-jdk8.0.212-linux_amd64.deb

#############################################################################
# Environment
#############################################################################

# set java env
ENV JAVA_HOME /usr/lib/jvm/java-8-oracle
ENV JAVA_HOME /usr/lib/jvm/zulu-8-amd64
ENV JUNIT_HOME /usr/share/java

RUN mkdir /jdart-project
Expand Down Expand Up @@ -89,4 +88,4 @@ RUN cp /root/.m2/repository/com/microsoft/z3/4.4.1/z3-4.4.1.jar /root/.jconstrai
WORKDIR ${JDART_DIR}
RUN git clone https://github.com/psycopaths/jdart.git
WORKDIR ${JDART_DIR}/jdart
RUN ant
RUN ant