Not the answer you need?
Register and ask your own question!

Installing Percona server automatically without prompt

ZazouZazou EntrantInactive User Role Beginner
Hey guys !

I'm trying to automate the install of percona-server-server and percona-server-client, in a docker container (in the dockerfile)

I have an issue with silencing the prompt for root password. Is there any way to skip this prompt ? Here is what I've tried so far with no success.

RUN echo "deb http://repo.percona.com/apt jessie main" > /etc/apt/sources.list.d/percona-release.list \
    && apt-get -y install mysql-server \
    && apt-key adv --keyserver keys.gnupg.net --recv-keys 8507EFA5 \
    && apt-get update \
    && echo "percona-server-server-5.6 percona-server-server/root_password password root" | debconf-set-selections \
    && echo "percona-server-server-5.6 percona-server-server/root_password_again password root" | debconf-set-selections \
    && DEBIAN_FRONTEND=noninteractive apt-get install -qq -y percona-server-server-5.6 percona-server-client-5.6
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.