-
Notifications
You must be signed in to change notification settings - Fork 17
/
clustercontrol.dockerfile
executable file
·35 lines (28 loc) · 1.09 KB
/
clustercontrol.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
#!/usr/bin/env -S docker build --compress -t pvtmert/clustercontrol -f
FROM debian:9
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update
RUN apt install -y \
lsb-release wget python dmidecode bc gnupg software-properties-common procps
WORKDIR /data
ADD https://severalnines.com/scripts/install-cc?tO8kqTiuINLDD3AnjLvIkPc_RawPCNwCavdHZYZglYY, install-cc
RUN echo "mysql-server mysql-server/root_password password mypassword" | debconf-set-selections
RUN echo "mysql-server mysql-server/root_password_again password mypassword" | debconf-set-selections
ENV S9S_ROOT_PASSWORD 1234
ENV S9S_CMON_PASSWORD 1234
ENV INNODB_BUFFER_POOL_SIZE 16
RUN apt install -y mysql-server
RUN bash install-cc
RUN a2enmod proxy proxy_http proxy_wstunnel
CMD true && \
service mysql start; \
service apache-htcacheclean start; \
service apache2 start; \
service cgmanager start; \
service cgproxy start; \
service cmon start; \
service cmon-ssh start; \
service cmon-cloud start; \
service cmon-events start; \
service --status-all; \
tail -f /var/log/cmon.log /var/log/apache2/access.log