-
-
Save jimbaker/636ca00740493e976c660698502aab93 to your computer and use it in GitHub Desktop.
Use MariaDB 10.1 instead
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Dockerfile b/Dockerfile | |
index a676127..6399613 100644 | |
--- a/Dockerfile | |
+++ b/Dockerfile | |
@@ -24,8 +24,13 @@ FROM ubuntu:16.04 | |
# File Author / Maintainer | |
MAINTAINER Sulochan Acharya | |
+ | |
# Install required software and tools | |
-RUN apt-get update \ | |
+ | |
+RUN apt-get install software-properties-common \ | |
+ && apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 \ | |
+ && add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://mirrors.syringanetworks.net/mariadb/repo/10.1/ubuntu xenial main' \ | |
+ && apt-get update \ | |
&& apt-get install -y \ | |
gcc \ | |
git \ | |
@@ -41,7 +46,7 @@ ADD https://bootstrap.pypa.io/get-pip.py /root/get-pip.py | |
RUN python3.5 /root/get-pip.py | |
# Install Mariadb | |
-RUN apt-get install -y mariadb-server mariadb-client | |
+RUN DEBIAN_FRONTEND=noninteractive apt-get install -y mariadb-server mariadb-client | |
# Install MySQL-python | |
RUN apt-get install -y libmysqlclient-dev python-mysqldb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment