From 8dc081a8721e4ad8b2bb6b1e24b67a8d51f8ce47 Mon Sep 17 00:00:00 2001 From: toughIQ Date: Fri, 25 Aug 2017 17:10:17 +0200 Subject: [PATCH 01/22] added branch&tag info --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index e925b88..c630794 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,18 @@ Dockerized MaxScale for Galera Cluster Backend. Can be used in combination with https://github.com/toughIQ/docker-mariadb-cluster. +## Branches & Tags +There are 2 branches available, which feature __MaxScale1__ and __MaxScale2__ versions. +Since MaxScale1 is __free to use__, but MaxScale2 __needs a license from MariaDB__ in some setups, I will keep the __master__ branch with version 1.4.3 for now. This also applies to the __:latest__ tag in Docker. + +| Version | Branch | Docker Tag | +|---------|--------|------------| +| _1.4.3_ | _master_ | _latest_ | +| 1.4.3 | 1.x | 1 | +| 1.4.3 | 1.x | 1.4.3 | +| 2.1.3 | 2.x | 2 | +| 2.1.3 | 2.x | 2.1.3 | + ## Run With default settings for a 3 server configuration with default ports: From 0dec137efbca9178dd940cbd364b9096ab7b1af2 Mon Sep 17 00:00:00 2001 From: toughIQ Date: Fri, 25 Aug 2017 17:10:59 +0200 Subject: [PATCH 02/22] added branch&tag info --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index e925b88..c630794 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,18 @@ Dockerized MaxScale for Galera Cluster Backend. Can be used in combination with https://github.com/toughIQ/docker-mariadb-cluster. +## Branches & Tags +There are 2 branches available, which feature __MaxScale1__ and __MaxScale2__ versions. +Since MaxScale1 is __free to use__, but MaxScale2 __needs a license from MariaDB__ in some setups, I will keep the __master__ branch with version 1.4.3 for now. This also applies to the __:latest__ tag in Docker. + +| Version | Branch | Docker Tag | +|---------|--------|------------| +| _1.4.3_ | _master_ | _latest_ | +| 1.4.3 | 1.x | 1 | +| 1.4.3 | 1.x | 1.4.3 | +| 2.1.3 | 2.x | 2 | +| 2.1.3 | 2.x | 2.1.3 | + ## Run With default settings for a 3 server configuration with default ports: From a7388fa084cc16d4b5306f2f9d1075c4f57a54bc Mon Sep 17 00:00:00 2001 From: toughIQ Date: Wed, 4 Oct 2017 16:42:52 +0200 Subject: [PATCH 03/22] Version to 1.4.5 --- Dockerfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0213201..2fff9b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,6 @@ -FROM asosso/maxscale:1.4.3 +FROM asosso/maxscale:1.4.5 MAINTAINER toughiq@gmail.com -# bring system up2date -RUN yum update -y - # Setup for Galera Service (GS), not for Master-Slave environments # We set some defaults for config creation. Can be overwritten at runtime. From 86f6128bb6bca29119e8978353863d0a6039b5da Mon Sep 17 00:00:00 2001 From: toughIQ Date: Wed, 4 Oct 2017 16:43:53 +0200 Subject: [PATCH 04/22] version 1.4.5 --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c630794..e7e0d20 100644 --- a/README.md +++ b/README.md @@ -4,15 +4,15 @@ Can be used in combination with https://github.com/toughIQ/docker-mariadb-cluste ## Branches & Tags There are 2 branches available, which feature __MaxScale1__ and __MaxScale2__ versions. -Since MaxScale1 is __free to use__, but MaxScale2 __needs a license from MariaDB__ in some setups, I will keep the __master__ branch with version 1.4.3 for now. This also applies to the __:latest__ tag in Docker. +Since MaxScale1 is __free to use__, but MaxScale2 __needs a license from MariaDB__ in some setups, I will keep the __master__ branch with version 1.4.5 for now. This also applies to the __:latest__ tag in Docker. | Version | Branch | Docker Tag | |---------|--------|------------| -| _1.4.3_ | _master_ | _latest_ | -| 1.4.3 | 1.x | 1 | -| 1.4.3 | 1.x | 1.4.3 | -| 2.1.3 | 2.x | 2 | -| 2.1.3 | 2.x | 2.1.3 | +| _1.4.5_ | _master_ | _latest_ | +| 1.4.5 | 1.x | 1 | +| 1.4.5 | 1.x | 1.4.5 | +| 2.1.9 | 2.x | 2 | +| 2.1.9 | 2.x | 2.1.9 | ## Run With default settings for a 3 server configuration with default ports: From f2324c79b640a4ca39ac7a78948411217fdad355 Mon Sep 17 00:00:00 2001 From: toughIQ Date: Wed, 4 Oct 2017 16:45:22 +0200 Subject: [PATCH 05/22] pinned version to 1 --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index da38352..5b87f83 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ version: '2' services: maxscale: - image: toughiq/maxscale + image: toughiq/maxscale:1 ports: - 3306:3306 - 3307:3307 From ca36bacf7d8a56d8899736c80ca452ecce54770a Mon Sep 17 00:00:00 2001 From: toughIQ Date: Tue, 6 Mar 2018 12:22:00 +0100 Subject: [PATCH 06/22] added "use_sql_variables_in" parameter --- Dockerfile | 3 ++- README.md | 7 ++++++- docker-entrypoint.sh | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2fff9b0..2f40745 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,8 @@ ENV MAX_THREADS=4 \ PERSIST_POOLMAX=0 \ PERSIST_MAXTIME=3600 \ BACKEND_SERVER_LIST="server1 server2 server3" \ - BACKEND_SERVER_PORT="3306" + BACKEND_SERVER_PORT="3306" \ + USE_SQL_VARIABLES_IN="all" # We copy our config creator script to the container COPY docker-entrypoint.sh / diff --git a/README.md b/README.md index 88da9ab..d1c5afb 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,8 @@ You can build your own static image of __maxscale__, so you dont have to put you SPLITTER_PORT=4407 \ ROUTER_PORT=4408 \ BACKEND_SERVER_LIST="maria01.db maria02.db maria03.db" \ - BACKEND_SERVER_PORT="3306" + BACKEND_SERVER_PORT="3306" \ + USE_SQL_VARIABLES_IN="all" docker build -t mymaxscale . docker run -d -p 3306:4407 -p 3307:4408 mymaxscale @@ -76,6 +77,10 @@ You can build your own static image of __maxscale__, so you dont have to put you List of backend Servers MaxScale is connecting to. BACKEND_SERVER_PORT="3306" Port on which the backend servers are listening. + USE_SQL_VARIABLES_IN="all" + Should SQL variables when using `readwritesplit` be routed to all nodes or just the master. Possible values `all` of `master`. Defaults to `all` + Version 1: https://mariadb.com/kb/en/mariadb-enterprise/mariadb-maxscale-14/readwritesplit/ + Version 2: https://mariadb.com/kb/en/mariadb-enterprise/mariadb-maxscale-20-limitations-and-known-issues-within-mariadb-maxscale/ __BACKEND_SERVER_LIST__ and __MAX_PASS__ have to be set on each `docker run` or within `docker-compose.yml`, since we cannot use defaults here. diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index cffe7b3..8e72a80 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -46,6 +46,7 @@ connection_timeout=$CONNECTION_TIMEOUT user=$MAX_USER passwd=$MAX_PASS enable_root_user=$ENABLE_ROOT_USER +use_sql_variables_in=$USE_SQL_VARIABLES_IN [Splitter Listener] type=listener From 485fb1881b3ae85ba2ad5dc745ea8f74524aabfd Mon Sep 17 00:00:00 2001 From: toughIQ Date: Fri, 8 Feb 2019 16:36:09 +0100 Subject: [PATCH 07/22] added badges to readme --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index d1c5afb..f2ddbdd 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +[![Docker Pulls](https://img.shields.io/docker/pulls/toughiq/maxscale.svg)](https://hub.docker.com/r/toughiq/maxscale/) +[![](https://images.microbadger.com/badges/image/toughiq/maxscale.svg)](https://microbadger.com/images/toughiq/maxscale "Get your own image badge on microbadger.com") + # docker-maxscale Dockerized MaxScale for Galera Cluster Backend. Can be used in combination with https://github.com/toughIQ/docker-mariadb-cluster. From 6ab59fdb72f95f1b4a6641d67a62b54db18528db Mon Sep 17 00:00:00 2001 From: Christoph Mertins Date: Wed, 6 Jan 2021 09:51:19 +0100 Subject: [PATCH 08/22] add healthcheck --- .github/workflows/action.yml | 36 ++++++++++++++++++++++++++++++++++++ .project | 11 +++++++++++ Dockerfile | 5 +++++ docker-entrypoint.sh | 4 +++- getbackendservers.sh | 2 ++ healthcheck.sh | 11 +++++++++++ 6 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/action.yml create mode 100644 .project create mode 100755 getbackendservers.sh create mode 100644 healthcheck.sh diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml new file mode 100644 index 0000000..b4e428f --- /dev/null +++ b/.github/workflows/action.yml @@ -0,0 +1,36 @@ +name: MAXSCALE CI +on: + push: + branches: 2.2.5 + schedule: + - cron: '0 0 * * *' +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - + name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.CR_PAT }} + - name: Build and push to GHCRIO + id: docker_build + uses: docker/build-push-action@v2 + with: + context: . + file: ./Dockerfile + platforms: linux/amd64 + push: true + tags: | + ghcr.io/comdata/maxscale:2.2.5 + - name: Image digest + run: echo ${{ steps.docker_build.outputs.digest }} diff --git a/.project b/.project new file mode 100644 index 0000000..7793ee0 --- /dev/null +++ b/.project @@ -0,0 +1,11 @@ + + + docker-maxscale + + + + + + + + diff --git a/Dockerfile b/Dockerfile index 4be9f6c..24417c9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,9 @@ ENV MAX_THREADS=4 \ # We copy our config creator script to the container COPY docker-entrypoint.sh / +COPY getbackendserver.sh / +COPY healthcheck.sh / + # We expose our set Listener Ports EXPOSE $SPLITTER_PORT $ROUTER_PORT $CLI_PORT @@ -28,5 +31,7 @@ EXPOSE $SPLITTER_PORT $ROUTER_PORT $CLI_PORT # We define the config creator as entrypoint ENTRYPOINT ["/docker-entrypoint.sh"] +HEALTHCHECK --interval=30s CMD /healthcheck.sh + # We startup MaxScale as default command CMD ["/usr/bin/maxscale","--nodaemon"] diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 9fd1c41..e8a7125 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -5,14 +5,16 @@ set -e # if service discovery was activated, we overwrite the BACKEND_SERVER_LIST with the # results of DNS service lookup if [ -n "$DB_SERVICE_NAME" ]; then - BACKEND_SERVER_LIST=`getent hosts tasks.$DB_SERVICE_NAME|awk '{print $1}'|tr '\n' ' '` + BACKEND_SERVER_LIST=`/getbackendservers.sh` fi +echo $BACKEND_SERVER_LIST >> /tmp/configuredbackservers # We break our IP list into array IFS=', ' read -r -a backend_servers <<< "$BACKEND_SERVER_LIST" +echo "Starting for backends: $BACKEND_SERVER_LIST" config_file="/etc/maxscale.cnf" diff --git a/getbackendservers.sh b/getbackendservers.sh new file mode 100755 index 0000000..972b459 --- /dev/null +++ b/getbackendservers.sh @@ -0,0 +1,2 @@ +#!/bin/bash +getent hosts tasks.$DB_SERVICE_NAME|awk '{print $1}'|tr '\n' ' ' \ No newline at end of file diff --git a/healthcheck.sh b/healthcheck.sh new file mode 100644 index 0000000..999eec4 --- /dev/null +++ b/healthcheck.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +BACKEND_SERVER_LIST=`/getbackendservers.sh` +CONFIGURED_SERVER_LIST=`cat /tmp/configuredbackservers` + +if [[ "$BACKEND_SERVER_LIST" == "$CONFIGURED_SERVER_LIST" ]] +then + exit 0 +else + exit 1 +fi \ No newline at end of file From 87ef0cab1b77d38fce6f47c6e4c5c0db0f049fc7 Mon Sep 17 00:00:00 2001 From: Christoph Mertins Date: Wed, 6 Jan 2021 09:52:39 +0100 Subject: [PATCH 09/22] add s --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 24417c9..4d57146 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,7 @@ ENV MAX_THREADS=4 \ # We copy our config creator script to the container COPY docker-entrypoint.sh / -COPY getbackendserver.sh / +COPY getbackendservers.sh / COPY healthcheck.sh / From 17a00dc3b67defff103e6d8a0f48c1c2009050fb Mon Sep 17 00:00:00 2001 From: Christoph Mertins Date: Wed, 6 Jan 2021 10:03:07 +0100 Subject: [PATCH 10/22] fix permissions --- docker-entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index e8a7125..80a22f2 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -2,6 +2,9 @@ set -e +chmod +x /getbackendservers.sh /healthcheck.sh + + # if service discovery was activated, we overwrite the BACKEND_SERVER_LIST with the # results of DNS service lookup if [ -n "$DB_SERVICE_NAME" ]; then From c5932416edea2f22e5133e66542d3ee055bb623c Mon Sep 17 00:00:00 2001 From: Christoph Mertins Date: Wed, 6 Jan 2021 10:03:18 +0100 Subject: [PATCH 11/22] fix permissions --- healthcheck.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 healthcheck.sh diff --git a/healthcheck.sh b/healthcheck.sh old mode 100644 new mode 100755 From ee8cb24027b8d0e90275a75c68799503b40b96d6 Mon Sep 17 00:00:00 2001 From: Christoph Mertins Date: Wed, 6 Jan 2021 10:07:55 +0100 Subject: [PATCH 12/22] chmod --- Dockerfile | 1 + docker-entrypoint.sh | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4d57146..aec5df0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,6 +23,7 @@ ENV MAX_THREADS=4 \ COPY docker-entrypoint.sh / COPY getbackendservers.sh / COPY healthcheck.sh / +RUN chmod +x /getbackendservers.sh /healthcheck.sh # We expose our set Listener Ports diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 80a22f2..1726330 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -2,8 +2,6 @@ set -e -chmod +x /getbackendservers.sh /healthcheck.sh - # if service discovery was activated, we overwrite the BACKEND_SERVER_LIST with the # results of DNS service lookup From b89a4b4baf69edd7e8e08fb900e71cdda88544e1 Mon Sep 17 00:00:00 2001 From: Christoph Mertins Date: Wed, 6 Jan 2021 10:09:21 +0100 Subject: [PATCH 13/22] no chmod --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index aec5df0..0a17bed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,7 +23,7 @@ ENV MAX_THREADS=4 \ COPY docker-entrypoint.sh / COPY getbackendservers.sh / COPY healthcheck.sh / -RUN chmod +x /getbackendservers.sh /healthcheck.sh +#RUN chmod +x /getbackendservers.sh /healthcheck.sh # We expose our set Listener Ports From f1e93dc412270d5c5b9043ef1aea9f1a07196946 Mon Sep 17 00:00:00 2001 From: Christoph Mertins Date: Wed, 6 Jan 2021 10:18:21 +0100 Subject: [PATCH 14/22] add sorting --- getbackendservers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getbackendservers.sh b/getbackendservers.sh index 972b459..414a75e 100755 --- a/getbackendservers.sh +++ b/getbackendservers.sh @@ -1,2 +1,2 @@ #!/bin/bash -getent hosts tasks.$DB_SERVICE_NAME|awk '{print $1}'|tr '\n' ' ' \ No newline at end of file +getent hosts tasks.$DB_SERVICE_NAME|awk '{print $1}'|sort|tr '\n' ' ' \ No newline at end of file From 15233c3bbf75d44fefbfb3ca86a207f8f32fb7c5 Mon Sep 17 00:00:00 2001 From: Christoph Mertins Date: Wed, 6 Jan 2021 10:36:04 +0100 Subject: [PATCH 15/22] healthcheck --- healthcheck.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/healthcheck.sh b/healthcheck.sh index 999eec4..494c959 100755 --- a/healthcheck.sh +++ b/healthcheck.sh @@ -7,5 +7,6 @@ if [[ "$BACKEND_SERVER_LIST" == "$CONFIGURED_SERVER_LIST" ]] then exit 0 else + echo "$BACKEND_SERVER_LIST - $CONFIGURED_SERVER_LIST" exit 1 fi \ No newline at end of file From 98568e79d32aebc088e0a115e7a33171aed50122 Mon Sep 17 00:00:00 2001 From: Christoph Mertins Date: Wed, 6 Jan 2021 10:43:30 +0100 Subject: [PATCH 16/22] trim \n --- healthcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/healthcheck.sh b/healthcheck.sh index 494c959..ed84a86 100755 --- a/healthcheck.sh +++ b/healthcheck.sh @@ -1,7 +1,7 @@ #!/bin/bash BACKEND_SERVER_LIST=`/getbackendservers.sh` -CONFIGURED_SERVER_LIST=`cat /tmp/configuredbackservers` +CONFIGURED_SERVER_LIST=`cat /tmp/configuredbackservers|xargs` if [[ "$BACKEND_SERVER_LIST" == "$CONFIGURED_SERVER_LIST" ]] then From 889a4089c14ee23cf05a6e241db9b26a0109f978 Mon Sep 17 00:00:00 2001 From: Christoph Mertins Date: Wed, 6 Jan 2021 10:49:23 +0100 Subject: [PATCH 17/22] xargs --- healthcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/healthcheck.sh b/healthcheck.sh index ed84a86..00dd17a 100755 --- a/healthcheck.sh +++ b/healthcheck.sh @@ -1,6 +1,6 @@ #!/bin/bash -BACKEND_SERVER_LIST=`/getbackendservers.sh` +BACKEND_SERVER_LIST=`/getbackendservers.sh|xargs` CONFIGURED_SERVER_LIST=`cat /tmp/configuredbackservers|xargs` if [[ "$BACKEND_SERVER_LIST" == "$CONFIGURED_SERVER_LIST" ]] From b4b7228dd682fe1e4b8d945b2a97e98358455fda Mon Sep 17 00:00:00 2001 From: Christoph Mertins Date: Wed, 6 Jan 2021 11:20:10 +0100 Subject: [PATCH 18/22] log to stdout --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0a17bed..c6221af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,4 +35,4 @@ ENTRYPOINT ["/docker-entrypoint.sh"] HEALTHCHECK --interval=30s CMD /healthcheck.sh # We startup MaxScale as default command -CMD ["/usr/bin/maxscale","--nodaemon"] +CMD ["/usr/bin/maxscale","--log=stdout", "--nodaemon"] From fdff86720e3b8f808a5b73bbf07d935932143249 Mon Sep 17 00:00:00 2001 From: Christoph Mertins Date: Wed, 6 Jan 2021 11:22:12 +0100 Subject: [PATCH 19/22] add caching --- .github/workflows/action.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index b4e428f..c7b3dee 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -10,13 +10,20 @@ jobs: steps: - uses: actions/checkout@v2 - + - + name: Cache Docker layers + uses: actions/cache@v2 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx- + - name: Set up QEMU uses: docker/setup-qemu-action@v1 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - - - name: Login to GitHub Container Registry + - name: Login to GitHub Container Registry uses: docker/login-action@v1 with: registry: ghcr.io @@ -32,5 +39,7 @@ jobs: push: true tags: | ghcr.io/comdata/maxscale:2.2.5 + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache - name: Image digest run: echo ${{ steps.docker_build.outputs.digest }} From 0695bf745606a5a00991fcff8d6c84d75cf49d78 Mon Sep 17 00:00:00 2001 From: Christoph Mertins Date: Wed, 6 Jan 2021 15:09:40 +0100 Subject: [PATCH 20/22] check every 5s --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c6221af..925ba81 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,7 +32,7 @@ EXPOSE $SPLITTER_PORT $ROUTER_PORT $CLI_PORT # We define the config creator as entrypoint ENTRYPOINT ["/docker-entrypoint.sh"] -HEALTHCHECK --interval=30s CMD /healthcheck.sh +HEALTHCHECK --interval=5s CMD /healthcheck.sh # We startup MaxScale as default command CMD ["/usr/bin/maxscale","--log=stdout", "--nodaemon"] From da0b449cd5988ac5a11b49a72a9a54bdff88f346 Mon Sep 17 00:00:00 2001 From: Christoph Mertins Date: Wed, 6 Jan 2021 20:00:24 +0100 Subject: [PATCH 21/22] 1.4.5 maxscale --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 925ba81..b08f856 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM asosso/maxscale:2.2.5 +FROM asosso/maxscale:1.4.5 MAINTAINER toughiq@gmail.com # Setup for Galera Service (GS), not for Master-Slave environments From d8bbc25e5ecbc3fb1d5f2742c4b0968d5dd7c147 Mon Sep 17 00:00:00 2001 From: Christoph Mertins Date: Wed, 6 Jan 2021 20:04:04 +0100 Subject: [PATCH 22/22] remove "--log=stdout", --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b08f856..cfbfc77 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,4 +35,5 @@ ENTRYPOINT ["/docker-entrypoint.sh"] HEALTHCHECK --interval=5s CMD /healthcheck.sh # We startup MaxScale as default command -CMD ["/usr/bin/maxscale","--log=stdout", "--nodaemon"] +CMD ["/usr/bin/maxscale", "--nodaemon"] +#"--log=stdout",