added bashrc to mysql container

This commit is contained in:
Bachir Soussi Chiadmi 2019-01-28 14:25:11 +01:00
parent 04bfc68b6b
commit 314bec979e
4 changed files with 9 additions and 3 deletions

4
Docker/mysql/bashrc Normal file
View File

@ -0,0 +1,4 @@
PS1='\e[36m\e[1mMYSQL\e[0m:\e[90m\w\e[0m\n$ '
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'

View File

@ -1,7 +1,5 @@
FROM php:7.0-fpm
COPY ./php-custom.ini /usr/local/etc/php/conf.d/php-custom.ini
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
@ -31,5 +29,7 @@ RUN export COMPOSER_HOME=/usr/local/composer && \
-L -o /usr/local/bin/drush && \
chmod +x /usr/local/bin/drush
COPY ./php-custom.ini /usr/local/etc/php/conf.d/php-custom.ini
COPY ./bashrc /root/.bashrc
COPY ./inputrc /root/.inputrc

View File

@ -1,3 +1,3 @@
memory_limit = 512M
memory_limit = 1024M
upload_max_filesize = 50M
post_max_size = 50M

View File

@ -6,6 +6,7 @@ services:
volumes:
- db-data:/var/lib/mysql
- ./Docker/mysql/mysql.cnf:/etc/mysql/conf.d/custom.cnf:ro
- ./Docker/mysql/bashrc:/root/.bashrc:ro
# - "${DB_IMPORTE_FILE_D8}:/docker-entrypoint-initdb.d/materio_d8.sql"
networks:
- database
@ -21,6 +22,7 @@ services:
volumes:
- db-data-legacy:/var/lib/mysql
- ./Docker/mysql/mysql.cnf:/etc/mysql/conf.d/custom.cnf:ro
- ./Docker/mysql/bashrc:/root/.bashrc:ro
- "${DB_IMPORTE_FILE_D7}:/docker-entrypoint-initdb.d/materio_d7.sql"
networks:
- database