forked from edemo/PDEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (36 loc) · 2.38 KB
/
Dockerfile
File metadata and controls
41 lines (36 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM ubuntu:bionic
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get -y install software-properties-common apt-transport-https
RUN apt-add-repository -y ppa:openjdk-r/ppa
RUN until apt-key adv --keyserver keys.gnupg.net --recv 43DB103F31060848; do echo retrying; done
RUN echo deb http://repos.demokracia.rulez.org/apt/debian/ master main >/etc/apt/sources.list.d/repos.demokracia.rulez.org.list
RUN apt-get update
RUN export DEBIAN_FRONTEND=noninteractive;apt-get -y install openjdk-11-jdk wget git xvfb unzip docbook-xsl make firefox vnc4server\
dblatex libwebkitgtk-3.0-0 libswt-webkit-gtk-3-jni python-yaml python-pip python-dateutil\
zip debhelper devscripts zenta zenta-tools maven haveged vim sudo less rsync curl jq
RUN pip install jira
RUN git clone --branch standalone-analysis-java11 https://github.com/magwas/mutation-analysis-plugin.git; \
cd mutation-analysis-plugin;\
mvn install;\
cp ~/.m2/repository/ch/devcon5/sonar/mutation-analysis-plugin/1.3-SNAPSHOT/mutation-analysis-plugin-1.3-SNAPSHOT.jar /usr/local/lib/;\
cd .. ; rm -rf mutation-analysis-plugin
RUN git clone --branch feature/compile_with_java_11 https://github.com/magwas/xml-doclet.git;\
cd xml-doclet/; mvn install;\
cd .. ; rm -rf xml-doclet
RUN git clone --branch docker/java11 https://github.com/magwas/PDEngine.git;\
rm /dev/random; cp -a /dev/urandom /dev/random;\
cd PDEngine; export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64;\
make maven;\
cd .. ; rm -rf PDEngine
RUN sed 's/.ALL:ALL./(ALL) NOPASSWD:/' -i /etc/sudoers
RUN wget "http://ftp.halifax.rwth-aachen.de/eclipse//technology/epp/downloads/release/2019-03/R/eclipse-jee-2019-03-R-linux-gtk-x86_64.tar.gz" -O /tmp/eclipse.tar.gz;\
cd /opt ; tar xzf /tmp/eclipse.tar.gz;\
rm /tmp/eclipse.tar.gz
RUN wget https://projectlombok.org/downloads/lombok.jar -O /tmp/lombok.jar;\
java -jar /tmp/lombok.jar install /opt/eclipse;\
rm /tmp/lombok.jar;
RUN /opt/eclipse/eclipse -application org.eclipse.equinox.p2.director -repository https://dl.bintray.com/pmd/pmd-eclipse-plugin/releases/4.2.0.v20190331-1136 -installIUs net.sourceforge.pmd.eclipse.feature.group -noSplash
RUN /opt/eclipse/eclipse -application org.eclipse.equinox.p2.director -repository https://download.springsource.com/release/TOOLS/update/e4.11/ -installIUs org.springsource.sts.ide.feature.group -noSplash
ENTRYPOINT ["/build/tools/entrypoint"]
CMD ["/bin/bash"]