From 0ac6bb99b363ea3efa6177a13b4e1166c8d2387a Mon Sep 17 00:00:00 2001 From: jeff levesque Date: Thu, 11 Oct 2018 11:21:59 +0000 Subject: [PATCH] #3287: mariadb.dockerfile, temporarily add client --- dockerfile/mariadb.dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dockerfile/mariadb.dockerfile b/dockerfile/mariadb.dockerfile index 62dc2cee0..69d4cf5a6 100644 --- a/dockerfile/mariadb.dockerfile +++ b/dockerfile/mariadb.dockerfile @@ -16,11 +16,21 @@ RUN apt-get update && $PUPPET apply -e 'class { mariadb: }'\ --modulepath=$CONTRIB_MODULES:$MODULES\ --confdir=$ROOT_PUPPET/puppet +## ## define entrypoint script +## +## @mysqlclient, requires 'apt-get' + 'pip3' dependencies only during runtime: +## +## - https://raspberrypi.stackexchange.com/a/78217. +## RUN printf '#!/bin/bash\n\n\ cd $MODULES/mariadb/scripts\n\ service mysql start\n\ +apt-get install -y python3-dev libmysqlclient-dev\n\ +pip3 install mysqlclient\n\ python3 setup_tables.py $ROOT_PUPPET/puppet\n\ +apt-get remove -y python3-dev libmysqlclient-dev\n\ +pip3 uninstall -y mysqlclient\n\ service mysql stop\n\ mysqld\n\ ' > entrypoint