Debian Codegraph @

tools/Dockerfiles/centos_8

raw
1 FROM centos:8
2
3 # Install generic dependencies to build jss
4 RUN true \
5 && dnf update -y --refresh \
6 && dnf install -y dnf-plugins-core gcc make rpm-build \
7 && ( dnf config-manager --enable powertools || dnf config-manager --enable PowerTools ) \
8 && dnf module enable -y pki-deps maven javapackages-tools \
9 && dnf build-dep -y jss \
10 && mkdir -p /home/sandbox \
11 && dnf clean -y all \
12 && rm -rf /usr/share/doc /usr/share/doc-base \
13 /usr/share/man /usr/share/locale /usr/share/zoneinfo \
14 && true
15
16 # Link in the current version of jss from the git repository
17 WORKDIR /home/sandbox
18 COPY . /home/sandbox/jss
19
20 # Install dependencies from the spec file in case they've changed
21 # since the last release on this platform.
22 RUN true \
23 && dnf build-dep -y --spec /home/sandbox/jss/jss.spec \
24 && true
25
26 # Perform the actual build from source, not from RPM
27 WORKDIR /home/sandbox/jss
28 CMD true \
29 && rm -rf build \
30 && mkdir build \
31 && cd build \
32 && cmake .. \
33 && make all \
34 && ctest --output-on-failure \
35 && true