Skip to content

Commit

Permalink
Updated versions of multiple packages in SgxSolDev
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenghaven committed Feb 13, 2024
1 parent a362b3a commit f73f77f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 22 deletions.
21 changes: 14 additions & 7 deletions SGXDev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,30 @@ RUN apt-get update -y && \
less \
net-tools \
iputils-ping \
build-essential \
git \
cmake \
python3 \
python3-pip \
curl
curl \
build-essential \
cmake=3.22.1-1ubuntu1.22.04.1 \
python3=3.10.6-1~22.04 \
python3-pip=22.0.2+dfsg-1ubuntu0.4

# SSH Server
RUN apt-get update -y && \
apt-get install -y \
openssh-server
RUN rm /etc/ssh/ssh_host_*

##########
# SGX Linux SDK
##########

ARG LINUX_SGX_VER=2.23
ARG SGX_SDK_VER=${LINUX_SGX_VER}.100.2

# SGX PSW
RUN curl \
-o /opt/sgx_debian_local_repo.tgz \
-fSL https://download.01.org/intel-sgx/sgx-linux/2.23/distro/ubuntu22.04-server/sgx_debian_local_repo.tgz
-fSL https://download.01.org/intel-sgx/sgx-linux/${LINUX_SGX_VER}/distro/ubuntu22.04-server/sgx_debian_local_repo.tgz

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

Expand Down
32 changes: 17 additions & 15 deletions SGXSolDev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,36 +11,38 @@ ENV DEBIAN_FRONTEND=noninteractive
############################### Install packages ###############################
RUN apt-get update -y && \
apt-get install -y \
python3 \
python3-pip \
golang
python3=3.10.6-1~22.04 \
python3-pip=22.0.2+dfsg-1ubuntu0.4 \
golang=2:1.18~0ubuntu2

# Python packages
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install \
web3==6.2.0 \
requests==2.28.2 \
numpy==1.24.3 \
matplotlib==3.7.1 \
plotly==5.14.1 \
web3==6.15.1\
requests==2.31.0 \
numpy==1.26.4 \
matplotlib==3.8.2 \
plotly==5.18.0 \
kaleido==0.2.1 \
pandas==2.0.1 \
cryptography==41.0.3
pandas==2.2.0 \
cryptography==42.0.2

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

# Node.js packages
RUN npm install -g ganache@7.8.0
RUN npm install -g ganache@7.9.2

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

# APT clean up
RUN apt-get autoremove -y
RUN apt-get clean all
################################################################################

Expand Down

0 comments on commit f73f77f

Please sign in to comment.