-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathDockerfile
More file actions
60 lines (52 loc) · 1.62 KB
/
Copy pathDockerfile
File metadata and controls
60 lines (52 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# To build use:
# docker build -t oebuild .
FROM amd64/debian:bullseye-20220509
LABEL description="linux build environment for sgx."
COPY apt.conf sources.list /etc/apt/
RUN mkdir /src && \
apt-get update && \
apt-get -y install \
gpg \
gnupg2 \
wget \
software-properties-common \
clang-11 \
libssl-dev \
gdb \
libprotobuf17 \
openjdk-17-jdk-headless \
libtool \
bison \
automake \
flex \
libcurl4 \
afl++ \
afl++-clang \
valgrind \
pkg-config \
pip && \
pip install pbtools==0.45.2
COPY sgx.sources.list ms.sources.list /etc/apt/sources.list.d/
# ms and intel repos keep old packages around,
# however if they remove some of these in the future
# binary packages can be retrieved from github releases
RUN wget -qO - https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | apt-key add - && \
wget -qO - https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \
apt-get update && \
apt -y install \
libsgx-ae-id-enclave=1.15.100.3-focal1 \
libsgx-ae-pce=2.18.101.1-focal1 \
libsgx-ae-qe3=1.15.100.3-focal1 \
libsgx-dcap-ql=1.15.100.3-focal1 \
libsgx-dcap-ql-dev=1.15.100.3-focal1 \
libsgx-enclave-common=2.18.101.1-focal1 \
libsgx-headers=2.18.101.1-focal1 \
libsgx-pce-logic=1.15.100.3-focal1 \
libsgx-qe3-logic=1.15.100.3-focal1 \
libsgx-urts=2.18.101.1-focal1 \
open-enclave=0.18.4
ENV PATH="/opt/openenclave/bin:${PATH}"
ENV JAVA_HOME="/usr/lib/jvm/java-17-openjdk-amd64"
ENV PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/opt/openenclave/share/pkgconfig"
WORKDIR /src
CMD ["/bin/bash"]