Skip to content

Commit f73f77f

Browse files
committed
Updated versions of multiple packages in SgxSolDev
1 parent a362b3a commit f73f77f

File tree

2 files changed

+31
-22
lines changed

2 files changed

+31
-22
lines changed

SGXDev/Dockerfile

+14-7
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,30 @@ RUN apt-get update -y && \
2222
less \
2323
net-tools \
2424
iputils-ping \
25-
build-essential \
2625
git \
27-
cmake \
28-
python3 \
29-
python3-pip \
30-
curl
26+
curl \
27+
build-essential \
28+
cmake=3.22.1-1ubuntu1.22.04.1 \
29+
python3=3.10.6-1~22.04 \
30+
python3-pip=22.0.2+dfsg-1ubuntu0.4
3131

3232
# SSH Server
3333
RUN apt-get update -y && \
3434
apt-get install -y \
3535
openssh-server
3636
RUN rm /etc/ssh/ssh_host_*
3737

38+
##########
39+
# SGX Linux SDK
40+
##########
41+
42+
ARG LINUX_SGX_VER=2.23
43+
ARG SGX_SDK_VER=${LINUX_SGX_VER}.100.2
44+
3845
# SGX PSW
3946
RUN curl \
4047
-o /opt/sgx_debian_local_repo.tgz \
41-
-fSL https://download.01.org/intel-sgx/sgx-linux/2.23/distro/ubuntu22.04-server/sgx_debian_local_repo.tgz
48+
-fSL https://download.01.org/intel-sgx/sgx-linux/${LINUX_SGX_VER}/distro/ubuntu22.04-server/sgx_debian_local_repo.tgz
4249

4350
RUN tar -xzf /opt/sgx_debian_local_repo.tgz -C /opt
4451
RUN echo 'deb [arch=amd64 trusted=yes] file:/opt/sgx_debian_local_repo/ jammy main' > /etc/apt/sources.list.d/intel-sgx.list
@@ -58,7 +65,7 @@ RUN chmod 755 /etc/init.d/aesmd
5865
# SGX SDK
5966
RUN curl \
6067
-o /opt/sgx_linux_x64_sdk.bin \
61-
-fSL https://download.01.org/intel-sgx/sgx-linux/2.23/distro/ubuntu22.04-server/sgx_linux_x64_sdk_2.23.100.2.bin
68+
-fSL https://download.01.org/intel-sgx/sgx-linux/${LINUX_SGX_VER}/distro/ubuntu22.04-server/sgx_linux_x64_sdk_${SGX_SDK_VER}.bin
6269
RUN chmod 755 /opt/sgx_linux_x64_sdk.bin
6370
RUN /opt/sgx_linux_x64_sdk.bin --prefix /opt/intel
6471

SGXSolDev/Dockerfile

+17-15
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,38 @@ ENV DEBIAN_FRONTEND=noninteractive
1111
############################### Install packages ###############################
1212
RUN apt-get update -y && \
1313
apt-get install -y \
14-
python3 \
15-
python3-pip \
16-
golang
14+
python3=3.10.6-1~22.04 \
15+
python3-pip=22.0.2+dfsg-1ubuntu0.4 \
16+
golang=2:1.18~0ubuntu2
1717

1818
# Python packages
1919
RUN python3 -m pip install --upgrade pip
2020
RUN python3 -m pip install \
21-
web3==6.2.0 \
22-
requests==2.28.2 \
23-
numpy==1.24.3 \
24-
matplotlib==3.7.1 \
25-
plotly==5.14.1 \
21+
web3==6.15.1\
22+
requests==2.31.0 \
23+
numpy==1.26.4 \
24+
matplotlib==3.8.2 \
25+
plotly==5.18.0 \
2626
kaleido==0.2.1 \
27-
pandas==2.0.1 \
28-
cryptography==41.0.3
27+
pandas==2.2.0 \
28+
cryptography==42.0.2
2929

3030
# Node.js
3131
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor > /etc/apt/trusted.gpg.d/nodesource.gpg
32-
RUN echo "deb https://deb.nodesource.com/node_18.x jammy main" >> /etc/apt/sources.list.d/nodesource.list
33-
RUN echo "deb-src https://deb.nodesource.com/node_18.x jammy main" >> /etc/apt/sources.list.d/nodesource.list
32+
RUN echo "deb https://deb.nodesource.com/node_20.x jammy main" >> /etc/apt/sources.list.d/nodesource.list
33+
RUN echo "deb-src https://deb.nodesource.com/node_20.x jammy main" >> /etc/apt/sources.list.d/nodesource.list
3434
RUN apt update -y
35-
RUN apt install -y nodejs
35+
RUN apt install -y nodejs=20.5.1-deb-1nodesource1
3636

3737
# Node.js packages
38-
RUN npm install -g ganache@7.8.0
38+
RUN npm install -g ganache@7.9.2
3939

4040
# Solc compiler
41-
RUN curl -fsSL -o /bin/solc https://github.com/ethereum/solidity/releases/download/v0.8.20/solc-static-linux
41+
RUN curl -fsSL -o /bin/solc https://github.com/ethereum/solidity/releases/download/v0.8.24/solc-static-linux
4242
RUN chmod 755 /bin/solc
4343

44+
# APT clean up
45+
RUN apt-get autoremove -y
4446
RUN apt-get clean all
4547
################################################################################
4648

0 commit comments

Comments
 (0)