-
-
Notifications
You must be signed in to change notification settings - Fork 580
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
248 additions
and
97 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
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
File renamed without changes.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM alpine:3.7 | ||
|
||
ENV MYSQL_DATABASE db | ||
ENV MYSQL_USER db | ||
ENV MYSQL_PASSWORD db | ||
ENV MYSQL_ROOT_PASSWORD root | ||
|
||
# Install mariadb and other packages | ||
RUN apk add --no-cache mariadb mariadb-client bash tzdata shadow | ||
# Remove the installed version as we need to set up our own from scratch | ||
|
||
RUN rm -rf /var/lib/mysql/* /etc/mysql | ||
RUN mkdir -p /var/lib/mysql && chmod 777 /var/lib/mysql | ||
|
||
ADD files / | ||
|
||
RUN chmod ugo+x /healthcheck.sh | ||
|
||
# Security-sensitive changes: Make sure our start script can do what is needed | ||
# But make sure these are right | ||
RUN chmod ugo+wx /mnt /var/tmp | ||
RUN chmod -R ugo+wx /var/log /var/tmp/mysqlbase | ||
|
||
ENTRYPOINT ["/docker-entrypoint.sh"] | ||
|
||
EXPOSE 3306 | ||
# The following line overrides any cmd entry | ||
CMD [] | ||
HEALTHCHECK --interval=2s --retries=30 CMD ["/healthcheck.sh"] |
File renamed without changes.
Oops, something went wrong.