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

Updated mongo and conan versions #1684

Merged
merged 13 commits into from
Mar 16, 2021
Merged

Updated mongo and conan versions #1684

merged 13 commits into from
Mar 16, 2021

Conversation

aalonsog
Copy link
Member

@aalonsog aalonsog commented Mar 4, 2021

The original objective of this PR was to update the MongoDB version installed by Licode scripts to MongoDB v4. This is needed for supporting the new implementation of transactions included in commit a9a29f8.

However, during the update I discovered an Erizo installation issue raised by the incompatibility of the current versions of bzip2 and conan. Thus, I decided to update also the conan version to 1.34. This update implicates the modification of how the conan compiler is passed to the format_include_paths function. This is why I've also modified conanfile.py.

Summarising the PR modifies the following:

  • Updated MongoDB version installed by installUbuntuDeps.sh to MongoDB 4 and changed installation for using binaries (installation using package manager crashed the docker image compilation due to systemd requirement).
  • Updated conan version installed by installUbuntuDeps.sh to conan 1.34
  • Updated conanfile.py for being compatible with the new conan version

[] It needs and includes Unit Tests

Changes in Client or Server public APIs

[] It includes documentation for these changes in /doc.

Copy link
Contributor

@lodoyun lodoyun left a comment

Choose a reason for hiding this comment

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

This looks good. I do have a couple of suggestions to make the new mongo installation less problematic.

sudo apt-get install -y libcurl4 openssl liblzma5
wget -P $LIB_DIR https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2004-4.4.4.tgz
tar -zxvf $LIB_DIR/mongodb-linux-x86_64-ubuntu2004-4.4.4.tgz -C $LIB_DIR
sudo cp $LIB_DIR/mongodb-linux-x86_64-ubuntu2004-4.4.4/bin/* /usr/local/bin/
Copy link
Contributor

Choose a reason for hiding this comment

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

would symbolic links work? I don't particularly like copying the binaries there when they may change.
Also, this may create new problems with anyone that already has a mongo version installed. We could consider using a suffix or a preffix for the binaries. For every other thing I think we either use a ubuntu package or we keep it in LIB_DIR without affecting /usr/bin or /usr/lib

Copy link
Contributor

Choose a reason for hiding this comment

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

I would also add a way to clean everything up in the cleanup function

Copy link
Member Author

Choose a reason for hiding this comment

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

Done!! Thanks for the suggestion :)

Copy link
Contributor

@jcague jcague left a comment

Choose a reason for hiding this comment

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

LGTM!

@aalonsog aalonsog merged commit 007d29f into lynckia:master Mar 16, 2021
Arri98 pushed a commit to Arri98/licode that referenced this pull request Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants