This repository has been archived by the owner on Dec 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
57 lines (48 loc) · 2.12 KB
/
Dockerfile
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM centos:8
# PROXY: uncomment if behind a proxy (px proxy server on localhost:3128)
#ENV http_proxy=http://host.docker.internal:3128
#ENV https_proxy=${http_proxy}
#ENV HTTP_PROXY=${http_proxy}
#ENV HTTPS_PROXY=${http_proxy}
#ENV NO_PROXY=localhost,127.0.0.1
ENV MAVEN_VERSION=3.6.3
ENV MAVEN_BASE_URL="https://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries"
ENV MAVEN_TARBALL="apache-maven-${MAVEN_VERSION}-bin.tar.gz"
ENV MAVEN_HOME=/opt/maven
ENV M2_HOME=${MAVEN_HOME}
ENV MAVEN_CONFIG="${MAVEN_HOME}/.m2"
COPY ./config/maven/settings_noproxy.xml /tmp/settings_noproxy.xml
COPY ./config/maven/settings_pxproxy.xml /tmp/settings_pxproxy.xml
# maven
RUN mkdir -p ${MAVEN_HOME} ${MAVEN_HOME}/ref \
&& curl -o /tmp/${MAVEN_TARBALL} ${MAVEN_BASE_URL}/${MAVEN_TARBALL} \
&& tar -xf /tmp/${MAVEN_TARBALL} -C ${MAVEN_HOME} --strip 1 \
&& ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn \
# PROXY: use the correct maven settings if behind a proxy or not
#&& cp /tmp/settings_pxproxy.xml ${MAVEN_HOME}/conf/settings.xml
&& cp /tmp/settings_noproxy.xml ${MAVEN_HOME}/conf/settings.xml
# tools
RUN dnf -y install gcc \
&& dnf -y --enablerepo=PowerTools install libstdc++-static \
&& dnf -y install glibc-devel zlib-devel \
# ps
&& dnf -y install procps \
# python
&& dnf -y install python3 \
&& dnf -y install python3-devel \
# psrecord
&& pip3 install psrecord \
&& pip3 install matplotlib \
&& pip3 install flask \
&& pip3 install psycopg2-binary
# jabba with jdks
RUN curl -sL https://github.com/shyiko/jabba/raw/master/install.sh | bash && . ~/.jabba/jabba.sh \
&& jabba install [email protected] \
&& jabba install [email protected]=tgz+https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-20.2.0/graalvm-ce-java11-linux-amd64-20.2.0.tar.gz \
&& jabba use [email protected] \
&& gu install native-image \
&& jabba alias default [email protected]
COPY ./psrecord-patch/main.py /usr/local/lib/python3.6/site-packages/psrecord/
# apache benchmarking tool
RUN dnf -y install httpd-tools
WORKDIR /work