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

Added Dockerfile.cs.template file #513

Open
wants to merge 29 commits into
base: master
Choose a base branch
from

Conversation

MdSahil-oss
Copy link
Contributor

Initiated work on #457

MdSahil-oss and others added 29 commits June 12, 2023 00:46
Signed-off-by: MdSahil-oss <Mohdssahil1@gmail.com>
Signed-off-by: sahil <mohdssahil1@gmail.com>
Signed-off-by: sahil <mohdssahil1@gmail.com>
- Using `jq -r` makes removing quotes from strings unnecessary
- Overhaul jq script of mariaversion() to identify a milestone's latest version
'versions.json' contains information about the versions available in this repo. It is managed by `./update.sh`; there's no need to edit this file manually, just run `./update.sh`.
- Using `jq -r` makes removing quotes from strings unnecessary
- Overhaul jq script of mariaversion() to identify a milestone's latest version
'versions.json' contains information about the versions available in this repo. It is managed by `./update.sh`; there's no need to edit this file manually, just run `./update.sh`.
…althcheck --connect

healthcheck@{127.0.0.1,::1,localhost} users are granted USAGE by default, which
is enough for the non-replication healthchecks in healtcheck.sh.

The env variable MARIADB_HEALTHCHECK_GRANTS can replace USAGE with any
comma separated set of grants.

On initialization a generated password is created and saved in
$DATADIR/.my-healthcheck.cnf along with the server port and socket. If the
command args or default configuration file changes this may become out
of date. Because the password is generated in configuration file the
'#', comment, and '=' characters cannot be part of this password.

The healthcheck.cnf configuration file also sets protocol=tcp to
enforce indirectly that --connect being a standard part of the test. This is
required as starts of the service under --skip-networking should
never be considered healthy.

The healthcheck script also has the --defaults-extra-file set to this
.my-healthcheck.cnf file, if it exists (backwards compatible on
previously created datadirs), so that all new healthcheck invokations
use the authentication here by default.

The compatibility with old instances, without the .my-healthcheck.cnf is
preserved by non setting --defaults-extra-file.

The healthcheck --connect will increment the server status variable Aborted_connects
for each check, however now connection_error* counts are changed.

This also prevents any invalid password errors showing up in the
container log.

Closes MariaDB#430
s390x database initialization was slow (thanks @tianon).

We don't use it, so fake its existance so debian install scripts
don't consume the intensive part of the installation.

[1] docker-library/official-images#14923
The 50-mariadb_safe.cnf file exposed a syslog configuration
that got picked up by Galera SST scripts. These would push
output to /dev/log which doesn't exist in containers.
This is so someone that wants debug info packages just
needs to apt-get install mariadb-server-core{-10.X}-dbgsym to
get the right packages after and apt-get update.
Signed-off-by: Md Sahil <mohdssahil1@gmail.com>
Signed-off-by: Md Sahil <mohdssahil1@gmail.com>
Signed-off-by: Md Sahil <mohdssahil1@gmail.com>
Signed-off-by: Md Sahil <mohdssahil1@gmail.com>
Signed-off-by: Md Sahil <mohdssahil1@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants