File tree 6 files changed +76
-14
lines changed
6 files changed +76
-14
lines changed Original file line number Diff line number Diff line change 1
1
# TODO: Add mcr.io retagged images
2
2
FROM centos:7
3
3
4
+ RUN rm /etc/yum.repos.d/*.repo
5
+ COPY centos.repo /etc/yum.repos.d/centos.repo
6
+
4
7
RUN yum install -y \
5
8
autoconf \
6
9
gcc \
@@ -19,10 +22,10 @@ WORKDIR /git
19
22
RUN git clone https://github.com/Kitware/CMake --recursive -b v3.21.7
20
23
RUN cd CMake && ./bootstrap && make -j$(nproc) && make install && hash -r && rm -rf /git/CMake
21
24
25
+ # rapidjson
26
+ RUN git clone https://github.com/Tencent/rapidjson --recursive -b v1.1.0
27
+ RUN cd rapidjson && cmake -DRAPIDJSON_BUILD_TESTS=0 . && cmake --build . --parallel --target install && rm -rf /git/rapidjson
28
+
22
29
# GTest
23
30
RUN git clone https://github.com/google/googletest --recursive -b release-1.10.0
24
31
RUN cd googletest && cmake . && cmake --build . --parallel --target install && rm -rf /git/googletest
25
-
26
- # rapidjson
27
- RUN git clone https://github.com/Tencent/rapidjson --recursive -b v1.1.0
28
- RUN cd rapidjson && cmake . && cmake --build . --parallel --target install && rm -rf /git/rapidjson
Original file line number Diff line number Diff line change
1
+ [base]
2
+ name=CentOS-$releasever - Base
3
+ baseurl=https://vault.centos.org/7.9.2009/os/$basearch/
4
+ enabled=1
5
+ gpgcheck=1
6
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
7
+
8
+ #released updates
9
+ [updates]
10
+ name=CentOS-$releasever - Updates
11
+ baseurl=https://vault.centos.org/7.9.2009/updates/$basearch/
12
+ enabled=1
13
+ gpgcheck=1
14
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
15
+
16
+ #additional packages that may be useful
17
+ [extras]
18
+ name=CentOS-$releasever - Extras
19
+ baseurl=https://vault.centos.org/7.9.2009/extras/$basearch/
20
+ enabled=1
21
+ gpgcheck=1
22
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ WORKDIR /git
19
19
RUN git clone https://github.com/Kitware/CMake --recursive -b v3.21.7
20
20
RUN cd CMake && ./bootstrap && make -j$(nproc) && make install && hash -r && rm -rf /git/CMake
21
21
22
+ # rapidjson
23
+ RUN git clone https://github.com/Tencent/rapidjson --recursive -b v1.1.0
24
+ RUN cd rapidjson && cmake -DRAPIDJSON_BUILD_TESTS=0 . && cmake --build . --parallel --target install && rm -rf /git/rapidjson
25
+
22
26
# GTest
23
27
RUN git clone https://github.com/google/googletest --recursive -b release-1.10.0
24
28
RUN cd googletest && cmake . && cmake --build . --parallel --target install && rm -rf /git/googletest
25
-
26
- # rapidjson
27
- RUN git clone https://github.com/Tencent/rapidjson --recursive -b v1.1.0
28
- RUN cd rapidjson && cmake . && cmake --build . --parallel --target install && rm -rf /git/rapidjson
Original file line number Diff line number Diff line change 1
1
# ubi7 images are missing RPM devtools, copy from centos7
2
2
FROM centos:centos7 as centos
3
- RUN yum update -y && yumdownloader rpm-build && yumdownloader elfutils
3
+ RUN rm /etc/yum.repos.d/*.repo
4
+ COPY centos.repo /etc/yum.repos.d/centos.repo
5
+
6
+ RUN yum update -y
7
+ RUN rm /etc/yum.repos.d/*.repo
8
+ COPY centos.repo /etc/yum.repos.d/centos.repo
9
+
10
+ RUN yumdownloader rpm-build && yumdownloader elfutils
4
11
5
12
# TODO: Add mcr.io retagged images
6
13
FROM registry.access.redhat.com/ubi7/ubi
@@ -27,16 +34,16 @@ RUN cd CMake && ./bootstrap && make -j$(nproc) && make install && hash -r && rm
27
34
RUN git clone https://github.com/stedolan/jq.git --recursive
28
35
RUN cd jq && autoreconf -i && ./configure && make -j$(nproc) && make install && rm -rf /git/jq
29
36
37
+ # rapidjson
38
+ RUN git clone https://github.com/Tencent/rapidjson --recursive -b v1.1.0
39
+ RUN cd rapidjson && cmake -DRAPIDJSON_BUILD_TESTS=0 . && cmake --build . --parallel --target install && rm -rf /git/rapidjson
40
+
30
41
# GTest
31
42
RUN git clone https://github.com/google/googletest --recursive -b release-1.10.0
32
43
RUN cd googletest && cmake . && cmake --build . --parallel --target install && rm -rf /git/googletest
33
44
34
- # rapidjson
35
- RUN git clone https://github.com/Tencent/rapidjson --recursive -b v1.1.0
36
- RUN cd rapidjson && cmake . && cmake --build . --parallel --target install && rm -rf /git/rapidjson
37
-
38
45
# elfutils
39
46
RUN yum install -y /elfutils.rpm && rm -f /elfutils.rpm
40
47
41
48
# rpm-build
42
- RUN yum install -y /rpm-build.rpm && rm -f /rpm-build.rpm
49
+ RUN yum install -y /rpm-build.rpm && rm -f /rpm-build.rpm
Original file line number Diff line number Diff line change
1
+ [base]
2
+ name=CentOS-$releasever - Base
3
+ baseurl=https://vault.centos.org/7.9.2009/os/$basearch/
4
+ enabled=1
5
+ gpgcheck=1
6
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
7
+
8
+ #released updates
9
+ [updates]
10
+ name=CentOS-$releasever - Updates
11
+ baseurl=https://vault.centos.org/7.9.2009/updates/$basearch/
12
+ enabled=1
13
+ gpgcheck=1
14
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
15
+
16
+ #additional packages that may be useful
17
+ [extras]
18
+ name=CentOS-$releasever - Extras
19
+ baseurl=https://vault.centos.org/7.9.2009/extras/$basearch/
20
+ enabled=1
21
+ gpgcheck=1
22
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Original file line number Diff line number Diff line change
1
+ FROM ghcr.io/azure/azure-osconfig/ubuntu-14.04-amd64:latest
2
+
3
+ RUN apt-get install -y ninja-build
4
+
5
+ WORKDIR /git
6
+
7
+ RUN git clone https://github.com/google/googletest --recursive -b release-1.10.0
8
+ RUN cd googletest && cmake . -G Ninja && cmake --build . --target install && rm -rf /git/googletest
You can’t perform that action at this time.
0 commit comments