-
Notifications
You must be signed in to change notification settings - Fork 23
/
Dockerfile
56 lines (44 loc) · 1.29 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#
# MemSQL Quickstart Dockerfile
#
# https://github.com/memsql/memsql-docker-quickstart
#
FROM debian:8.6
MAINTAINER Carl Sverre <[email protected]>
RUN apt-get update && \
apt-get install -y \
libmysqlclient-dev \
mysql-client \
curl \
jq \
python-dev \
python-pip && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# install useful python packages
RUN pip install --upgrade pip
RUN pip install memsql ipython psutil
# configure locale for utf-8
RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8
# set UTC
RUN ln -sf /usr/share/zoneinfo/UTC /etc/localtime
# setup directories
RUN mkdir /memsql /memsql-ops
# download and install MemSQL Ops
# then reduce size by symlinking objdir and lib from one install to the other
COPY setup.sh /tmp/setup.sh
COPY VERSIONS /tmp/VERSIONS
RUN /tmp/setup.sh
# COPY helper scripts
COPY memsql-shell /usr/local/bin/memsql-shell
COPY check-system /usr/local/bin/check-system
COPY simple-benchmark /usr/local/bin/simple-benchmark
VOLUME ["/memsql"]
COPY memsql-entrypoint.sh /
ENTRYPOINT ["/memsql-entrypoint.sh"]
CMD ["memsqld"]
# expose ports
EXPOSE 3306
EXPOSE 9000