forked from reactorlabs/rir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (22 loc) · 1.18 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM registry.gitlab.com/rirvm/rir_mirror/dockerhub_mirror/ubuntu:20.04
ARG CI_COMMIT_SHA
ADD . /opt/rir
ENV LANG en_US.UTF-8
RUN echo $CI_COMMIT_SHA > /opt/rir_version && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y -qq && \
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq curl git gcc gfortran g++ libreadline-dev libx11-dev libxt-dev zlib1g-dev libbz2-dev liblzma-dev libpcre3-dev libcurl4-openssl-dev libcairo2-dev make libreadline8 libncurses-dev xz-utils cmake tcl-dev tk-dev locales rsync && \
locale-gen en_US.UTF-8 && update-locale LANG=en_US.UTF-8 && \
cd /opt/rir && \
tools/build-gnur.sh && \
rm -rf external/custom-r/cache_recommended.tar .git && \
find external -type f -name '*.o' -exec rm -f {} \; && \
apt-get clean
RUN mkdir -p /opt/rir/build/release && \
cd /opt/rir && \
(curl 10.200.14.25:8080/clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-20.04.tar.xz > external/clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-20.04.tar.xz || true) && \
tools/fetch-llvm.sh && \
cd /opt/rir/build/release && \
cmake -DCMAKE_BUILD_TYPE=release ../.. && \
make -j8 && \
rm -rf CMakeFiles /opt/rir/external/clang+llvm*