File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,13 @@ ARG TARGETARCH
21
21
22
22
LABEL org.opencontainers.image.source https://github.com/4paradigm/OpenMLDB
23
23
24
- COPY setup_deps .sh /
24
+ COPY ./* .sh /
25
25
# hadolint ignore=DL3031,DL3033
26
26
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo && \
27
27
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo && \
28
28
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo && \
29
29
yum update -y && yum install -y centos-release-scl epel-release && \
30
- sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo && \
31
- sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo && \
32
- sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo && \
30
+ /patch_yum_repo.sh && \
33
31
yum install -y devtoolset-8 rh-git227 devtoolset-8-libasan-devel flex doxygen java-1.8.0-openjdk-devel rh-python38-python-devel rh-python38-python-wheel rh-python38-python-requests rh-python38-python-pip && \
34
32
curl -Lo lcov-1.15-1.noarch.rpm https://github.com/linux-test-project/lcov/releases/download/v1.15/lcov-1.15-1.noarch.rpm && \
35
33
yum localinstall -y lcov-1.15-1.noarch.rpm && \
@@ -39,7 +37,7 @@ RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo && \
39
37
tar xzf zookeeper.tar.gz -C /deps/src && \
40
38
rm -v ./*.tar.gz && \
41
39
/setup_deps.sh -a "$TARGETARCH" -z "$ZETASQL_VERSION" -t "$THIRDPARTY_VERSION" && \
42
- rm -v /setup_deps .sh
40
+ rm -v /* .sh
43
41
44
42
ENV THIRD_PARTY_DIR=/deps/usr
45
43
ENV THIRD_PARTY_SRC_DIR=/deps/src
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+
5
+ sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/* .repo
6
+ sed -i s/^# .*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
7
+ sed -i s/^mirrorlist=http/# mirrorlist=http/g /etc/yum.repos.d/*.repo
8
+
9
+ if [[ " $ARCH " = " aarch64" ]]; then
10
+ sed -i s/vault.centos.org\/ centos/vault.centos.org\/ altarch/g /etc/yum.repos.d/* .repo
11
+ fi
You can’t perform that action at this time.
0 commit comments