forked from Ericsson/CodeCompass
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docker images to Ubuntu 22.04 (Ericsson#644)
- Loading branch information
Showing
9 changed files
with
111 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/sh | ||
|
||
opt=${1:-"all"} | ||
|
||
wget https://raw.githubusercontent.com/Ericsson/CodeCompass/master/scripts/install_latest_build2.sh | ||
sh install_latest_build2.sh "/build2_install" | ||
export PATH=/build2_install/bin:$PATH | ||
# Configuring the build | ||
mkdir /odb_build | ||
cd /odb_build | ||
bpkg create --quiet --jobs $(nproc) cc \ | ||
config.cxx=g++ \ | ||
config.cc.coptions=-O3 \ | ||
config.bin.rpath=/usr/local/lib \ | ||
config.install.root=/usr/local | ||
# Getting the source | ||
bpkg add https://pkg.cppget.org/1/beta --trust-yes | ||
bpkg fetch --trust-yes | ||
# Building ODB | ||
BUILD_LIST="libodb" | ||
case $opt in | ||
"sqlite") | ||
BUILD_LIST="$BUILD_LIST libodb-sqlite" | ||
;; | ||
"pgsql") | ||
BUILD_LIST="$BUILD_LIST libodb-pgsql" | ||
;; | ||
*) | ||
BUILD_LIST="$BUILD_LIST odb libodb-sqlite libodb-pgsql" | ||
;; | ||
esac | ||
for pack in "$BUILD_LIST"; do | ||
bpkg build $pack --yes | ||
done | ||
# Install ODB (to /usr/local) | ||
INSTALL_LIST="$BUILD_LIST libstudxml libcutl" | ||
for pack in "$INSTALL_LIST"; do | ||
bpkg install $pack | ||
done | ||
# Clean up | ||
cd / | ||
sh install_latest_build2.sh --uninstall | ||
rm -rf /odb_build install_latest_build2.sh build2-toolchain-*.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
find_package(Git2 REQUIRED) | ||
find_package(LibGit2 REQUIRED) | ||
|
||
add_subdirectory(parser) | ||
add_subdirectory(service) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters