FROM docker.io/centos:7 ENV LANG en_US.UTF-8 ENV LC_ALL C RUN yum -y update RUN yum -y install epel-release RUN yum -y install which openssh-server openssh-clients less RUN yum -y install expect perl perl-DBI openssl zlib file sudo \ libaio rsync snappy net-tools numactl-libs nmap perl-DBD-MySQL jemalloc # MariaDB ColumnStore installation # https://mariadb.com/kb/en/library/preparing-for-columnstore-installation-122/ # https://mariadb.com/kb/en/library/installing-mariadb-ax-mariadb-columnstore-from-the-package-repositories-11x/ COPY yum.repos.d/*.repo /etc/yum.repos.d/ RUN yum -y --enablerepo=mariadb-columnstore clean metadata RUN yum -y groups mark remove "MariaDB ColumnStore" RUN yum -y groupinstall "MariaDB ColumnStore" # RUN yum -y --enablerepo=mariadb-columnstore-api clean metadata # RUN yum -y groupinstall "MariaDB ColumnStore API" RUN yum -y --enablerepo=mariadb-columnstore-tools clean metadata RUN yum -y install mariadb-columnstore-tools # RUN yum -y --enablerepo=mariadb-maxscale clean metadata # RUN yum -y install maxscale maxscale-cdc-connector # RUN yum -y --enablerepo=mariadb-columnstore-data-adapters clean metadata # RUN yum -y install mariadb-columnstore-maxscale-cdc-adapters # RUN yum -y install mariadb-columnstore-kafka-adapters # MariaDB ColumnStore quick configuration # https://mariadb.com/kb/en/library/installing-and-configuring-a-single-server-columnstore-system-12x/#mariadb-columnstore-quick-installer-for-a-single-server-system RUN /usr/local/mariadb/columnstore/bin/quick_installer_single_server.sh # User sample RUN groupadd sample RUN useradd -g sample -G wheel sample RUN echo sample | passwd --stdin sample RUN echo 'sample ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers # TODO Configure MariaDB EXPOSE 22 3306 # To execute timedatectl and systemctl successfully, make sure: # - run with -d, --privileged and /sbin/init, without -it # - exec with -it # For example: # docker run --privileged -d --name sampledb -p 2222:22 -p 3306:3306 sampleteam/sampledb:0.1 /sbin/init # docker exec -it sampledb bash CMD timedatectl set-timezone Asia/Tokyo CMD systemctl start sshd.service CMD mcsadmin startSystem # For SSH, you have to delete line like # [127.0.0.1]:2222 ecdsa-sha2-nistp256 XXXXXX... # in ~/.ssh/known_hosts to connect to the container for every time # you run the new one.