-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3582 from youtube/helm
Update Helm Chart
- Loading branch information
Showing
14 changed files
with
1,284 additions
and
965 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
FROM vitess/base AS base | ||
|
||
FROM debian:stretch-slim | ||
|
||
# Set up Vitess environment (just enough to run pre-built Go binaries) | ||
ENV VTROOT /vt | ||
ENV VTDATAROOT /vtdataroot | ||
ENV VTTOP /vt/src/github.com/youtube/vitess | ||
|
||
# Prepare directory structure. | ||
RUN mkdir -p /vt && \ | ||
mkdir -p /vt/bin && \ | ||
mkdir -p /vt/config && \ | ||
mkdir -p /vt/web && \ | ||
mkdir -p /vtdataroot/tabletdata | ||
|
||
# Copy CA certs for https calls | ||
COPY --from=base /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | ||
|
||
# Copy binaries | ||
COPY --from=base /vt/bin/mysqlctld /vt/bin/ | ||
COPY --from=base /vt/bin/vtctld /vt/bin/ | ||
COPY --from=base /vt/bin/vtctl /vt/bin/ | ||
COPY --from=base /vt/bin/vtgate /vt/bin/ | ||
COPY --from=base /vt/bin/vttablet /vt/bin/ | ||
COPY --from=base /vt/bin/vtworker /vt/bin/ | ||
|
||
# copy web admin files | ||
COPY --from=base $VTTOP/web /vt/web/ | ||
|
||
# copy vitess config | ||
COPY --from=base $VTTOP/config/init_db.sql /vt/config/ | ||
|
||
# mysql flavor files for db specific .cnf settings | ||
COPY --from=base $VTTOP/config/mycnf/master_mysql56.cnf /vt/config/mycnf/ | ||
COPY --from=base $VTTOP/config/mycnf/master_mariadb.cnf /vt/config/mycnf/ | ||
|
||
# settings for different types of instances | ||
COPY --from=base $VTTOP/config/mycnf/default.cnf /vt/config/mycnf/ | ||
COPY --from=base $VTTOP/config/mycnf/master.cnf /vt/config/mycnf/ | ||
COPY --from=base $VTTOP/config/mycnf/replica.cnf /vt/config/mycnf/ | ||
COPY --from=base $VTTOP/config/mycnf/rdonly.cnf /vt/config/mycnf/ | ||
COPY --from=base $VTTOP/config/mycnf/backup.cnf /vt/config/mycnf/ | ||
|
||
# settings to support rbr | ||
COPY --from=base $VTTOP/config/mycnf/rbr.cnf /vt/config/mycnf/ | ||
|
||
# add vitess user and add permissions | ||
RUN groupadd -r --gid 999 vitess && useradd -r -g vitess --uid 999 vitess && \ | ||
chown -R vitess:vitess /vt; | ||
|
||
# TODO: remove when https://github.com/youtube/vitess/issues/3553 is fixed | ||
RUN apt-get update && \ | ||
apt-get upgrade -qq && \ | ||
apt-get install mysql-client -qq --no-install-recommends && \ | ||
apt-get autoremove && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.