* use Dockerfile on building DB container
* use hostfiles as start folder
This commit is contained in:
@ -69,7 +69,8 @@ services:
|
|||||||
- user_known_hosts
|
- user_known_hosts
|
||||||
- composer_auth
|
- composer_auth
|
||||||
db:
|
db:
|
||||||
image: mariadb:11.8.5
|
build:
|
||||||
|
context: ./dockerfiles/db
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: 123456
|
MYSQL_ROOT_PASSWORD: 123456
|
||||||
|
|||||||
@ -1,9 +1,11 @@
|
|||||||
FROM mariadb
|
FROM mariadb:11
|
||||||
|
|
||||||
RUN apt update && apt install -y locales
|
#RUN apt update && apt install -y locales
|
||||||
|
#
|
||||||
|
#RUN sed -i 's/# ru_RU.UTF-8/ru_RU.UTF-8/' /etc/locale.gen
|
||||||
|
#
|
||||||
|
#RUN locale-gen
|
||||||
|
#
|
||||||
|
#RUN echo "export LANG=ru_RU.UTF-8" > /root/.bashrc
|
||||||
|
|
||||||
RUN sed -i 's/# ru_RU.UTF-8/ru_RU.UTF-8/' /etc/locale.gen
|
RUN echo 'cd /hostfiles 2>/dev/null || true' >> /root/.bashrc
|
||||||
|
|
||||||
RUN locale-gen
|
|
||||||
|
|
||||||
RUN echo "export LANG=ru_RU.UTF-8" > /root/.bashrc
|
|
||||||
Reference in New Issue
Block a user