-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (26 loc) · 873 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
FROM ubuntu:latest
RUN DEBIAN_FRONTEND=noninteractive apt update && DEBIAN_FRONTEND=noninteractive apt upgrade --yes
RUN DEBIAN_FRONTEND=noninteractive apt install --yes build-essential wget libssl-dev libcurl4-openssl-dev
RUN wget -q https://github.com/Kitware/CMake/releases/download/v3.28.2/cmake-3.28.2.tar.gz -O /tmp/cmake.tar.gz
RUN tar -xzf /tmp/cmake.tar.gz -C /tmp/
RUN mv /tmp/cmake-* /usr/local/cmake
RUN cd /usr/local/cmake && ./bootstrap && make && make install
# RUN echo `whereis cmake`
# RUN ls -lahR /usr/local/cmake
WORKDIR /app
COPY . .
RUN cmake .
RUN make
RUN echo "cd /app"
RUN cd /app
RUN echo "pwd"
RUN pwd
# RUN ls -lahR /app
## Now run it:
## docker run --rm -it -v `pwd`:/app cdb-cmake-build:latest
## # cmake .
## # make
## # ./build_db sample-db
## # > insert 10 "your-user" "your-email" "your-password"
## # > select
## # > .exit