-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (22 loc) · 884 Bytes
/
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
FROM ubuntu:latest
RUN apt-get clean && rm -rfv /var/lib/apt/lists/* && apt update
RUN apt-get -y update && apt-get install -y
RUN apt-get -y install build-essential libpthread-stubs0-dev cmake
RUN apt-get -y --fix-missing install flex bison
RUN apt-get -y install libgtest-dev
RUN apt-get -y install gdb
WORKDIR /usr/src/gtest
RUN cmake CMakeLists.txt && make && cp *.a /usr/lib
COPY catalog Makefile *.l *.y /opt/build/
COPY query_plan_op/*.txt /opt/build/query_plan_op/
COPY data/ /opt/build/data/
COPY Statistics.txt /opt/build/
COPY *.h /opt/build/
COPY *.cc /opt/build/
COPY *.cat /opt/build/
WORKDIR /opt/build
ARG make_target=main
# RUN if [ "${make_target}" = "main" ] ; then make main ; else make gtest ; fi
RUN make gtest
# RUN if [ "${make_target}" = "test.out" ] ; the make test.out ; fi
# RUN if [ "${make_target}" = "gtest" ] ; the make gtest ; fi