-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (36 loc) · 1009 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
FROM debian:buster-20201012
RUN apt-get update \
&& apt-get install -y \
curl \
unzip \
g++ \
make \
cmake \
pkg-config
# install io-buffer library
RUN mkdir -p /tmp/io-buffer \
&& cd /tmp/io-buffer \
&& curl -LO "https://github.com/Alexander1000/io-buffer/archive/master.zip" \
&& unzip -a master.zip \
&& rm -f master.zip \
&& cd io-buffer-master \
&& cmake . \
&& make \
&& make install \
&& rm -rf /tmp/io-buffer
# install cpp-unit-test library
RUN mkdir -p /tmp/cpp-utils \
&& cd /tmp/cpp-utils \
&& curl -LO "https://github.com/Alexander1000/cpp-unit-test/archive/master.zip" \
&& unzip -a master.zip \
&& rm -f master.zip \
&& cd cpp-unit-test-master \
&& cmake . \
&& make \
&& make install \
&& rm -rf /tmp/cpp-utils
COPY . /app
RUN cd /app && cmake . && make && make install \
&& cd tests && cmake . && make
WORKDIR /app/tests
ENTRYPOINT ["./json-analyzer-tests"]