Skip to content

Commit

Permalink
with instructions again
Browse files Browse the repository at this point in the history
  • Loading branch information
whatever4711 committed Apr 4, 2024
1 parent 1a5ae3c commit bc482de
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 49 deletions.
28 changes: 14 additions & 14 deletions grpc.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ ARG image=unibaktr/ubuntu
FROM $image
WORKDIR /tmp

# RUN git clone --depth=1 -b v1.43.2 https://github.com/google/grpc.git && \
# cd grpc && \
# git submodule update --init --recursive && \
# mkdir -p cmake/build && cd cmake/build && \
# cmake ../.. && make -j$(nproc) && \
# make install && ldconfig && \
# cd ../.. && rm -Rf grpc && \
# git clone https://github.com/p4lang/PI && \
# cd PI && \
# git submodule update --init && \
# ./autogen.sh && \
# ./configure --with-proto && make -j$(nproc) && \
# make install && ldconfig && \
# cd .. && rm -Rf PI
RUN git clone --depth=1 -b v1.43.2 https://github.com/google/grpc.git && \
cd grpc && \
git submodule update --init --recursive && \
mkdir -p cmake/build && cd cmake/build && \
cmake ../.. && make -j$(nproc) && \
make install && ldconfig && \
cd ../.. && rm -Rf grpc && \
git clone https://github.com/p4lang/PI && \
cd PI && \
git submodule update --init && \
./autogen.sh && \
./configure --with-proto && make -j$(nproc) && \
make install && ldconfig && \
cd .. && rm -Rf PI
70 changes: 35 additions & 35 deletions p4.dockerfile
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
ARG image=unibaktr/ubuntu
FROM $image

# RUN apt update && \
# apt install -y \
# automake \
# bison \
# cmake \
# g++ \
# flex \
# git \
# libgc-dev \
# libgmp-dev \
# libpcap-dev \
# libboost-dev \
# libboost-test-dev \
# libboost-program-options-dev \
# libboost-system-dev \
# libboost-filesystem-dev \
# libboost-thread-dev \
# libboost-iostreams-dev \
# libboost-graph-dev \
# libevent-dev \
# libjudy-dev \
# libprotobuf-dev \
# libssl-dev \
# libtool \
# llvm \
# protobuf-compiler \
# wget && \
# apt clean && \
# rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/
RUN apt update && \
apt install -y \
automake \
bison \
cmake \
g++ \
flex \
git \
libgc-dev \
libgmp-dev \
libpcap-dev \
libboost-dev \
libboost-test-dev \
libboost-program-options-dev \
libboost-system-dev \
libboost-filesystem-dev \
libboost-thread-dev \
libboost-iostreams-dev \
libboost-graph-dev \
libevent-dev \
libjudy-dev \
libprotobuf-dev \
libssl-dev \
libtool \
llvm \
protobuf-compiler \
wget && \
apt clean && \
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/

WORKDIR /tmp

# RUN git clone --recursive https://github.com/p4lang/p4c.git && \
# cd p4c && mkdir build && cd build && \
# cmake .. && \
# make -j$(nproc) && \
# make install && ldconfig && \
# cd .. && rm -Rf p4c/
RUN git clone --recursive https://github.com/p4lang/p4c.git && \
cd p4c && mkdir build && cd build && \
cmake .. && \
make -j$(nproc) && \
make install && ldconfig && \
cd .. && rm -Rf p4c/

0 comments on commit bc482de

Please sign in to comment.