-
Notifications
You must be signed in to change notification settings - Fork 52
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
# which wants the mariadb | ||
wget -qO- https://repo.mysql.com/RPM-GPG-KEY-mysql-2023 > /etc/apt/trusted.gpg.d/mysql.asc && \ | ||
echo "deb https://repo.mysql.com/apt/debian/ bullseye mysql-8.0" >> /etc/apt/sources.list && \ | ||
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 commentThe reason will be displayed to describe this comment to others. Learn more. nit: |
||
|
||
COPY --from=planner /app/recipe.json recipe.json | ||
RUN cargo chef cook --release --no-default-features --features=syncstorage-db/$DATABASE_BACKEND --features=py_verifier --recipe-path recipe.json | ||
|
@@ -29,15 +27,8 @@ COPY --from=cacher /app/target /app/target | |
COPY --from=cacher $CARGO_HOME /app/$CARGO_HOME | ||
|
||
RUN \ | ||
# Fetch and load the MySQL public key | ||
wget -qO- https://repo.mysql.com/RPM-GPG-KEY-mysql-2023 > /etc/apt/trusted.gpg.d/mysql.asc && \ | ||
echo "deb https://repo.mysql.com/apt/debian/ bullseye mysql-8.0" >> /etc/apt/sources.list && \ | ||
# mysql_pubkey.asc from: | ||
# https://dev.mysql.com/doc/refman/8.0/en/checking-gpg-signature.html | ||
# related: | ||
# https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/#repo-qg-apt-repo-manual-setup | ||
apt-get -q update && \ | ||
apt-get -q install -y --no-install-recommends libmysqlclient-dev cmake golang-go python3-dev python3-pip python3-setuptools python3-wheel && \ | ||
apt-get -q install -y --no-install-recommends libmariadb-dev-compat libmariadb-dev cmake golang-go python3-dev python3-pip python3-setuptools python3-wheel && \ | ||
pip3 install -r requirements.txt && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
|
@@ -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 commentThe 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 -q update && \ | ||
# and ca-certificates needed for https://repo.mysql.com | ||
apt-get install -y gnupg ca-certificates wget && \ | ||
# Fetch and load the MySQL public key | ||
echo "deb https://repo.mysql.com/apt/debian/ bullseye mysql-8.0" >> /etc/apt/sources.list && \ | ||
wget -qO- https://repo.mysql.com/RPM-GPG-KEY-mysql-2023 > /etc/apt/trusted.gpg.d/mysql.asc && \ | ||
# update again now that we trust repo.mysql.com | ||
apt-get -q update && \ | ||
apt-get -q install -y build-essential libmysqlclient-dev libssl-dev libffi-dev libcurl4 python3-dev python3-pip python3-setuptools python3-wheel cargo curl jq && \ | ||
apt-get -q install -y build-essential libmariadb-dev-compat libmariadb-dev libssl-dev libffi-dev libcurl4 python3-dev python3-pip python3-setuptools python3-wheel cargo curl jq && \ | ||
# The python3-cryptography debian package installs version 2.6.1, but we | ||
# we want to use the version specified in requirements.txt. To do this, | ||
# we have to remove the python3-cryptography package here. | ||
|
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