From 52a884d810c02591cf4822fda67d6d3fdc163422 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 26 Nov 2021 18:02:03 +0900 Subject: [PATCH] add mariadb --- centos8_mariadb/Dockerfile | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 centos8_mariadb/Dockerfile diff --git a/centos8_mariadb/Dockerfile b/centos8_mariadb/Dockerfile new file mode 100644 index 0000000..e23a2f9 --- /dev/null +++ b/centos8_mariadb/Dockerfile @@ -0,0 +1,34 @@ +FROM centos:8 +MAINTAINER Donfig + +# My comment here +RUN echo '1. Base packages install' +RUN dnf install -y epel-release vim glibc-langpack-ko + +RUN echo '2. Locale and Timezone environment' +ENV LANG ko_KR.utf8 +RUN echo 'LANG="$LANG"' > /etc/locale.conf +RUN unlink /etc/localtime +RUN ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime +RUN echo 'set encoding=utf-8' >> /etc/vimrc +RUN echo 'set encoding=utf-8' >> /etc/virc +RUN echo 'set fileencodings=utf-8,cp949' >> /etc/vimrc +RUN echo 'set fileencodings=utf-8,cp949' >> /etc/virc +RUN echo 'set softtabstop=4' >> /etc/vimrc +RUN echo 'set softtabstop=4' >> /etc/virc +RUN echo 'set shiftwidth=4' >> /etc/vimrc +RUN echo 'set shiftwidth=4' >> /etc/virc +RUN echo 'set tabstop=4' >> /etc/vimrc +RUN echo 'set tabstop=4' >> /etc/virc +RUN echo 'set paste' >> /etc/vimrc +RUN echo 'set paste' >> /etc/virc + +RUN echo 'export LANG="$LANG"' >> /etc/bashrc +RUN echo 'export LANGUAGE="$LANG"' >> /etc/bashrc +RUN source /etc/bashrc + +RUN echo '2. Install need Package' +RUN dnf -y install mariadb-server + +EXPOSE 3306 +CMD ["/usr/libexec/mysqld","--basedir=/usr"]