mirror of
https://github.com/bitnami/containers.git
synced 2026-03-21 07:18:22 +08:00
Cleaner dockerfile for mariadb
This commit is contained in:
21
bitnami/mariadb/post-install.sh
Normal file
21
bitnami/mariadb/post-install.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
INSTALL_DIR=$1
|
||||
cd $INSTALL_DIR
|
||||
|
||||
# remove unneeded files
|
||||
rm -rf data scripts/myscript.sh scripts/myscript-upgrade.sh
|
||||
|
||||
# set up logging to stdout
|
||||
mkdir logs
|
||||
ln -s /dev/stdout logs/mysqld.log
|
||||
|
||||
# set up default config
|
||||
mkdir conf.defaults
|
||||
mv my.cnf conf.defaults/
|
||||
ln -s $INSTALL_DIR/conf/my.cnf my.cnf
|
||||
|
||||
# symlink mount points at root to install dir
|
||||
ln -s $INSTALL_DIR/conf /conf
|
||||
ln -s $INSTALL_DIR/data /data
|
||||
ln -s $INSTALL_DIR/logs /logs
|
||||
Reference in New Issue
Block a user