-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 715 Bytes
/
Copy pathDockerfile
File metadata and controls
29 lines (21 loc) · 715 Bytes
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
FROM cimg/openjdk:19.0
USER root
# Install dependencies to build HE libraries
RUN apt-get update
RUN apt-get install cmake make build-essential g++ clang autoconf javacc patchelf m4 tar lzip libfftw3-dev
RUN wget -c https://go.dev/dl/go1.17.6.linux-amd64.tar.gz
RUN tar -C /usr/local -xzf go1.17.6.linux-amd64.tar.gz
RUN export PATH=$PATH:/usr/local/go/bin
# Copy files to docker container
COPY . .
# Resolve all maven project dependencies
RUN mvn dependency:go-offline
# Build T2 compiler and run tests
RUN export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
RUN mvn package
# Clone HE libraries
RUN .circleci/clone_libs.sh
# Build HE libraries
RUN .circleci/build_libs.sh
# Run T2 tests
RUN mvn test