mirror of
https://github.com/linuxserver/docker-mariadb.git
synced 2026-02-20 01:01:44 +08:00
combining some installs
This commit is contained in:
parent
1a73e9c8c4
commit
4e062309c4
15
Dockerfile
15
Dockerfile
@ -14,22 +14,17 @@ ENV REPO_VER 10.0
|
||||
# set ports
|
||||
EXPOSE 3306
|
||||
|
||||
# add mariadb repo
|
||||
RUN apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db && \
|
||||
add-apt-repository "deb http://mirrors.coreix.net/mariadb/repo/$REPO_VER/ubuntu trusty main"
|
||||
|
||||
# update apt and install packages
|
||||
RUN apt-get update && \
|
||||
RUN apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db && \
|
||||
add-apt-repository "deb http://mirrors.coreix.net/mariadb/repo/$REPO_VER/ubuntu trusty main" && \
|
||||
apt-get update && \
|
||||
apt-get install \
|
||||
mariadb-server -qy && \
|
||||
mariadb-server mysqltuner -qy && \
|
||||
apt-get clean -y && \
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
# install mysqltuner
|
||||
RUN apt-get update -q && \
|
||||
apt-get install \
|
||||
mysqltuner -qy && \
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
|
||||
# Tweak my.cnf
|
||||
RUN sed -ri 's/^(bind-address|skip-networking)/;\1/' /etc/mysql/my.cnf && \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user