-
Notifications
You must be signed in to change notification settings - Fork 48
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
chore: Switch to libmariadb-dev #1635
base: master
Are you sure you want to change the base?
Conversation
ff8a17c
to
4205542
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this. I'm fine switching to mariadb for a lot of reasons, it just hasn't come up as a priority for the team.
apt-get -q update && \ | ||
apt-get -q install -y --no-install-recommends libmysqlclient-dev cmake | ||
apt-get -q install -y --no-install-recommends libmariadb-dev-compat libmariadb-dev cmake |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: libmariadb-dev
is superfluous w/ libmariadb-dev-compat
(which depends on it)
@@ -11,12 +11,10 @@ ARG DATABASE_BACKEND=spanner | |||
|
|||
# cmake is required to build grpcio-sys for Spanner builds | |||
RUN \ | |||
# Fetch and load the MySQL public key. We need to install libmysqlclient-dev to build syncstorage-rs | |||
# We need to install libmariadb-dev to build syncstorage-rs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can kill this comment entirely
@@ -65,16 +56,9 @@ RUN \ | |||
RUN \ | |||
groupadd --gid 10001 app && \ | |||
useradd --uid 10001 --gid 10001 --home /app --create-home app && \ | |||
# first, an apt-get update is required for gnupg, which is required for apt-key adv | |||
# first, an apt-get update is required for the packages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please kill this comment entirely as well (it was explaining the previous need for calling apt-get update
twice here)
(For reference: where we originally moved away from maria's client: #1435 ) |
Description
The MySQL repository causes issues when trying to build for other architectures (non-existent MySQL binaries), therefore the MariaDB packages should instead be used. This has been successfully tested on arm64.
Testing
Build on all relevant architectures (x86, arm64, ...).