Skip to content

Commit 70a2fe6

Browse files
authored
add mpc dockerfile (#132)
1 parent 035745e commit 70a2fe6

13 files changed

+450
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM centos:7
2+
3+
ENV PPC_MPC_LIB=/data/app/wedpr/scripts/wedpr-mpc:/data/app/wedpr/scripts/wedpr-mpc/local/lib/:/usr/local/lib/
4+
ENV PPC_MPC_NO_GATEWAY_LIB=/data/app/wedpr/scripts/wedpr-mpc-no-gateway:/data/app/wedpr/scripts/wedpr-mpc-no-gateway/local/lib/:/usr/local/lib/
5+
6+
COPY ./config/mpc-node-conf.tar.gz /data/app/wedpr/scripts/
7+
COPY ./config/ssl_cert.tar.gz /data/app/wedpr/scripts/
8+
COPY ./config/CentOS-Base.repo /etc/yum.repos.d/
9+
COPY ./config/CentOS-SCLo-scl.repo /etc/yum.repos.d/
10+
COPY ./config/CentOS-SCLo-scl-rh.repo /etc/yum.repos.d/
11+
COPY ./config/.gitconfig /root/
12+
COPY ./scripts/build-mpc-base.sh /data/app/wedpr/scripts/
13+
COPY ./scripts/wedpr-mpc-node.sh /data/app/wedpr/scripts/
14+
15+
WORKDIR /data/app/wedpr
16+
17+
RUN cd /data/app/wedpr/scripts/ && \
18+
bash build-mpc-base.sh
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# FROM fiscoorg/wedpr-image:v3.0.0
2+
FROM ubuntu:22.04
3+
4+
ENV PPC_MPC_LIB=/data/app/wedpr/scripts/wedpr-mpc:/data/app/wedpr/scripts/wedpr-mpc/local/lib/:/usr/local/lib/
5+
ENV PPC_MPC_NO_GATEWAY_LIB=/data/app/wedpr/scripts/wedpr-mpc-no-gateway:/data/app/wedpr/scripts/wedpr-mpc-no-gateway/local/lib/:/usr/local/lib/
6+
7+
COPY ./config/mpc-node-conf.tar.gz /data/app/wedpr/scripts/
8+
COPY ./config/ssl_cert.tar.gz /data/app/wedpr/scripts/
9+
COPY ./config/.gitconfig /root/
10+
COPY ./scripts/build-mpc-base-ubuntu.sh /data/app/wedpr/scripts/
11+
COPY ./scripts/wedpr-mpc-node.sh /data/app/wedpr/scripts/
12+
13+
WORKDIR /data/app/wedpr
14+
15+
RUN cd /data/app/wedpr/scripts/ && \
16+
bash build-mpc-base-ubuntu.sh
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker build -f Dockerfile-wedpr-mpc-base-centos -t fiscoorg/wedpr-mpc-base-centos:v3.0.0 .
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker build -f Dockerfile-wedpr-mpc-base-ubuntu -t fiscoorg/wedpr-mpc-base-ubuntu:v3.0.0 .

docker-files/mpc/config/.gitconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[pager]
2+
branch = false
3+
[url "https://mirror.ghproxy.com/github.com"]
4+
insteadOf = https://github.com
5+
[http]
6+
version = HTTP/1.1
7+
postBuffer = 524288000
8+
[https]
9+
sslVerify = false
10+
[core]
11+
editor = vim
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# CentOS-Base.repo
2+
#
3+
# The mirror system uses the connecting IP address of the client and the
4+
# update status of each mirror to pick mirrors that are updated to and
5+
# geographically close to the client. You should use this for CentOS updates
6+
# unless you are manually picking other mirrors.
7+
#
8+
# If the mirrorlist= does not work for you, as a fall back you can try the
9+
# remarked out baseurl= line instead.
10+
#
11+
#
12+
13+
[base]
14+
name=CentOS-$releasever - Base - repo.huaweicloud.com
15+
baseurl=https://repo.huaweicloud.com/centos/$releasever/os/$basearch/
16+
#mirrorlist=https://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
17+
gpgcheck=1
18+
gpgkey=https://repo.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7
19+
20+
#released updates
21+
[updates]
22+
name=CentOS-$releasever - Updates - repo.huaweicloud.com
23+
baseurl=https://repo.huaweicloud.com/centos/$releasever/updates/$basearch/
24+
#mirrorlist=https://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
25+
gpgcheck=1
26+
gpgkey=https://repo.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7
27+
28+
#additional packages that may be useful
29+
[extras]
30+
name=CentOS-$releasever - Extras - repo.huaweicloud.com
31+
baseurl=https://repo.huaweicloud.com/centos/$releasever/extras/$basearch/
32+
#mirrorlist=https://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
33+
gpgcheck=1
34+
gpgkey=https://repo.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7
35+
36+
#additional packages that extend functionality of existing packages
37+
[centosplus]
38+
name=CentOS-$releasever - Plus - repo.huaweicloud.com
39+
baseurl=https://repo.huaweicloud.com/centos/$releasever/centosplus/$basearch/
40+
#mirrorlist=https://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
41+
gpgcheck=1
42+
enabled=0
43+
gpgkey=https://repo.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# CentOS-SCLo-rh.repo
2+
#
3+
# Please see http://wiki.centos.org/SpecialInterestGroup/SCLo for more
4+
# information
5+
6+
[centos-sclo-rh]
7+
name=CentOS-7 - SCLo rh
8+
baseurl=http://mirrors.aliyun.com/centos/7/sclo/$basearch/rh/
9+
#mirrorlist=http://mirrorlist.centos.org?arch=$basearch&release=7&repo=sclo-rh
10+
gpgcheck=1
11+
enabled=1
12+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
13+
14+
[centos-sclo-rh-testing]
15+
name=CentOS-7 - SCLo rh Testing
16+
baseurl=http://buildlogs.centos.org/centos/7/sclo/$basearch/rh/
17+
gpgcheck=0
18+
enabled=0
19+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
20+
21+
[centos-sclo-rh-source]
22+
name=CentOS-7 - SCLo rh Sources
23+
baseurl=http://vault.centos.org/centos/7/sclo/Source/rh/
24+
gpgcheck=1
25+
enabled=0
26+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
27+
28+
[centos-sclo-rh-debuginfo]
29+
name=CentOS-7 - SCLo rh Debuginfo
30+
baseurl=http://debuginfo.centos.org/centos/7/sclo/$basearch/
31+
gpgcheck=1
32+
enabled=0
33+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# CentOS-SCLo-scl.repo
2+
#
3+
# Please see http://wiki.centos.org/SpecialInterestGroup/SCLo for more
4+
# information
5+
6+
[centos-sclo-sclo]
7+
name=CentOS-7 - SCLo sclo
8+
baseurl=http://mirrors.aliyun.com/centos/7/sclo/$basearch/sclo/
9+
#mirrorlist=http://mirrorlist.centos.org?arch=$basearch&release=7&repo=sclo-sclo
10+
gpgcheck=1
11+
enabled=1
12+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
13+
14+
[centos-sclo-sclo-testing]
15+
name=CentOS-7 - SCLo sclo Testing
16+
baseurl=http://buildlogs.centos.org/centos/7/sclo/$basearch/sclo/
17+
gpgcheck=0
18+
enabled=0
19+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
20+
21+
[centos-sclo-sclo-source]
22+
name=CentOS-7 - SCLo sclo Sources
23+
baseurl=http://vault.centos.org/centos/7/sclo/Source/sclo/
24+
gpgcheck=1
25+
enabled=0
26+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
27+
28+
[centos-sclo-sclo-debuginfo]
29+
name=CentOS-7 - SCLo sclo Debuginfo
30+
baseurl=http://debuginfo.centos.org/centos/7/sclo/$basearch/
31+
gpgcheck=1
32+
enabled=0
33+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
3.32 KB
Binary file not shown.
19 KB
Binary file not shown.

0 commit comments

Comments
 (0)