I want to run docker builds from a jenkis server, in case of this I want to specify some Inputs like passwords or path in the dockerfile as variables.
Is there a way to specify parameters for the docker build command and use this parameters as variables?
A case would be the mysql root password.
echo "mysql-server mysql-server/root_password password <<VARIABLE>>" | sudo debconf-set-selections
echo "mysql-server mysql-server/root_password_again password <<VARIABLE>>" | sudo debconf-set-selections
Thanks for your help