737845cc27c542909c052ec556459c99fcc77695
[ric-plt/sdl.git] / ci / Dockerfile
1 #
2 #   Copyright (c) 2018-2019 Nokia.
3 #
4 #   Licensed under the Apache License, Version 2.0 (the "License");
5 #   you may not use this file except in compliance with the License.
6 #   You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #   Unless required by applicable law or agreed to in writing, software
11 #   distributed under the License is distributed on an "AS IS" BASIS,
12 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #   See the License for the specific language governing permissions and
14 #   limitations under the License.
15 #
16
17 FROM nexus3.o-ran-sc.org:10004/bldr-ubuntu18-c-go:2-u18.04-nng
18
19 # Install build tools and SDL dependencies:
20 RUN apt-get update && \
21     apt-get install -y libhiredis-dev && \
22     apt-get clean
23
24 # Copy sourcefiles:
25 RUN mkdir -p /tmp/build
26 COPY . /tmp/build
27
28 # Compile and run unit tests:
29 WORKDIR /tmp/build
30 RUN ./autogen.sh && \
31     ./configure && \
32     make all && \
33     make test