Skip to content

Commit 5f8665a

Browse files
rut-gitmiryamW
authored andcommitted
HSM: Preparation for integration
1 parent c40080d commit 5f8665a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+2305
-1954
lines changed

Dockerfile

Lines changed: 0 additions & 32 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

hsm/Dockerfile

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
FROM ubuntu:20.04
2+
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
3+
build-essential \
4+
cmake \
5+
libgtest-dev \
6+
g++ \
7+
make \
8+
libgmp-dev \
9+
curl \
10+
libprotobuf-dev \
11+
protobuf-compiler \
12+
git \
13+
libtool \
14+
autoconf \
15+
ca-certificates \
16+
&& apt-get clean \
17+
&& rm -rf /var/lib/apt/lists/*
18+
# Clone gRPC and install it
19+
RUN git config --global http.sslVerify false && \
20+
git clone -b v1.41.1 --recursive https://github.com/grpc/grpc /grpc && \
21+
cd /grpc && \
22+
mkdir -p cmake/build && cd cmake/build && \
23+
cmake ../.. && \
24+
make && make install
25+
# התקן protobuf
26+
RUN git clone https://github.com/protocolbuffers/protobuf.git && \
27+
cd protobuf && \
28+
git checkout v3.18.1 && \
29+
git submodule update --init --recursive && \
30+
./autogen.sh && \
31+
./configure && \
32+
make && \
33+
make install && \
34+
ldconfig
35+
# הגדר את תיקיית העבודה בתוך הקונטיינר
36+
WORKDIR /app
37+
# העתק את תוכן התיקייה הנוכחית לתוך הקונטיינר בכתובת /app
38+
COPY . .
39+
# צור תיקיית build
40+
RUN rm -rf build && mkdir build
41+
# שנה לתיקיית build
42+
WORKDIR /app/build
43+
# התקן את Google Test
44+
RUN cd /usr/src/gtest && cmake CMakeLists.txt && make && \
45+
find /usr/src/gtest -name "*.a" -exec cp {} /usr/lib \;
46+
# בנה את הפרויקט באמצעות CMake ו-Make
47+
RUN cmake .. -DUSE_SYCL=OFF -DUSE_DEBUG=OFF
48+
RUN make
49+
# פקודה להריץ את השרת (אופציונלי)
50+
CMD ["./grpc_server"]
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)