upgrade to mariadb-10.1.13-5 (#7)

* upgrade to gcr.io/stacksmith-images/ubuntu:14.04-r06

* upgrade to mariadb-10.1.13-2

* create custom database with `MARIADB_DATABASE` env

* create custom user with `MARIADB_USER` env

* tests: Can create custom database with password for root

* can specify password for root with `MARIADB_ROOT_PASSWORD`

* upgrade to `mariadb-10.1.13-3`

* fixed test to create custom database with password for root

* organize dockerfile

* `chown` the volume only when `harpoon start` is the CMD

The `mysql` user is created when `harpoon initialize` is called. Until
that time we cannot use `mysql` user in `chown` commands.

* adds env vars to configure master/slave replication

* bump version to mariadb-10.1.13-4

* tests: added master/slave replication tests

* bump version to `mariadb-10.1.13-4`

* tests: fixed for changes in `mariadb-10.1.13-5`

Since `mariadb-10.1.13-5` the root user password can only be set using
the `MARIADB_ROOT_PASSWORD` environment variable.

* tests: added slave recovery test

* readme updated
This commit is contained in:
Sameer Naik
2016-05-06 16:59:53 +05:30
parent de66df2292
commit f1199b0bbb
4 changed files with 578 additions and 58 deletions

View File

@@ -1,24 +1,17 @@
FROM gcr.io/stacksmith-images/ubuntu:14.04-r05
FROM gcr.io/stacksmith-images/ubuntu:14.04-r06
MAINTAINER Bitnami <containers@bitnami.com>
ENV BITNAMI_APP_NAME=mariadb \
BITNAMI_APP_VERSION=10.1.12-0 \
BITNAMI_APP_CHECKSUM=9789082a1e01a4411198136477723288736d5ad5990403a208423b39369c8aac \
ENV BITNAMI_IMAGE_VERSION=10.1.13-r1 \
BITNAMI_APP_NAME=mariadb \
BITNAMI_APP_USER=mysql
# Install supporting modules
RUN bitnami-pkg install base-functions-1.0.0-2 --checksum 9789082a1e01a4411198136477723288736d5ad5990403a208423b39369c8aac
# Install application
RUN bitnami-pkg unpack $BITNAMI_APP_NAME-$BITNAMI_APP_VERSION --checksum $BITNAMI_APP_CHECKSUM
RUN bitnami-pkg unpack mariadb-10.1.13-5 --checksum 480f6cbf1372eafcbff912731033bb948ac2ee6608a927a02581a6fc8394ba67
ENV PATH=/opt/bitnami/$BITNAMI_APP_NAME/sbin:/opt/bitnami/$BITNAMI_APP_NAME/bin:$PATH
# Setting entry point
COPY rootfs/ /
ENTRYPOINT ["/app-entrypoint.sh"]
CMD ["harpoon", "start", "--foreground", "mariadb"]
# Exposing ports
EXPOSE 3306
VOLUME ["/bitnami/$BITNAMI_APP_NAME"]
EXPOSE 3306