-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·33 lines (26 loc) · 1 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM centos:7
MAINTAINER "Daniel Vera" vera@genomics.fsu.edu
VOLUME /var/lib/mysql
EXPOSE 3306
ENV CGI_BIN=/var/www/cgi-bin
ENV SAMTABIXDIR=/opt/samtabix/
ENV USE_SSL=1
ENV USE_SAMTABIX=1
ENV MACHTYPE=x86_64
ENV PATH=/root/bin/x86_64:/opt/samtabix/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN yum update -y && yum install -y \
mariadb-server.x86_64 \
git
RUN echo -e '[mysqld]\n'\
'user =mysql\n'\
'datadir =/var/lib/mysql\n'\
'symbolic-links =1\n'\
'loose-local-infile =1\n'\
'default-storage-engine =MYISAM\n'\
'[mysqld_safe]\n'\
'log-error =/var/log/mariadb/mariadb.log\n'\
'pid-file =/var/run/mariadb/mariadb.pid\n'\
'socket =/var/lib/mysql/mysql.sock\n'\
> /etc/my.cnf
RUN echo -e '#!/usr/bin/env bash\nif [[ ! $(ls -A /usr/local/bin) ]]; then git clone https://github.com/fsugenomics/cruise_scripts /usr/local/bin; fi ; start_sql' > /usr/bin/start && chmod +x /usr/bin/start
CMD ["start"]