Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
oai-cn5g-common-build
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
cn5g
oai-cn5g-common-build
Compare revisions
0968c25ea2414dac69181dc57a23ee17848c3111 to 57ec65dc9feb53cf673169a23a1a0e1ba476415c
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
oai/cn5g/oai-cn5g-common-build
Select target project
No results found
57ec65dc9feb53cf673169a23a1a0e1ba476415c
Select Git revision
Swap
Target
oai/cn5g/oai-cn5g-common-build
Select target project
limx1980/oai-cn5g-common-build
oai/cn5g/oai-cn5g-common-build
2 results
0968c25ea2414dac69181dc57a23ee17848c3111
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
feat(build): add odb script for pcf pcc rule db mapping
· b23da3b1
Lukas Rotheneder
authored
7 months ago
b23da3b1
ODB install requires sudo on non-docker and non-root linux environment
· 57ec65dc
Tariro Mukute
authored
2 months ago
57ec65dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
installation/build_helper.odb
+76
-0
76 additions, 0 deletions
installation/build_helper.odb
with
76 additions
and
0 deletions
installation/build_helper.odb
0 → 100644
View file @
57ec65dc
################################################################################
# Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The OpenAirInterface Software Alliance licenses this file to You under
# the OAI Public License, Version 1.1 (the "License"); you may not use this file
# except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.openairinterface.org/?page_id=698
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
# For more information about the OpenAirInterface (OAI) Software Alliance:
# contact@openairinterface.org
################################################################################
#-------------------------------------------------------------------------------
#arg1 is force (0 or 1) (no interactive script)
#arg2 is debug (0 or 1) (install debug libraries)
install_odb() {
echo "Starting to install odb"
if [ $1 -eq 0 ]; then
read -p "Do you want to install odb ? <y/N> " prompt
OPTION=""
else
prompt='y'
OPTION="-y"
fi
if [[ $prompt =~ [yY](es)* ]]
then
C_URL=https://download.build2.org/0.17.0/build2-install-0.17.0.sh
echo "Install ODB runtime library from $C_URL"
pushd /tmp
if [[ $prompt =~ [yY](es)* ]]
then
$SUDO rm -rf build2
fi
mkdir build2 && cd build2
curl -sSfO $C_URL
echo "download done"
sleep 4
sh build2-install-0.17.0.sh --yes --no-bdep --no-modules --trust yes
echo "build2 installation complete"
sleep 4
which bpkg
sleep 4
cd ..
echo "Starting to install odb"
mkdir odb-build && cd odb-build
bpkg create -d libodb-gcc cc \
config.cxx=g++ \
config.cc.coptions=-O3 \
config.install.root=/usr/local
cd libodb-gcc
echo "Build odb runtime libraries"
bpkg add https://pkg.cppget.org/1/beta
bpkg fetch --trust-yes
bpkg build libodb --yes
bpkg build libodb-mysql --yes
echo "Install odb runtime libraries"
sleep 4
$SUDO bpkg install --all --recursive
fi
echo "odb installation complete"
return 0
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.