vitess.io/vitess@v0.16.2/docker/orchestrator/Dockerfile (about) 1 # Copyright 2019 The Vitess Authors. 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 FROM debian:jessie 16 17 # Install Percona XtraDB Cluster (Galera) 18 RUN apt-key adv --keyserver keys.gnupg.net --recv-keys 9334A25F8507EFA5 && \ 19 echo 'deb http://repo.percona.com/apt jessie main' > /etc/apt/sources.list.d/mysql.list && \ 20 apt-get update && \ 21 DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ 22 percona-xtradb-cluster-server-5.6 && \ 23 rm -rf /var/lib/apt/lists/* 24 25 # Set up Orchestrator database 26 RUN service mysql start && \ 27 mysql -e "CREATE DATABASE orchestrator; GRANT ALL PRIVILEGES ON orchestrator.* TO 'orc_server_user'@'127.0.0.1' IDENTIFIED BY 'orc_server_user_password'" && \ 28 service mysql stop 29 30 # Copy Orchestrator files (placed in workdir by build.sh) 31 COPY vtctlclient /usr/bin/vtctlclient 32 COPY orchestrator /usr/bin/orchestrator 33 COPY orchestrator.conf.json /orc/conf/orchestrator.conf.json 34 COPY resources /orc/resources 35 36 WORKDIR /orc 37 CMD ["/usr/bin/orchestrator", "http"] 38