Closed cedvan closed 8 years ago
i'm using the mysql package from the official ubuntu repos, which dues to the LTS nature of the ubuntu release is pinned to 5.5
. I could switch to the official mysql repos for the updated mysql versions or maybe fork the repo and create a sameersbn/mariadb
image instead and use https://downloads.mariadb.org/mariadb/repositories/ instead.
Ok :smiley:
You can install mysql with a targeted release :
Dockerfile sample
...
ENV MYSQL_MASTER_VERSION 5.6
ENV MYSQL_VERSION ${MYSQL_MASTER_VERSION}.31
ENV MYSQL_USER=mysql
ENV MYSQL_DATA_DIR=/var/lib/mysql
ENV MYSQL_RUN_DIR=/run/mysqld
ENV MYSQL_LOG_DIR=/var/log/mysql
# Install Mysql requirements
RUN apt-get update -qq \
&& apt-get install -qqy \
psmisc \
libnuma1 \
libaio1 \
apparmor
# Install MySQL
RUN cd /tmp \
&& wget http://dev.mysql.com/get/Downloads/MySQL-${MYSQL_MASTER_VERSION}/mysql-common_${MYSQL_VERSION}-1ubuntu14.04_amd64.deb \
&& wget http://dev.mysql.com/get/Downloads/MySQL-${MYSQL_MASTER_VERSION}/mysql-community-client_${MYSQL_VERSION}-1ubuntu14.04_amd64.deb \
&& wget http://dev.mysql.com/get/Downloads/MySQL-${MYSQL_MASTER_VERSION}/mysql-client_${MYSQL_VERSION}-1ubuntu14.04_amd64.deb \
&& wget http://dev.mysql.com/get/Downloads/MySQL-${MYSQL_MASTER_VERSION}/mysql-community-server_${MYSQL_VERSION}-1ubuntu14.04_amd64.deb \
&& wget http://dev.mysql.com/get/Downloads/MySQL-${MYSQL_MASTER_VERSION}/mysql-server_${MYSQL_VERSION}-1ubuntu14.04_amd64.deb \
&& sudo dpkg -i mysql-common_${MYSQL_VERSION}-1ubuntu14.04_amd64.deb \
&& sudo dpkg -i mysql-community-client_${MYSQL_VERSION}-1ubuntu14.04_amd64.deb \
&& sudo dpkg -i mysql-client_${MYSQL_VERSION}-1ubuntu14.04_amd64.deb \
&& sudo dpkg -i mysql-community-server_${MYSQL_VERSION}-1ubuntu14.04_amd64.deb \
&& sudo dpkg -i mysql-server_${MYSQL_VERSION}-1ubuntu14.04_amd64.deb \
&& rm -f /tmp/*
...
Hi,
Why do not you create releases ?
Thanks for great job !