Skip to content

Commit bf7f665

Browse files
update
Trying the apt-get again using the `/usr/bin/protoc` as the install folder.
1 parent 4a31084 commit bf7f665

1 file changed

Lines changed: 28 additions & 16 deletions

File tree

Tools/CI/run_cmb_service.sh

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -62,35 +62,47 @@ echo "Starting with echo server on port: $echo_port and the cmb service on port:
6262

6363
# Protocol Buffer Compiler ------------------------------------------------------
6464

65-
# Install Protocol Buffer Compiler (1st attempt)
66-
# apt-get install -y protobuf-compiler
65+
echo "Updating modules..."
66+
apt-get update
67+
68+
# Install Protocol Buffer Compiler (using apt-get)
69+
echo "Installing protocol bufffer compiler..."
70+
apt-get install -y protobuf-compiler
71+
72+
# Add the PROTOC environment variable for Protocol Buffer Compiler
73+
export PROTOC="/usr/bin/protoc"
74+
echo "Set PROTOC = $PROTOC"
75+
76+
# Add the Protocol Buffer Compiler install location to the PATH
77+
export PATH="$PROTOC:$PATH"
78+
echo "\n Set PATH = $PATH"
6779

6880
# Download the protocol buffer release for linux
69-
echo "Downloading protocol bufffer compiler..."
70-
PB_REL="https://github.com/protocolbuffers/protobuf/releases"
71-
curl -LO $PB_REL/download/v31.1/protoc-31.1-linux-x86_64.zip
81+
# echo "Downloading protocol bufffer compiler..."
82+
# PB_REL="https://github.com/protocolbuffers/protobuf/releases"
83+
# curl -LO $PB_REL/download/v31.1/protoc-31.1-linux-x86_64.zip
7284

7385
# Create target folder to unzip protoc binaries.
74-
echo "Creating protocol bufffer folder..."
75-
mkdir -p protoc
76-
protoc_path="./protoc"
77-
folder_path=$(realpath "$protoc_path")
86+
# echo "Creating protocol bufffer folder..."
87+
# mkdir -p protoc
88+
# protoc_path="./protoc"
89+
# folder_path=$(realpath "$protoc_path")
7890

79-
echo "Unzipping to folder path of protoc: $folder_path"
91+
# echo "Unzipping to folder path of protoc: $folder_path"
8092

8193
# extract binaries to protoc folder
82-
unzip protoc-31.1-linux-x86_64.zip -d $folder_path
94+
# unzip protoc-31.1-linux-x86_64.zip -d $folder_path
8395

8496
# changing the execute permissions of the protoc folder
85-
chmod -R 755 ./protoc
97+
# chmod -R 755 ./protoc
8698

8799
# Add the PROTOC environment variable for Protocol Buffer Compiler
88-
export PROTOC="$folder_path/bin"
89-
echo "Set PROTOC = $PROTOC"
100+
# export PROTOC="$folder_path/bin"
101+
# echo "Set PROTOC = $PROTOC"
90102

91103
# Add the Protocol Buffer Compiler install location to the PATH
92-
export PATH="$folder_path/bin:$PATH"
93-
echo "\n Set PATH = $PATH"
104+
# export PATH="$folder_path/bin:$PATH"
105+
# echo "\n Set PATH = $PATH"
94106

95107
# clone the cmb service repo
96108
git clone https://github.com/Unity-Technologies/mps-common-multiplayer-backend.git

0 commit comments

Comments
 (0)