From: Alviro Iskandar Setiawan <[email protected]>
To: Ammar Faizi <[email protected]>
Cc: "GNU/Weeb Mailing List" <[email protected]>,
Hazmi Alfarizqi <[email protected]>,
Hazmi Alfarizqi <[email protected]>,
Alviro Iskandar Setiawan <[email protected]>
Subject: Re: [PATCH server-a001 v1 2/2] Install MySQL server
Date: Sun, 17 Apr 2022 20:52:44 +0700 [thread overview]
Message-ID: <CAOG64qPSKsukTkJ=k5hzCiiQAa1ASyOEfXAo4hFOnX2HXkssSQ@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
On Sun, Apr 17, 2022 at 8:45 PM Ammar Faizi <[email protected]> wrote:
> On 4/17/22 8:34 PM, Alviro Iskandar Setiawan wrote:
> > On Sun, Apr 17, 2022 at 8:26 PM Ammar Faizi <[email protected]> wrote:
> >> On 4/17/22 8:06 PM, Alviro Iskandar Setiawan wrote:
> > [...]
> >>> Also, it needs persistent storage, container is temporary, but our
> >>> database is permanent???
> >>
> >> This is not a Dockerfile problem, it's a container problem. Which is
> >> done at `docker run`. So there is no relevance with mounting host's
> >> directory.
> >>
> >> The change is about Dockerfile. And we don't use a docker-compose.yml
> >> here. I don't see the need to involve that. Yes? No? Comment?
> >
> > Yes, but how do you tell other maintainers to mount the volume
> > correctly if you don't provide any mechanism in doing this? You should
> > tell us how to run it too!
>
> OK, I understand your concern.
>
> The database file that needs to be persistent lives in /var/lib/mysql.
>
> So:
>
> docker run -v $HOST_DIR_FOR_MYSQL_DATA:/var/lib/mysql ...
>
> something like that...
>
> I will provide something for it in the v2. Anyway, since the mysql user
> is managed by a database as well, this will be persistent across docker
> run too. Hence, it's the host responsibility to retain the mysql users.
I don't think we should retain mysql users! This may break with
different database versions, the "mysql" table is an internal thing
that shouldn't be exported. User setup should always be re-done at
initialization. Maybe you can put it in docker-entrypoint.sh????
-- Viro
next prev parent reply other threads:[~2022-04-17 13:52 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-17 12:51 [PATCH server-a001 v1 0/2] Install net-tools and MySQL server Ammar Faizi
2022-04-17 12:51 ` [PATCH server-a001 v1 1/2] Install net-tools Ammar Faizi
2022-04-17 13:13 ` Alviro Iskandar Setiawan
2022-04-18 17:00 ` Hazmi Alfarizqi
2022-04-17 12:51 ` [PATCH server-a001 v1 2/2] Install MySQL server Ammar Faizi
2022-04-17 13:06 ` Alviro Iskandar Setiawan
2022-04-17 13:26 ` Ammar Faizi
2022-04-17 13:34 ` Alviro Iskandar Setiawan
2022-04-17 13:44 ` Ammar Faizi
2022-04-17 13:52 ` Alviro Iskandar Setiawan [this message]
2022-04-17 14:02 ` Ammar Faizi
2022-04-17 14:17 ` Alviro Iskandar Setiawan
2022-04-17 14:57 ` Ammar Faizi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAOG64qPSKsukTkJ=k5hzCiiQAa1ASyOEfXAo4hFOnX2HXkssSQ@mail.gmail.com' \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox