Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docker images to Ubuntu 22.04 #644

Merged
merged 17 commits into from
Nov 22, 2023

Conversation

mozesl
Copy link
Collaborator

@mozesl mozesl commented Oct 10, 2023

All 3 docker images were updated to Ubuntu 22.04. Thrift and ODB were manually built inside the dev container and then packaged because their official Ubuntu repository versions don't work with the codebase. (Thrift can be installed from the repo once it's updated to 0.16 #630)
Looking for feedback and suggestions on how to handle the relatively big pre-built packages. Also more extensive testing.
Closes #632

@mcserep mcserep added Kind: Refactor 🔃 Target: Developer environment Developer environment issues consist of CodeCompass or 3rd-party build tooling, configuration or CI. labels Oct 11, 2023
CMakeLists.txt Show resolved Hide resolved
docker/dev/Dockerfile Outdated Show resolved Hide resolved
plugins/git/CMakeLists.txt Outdated Show resolved Hide resolved
docker/runtime/Dockerfile Outdated Show resolved Hide resolved
plugins/cpp/parser/CMakeLists.txt Outdated Show resolved Hide resolved
revert renaming of libgit2 and recombine apt installs,
remove ugly LLVM version setting, add LLVM_DIR to env variables instead
@mcserep mcserep marked this pull request as ready for review October 25, 2023 12:52
Copy link
Collaborator

@mcserep mcserep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating the MR! Only some minor remarks left.

esac
bpkg install --all --recursive
# Copy to /usr
cp -rn /odb_install/* /usr
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conventionally the /usr folder is for files installed through the package manager. Locally compiled programs should go to /usr/local.

Therefore, simply /usr/local should be given as the install path and no copying is needed.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have discussed on the weekly meeting, that this could also be a valid approach. However, I have further doubts, as the install folder could also contain symlinks. If those are not relative, but absolute, copying them would result in invalid links. Therefore installing directly into /usr/local/ would still be preferred.

docker/dev/install_thrift.sh Outdated Show resolved Hide resolved
@mcserep
Copy link
Collaborator

mcserep commented Nov 11, 2023

The DEB files should be removed from the PR. Apart from that, and the issues mentioned above, it looks good and ready to merge 🚀

@mcserep mcserep merged commit 54837b8 into Ericsson:master Nov 22, 2023
7 checks passed
@mozesl mozesl deleted the feature/ubuntu22-docker branch November 25, 2023 11:32
@mcserep mcserep modified the milestone: Release Gershwin Feb 27, 2024
wbqpk3 pushed a commit to wbqpk3/CodeCompass that referenced this pull request Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Kind: Refactor 🔃 Target: Developer environment Developer environment issues consist of CodeCompass or 3rd-party build tooling, configuration or CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Docker images to Ubuntu 22.04
3 participants