Skip to content

Commit

Permalink
#3287: mariadb.dockerfile, temporarily add client
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff1evesque committed Oct 11, 2018
1 parent d397806 commit 0ac6bb9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dockerfile/mariadb.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0ac6bb9

Please sign in to comment.