Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit 5112ff6

Browse files
authored
Merge pull request #202 from jdeathe/centos-7-mysql57-community-develop
Release changes for 2.1.1
2 parents c3a09b7 + ae9b2a4 commit 5112ff6

File tree

5 files changed

+32
-21
lines changed

5 files changed

+32
-21
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ Summary of release changes for Version 2.
66

77
CentOS-7 7.5.1804 x86_64 - MySQL 5.7 Community Server.
88

9+
### 2.1.1 - 2018-11-18
10+
11+
- Updates source image to [2.4.1](https://github.com/jdeathe/centos-ssh/releases/tag/2.4.1).
12+
- Adds missing error messages to internal healthcheck.
13+
914
### 2.1.0 - 2018-08-23
1015

1116
- Updates source image to [2.4.0](https://github.com/jdeathe/centos-ssh/releases/tag/2.4.0).

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# CentOS-7, MySQL 5.7 Community Server
55
#
66
# =============================================================================
7-
FROM jdeathe/centos-ssh:2.4.0
7+
FROM jdeathe/centos-ssh:2.4.1
88

99
# -----------------------------------------------------------------------------
1010
# Install MySQL
@@ -83,7 +83,7 @@ ENV MYSQL_AUTOSTART_MYSQLD_BOOTSTRAP=true \
8383
# -----------------------------------------------------------------------------
8484
# Set image metadata
8585
# -----------------------------------------------------------------------------
86-
ARG RELEASE_VERSION="2.1.0"
86+
ARG RELEASE_VERSION="2.1.1"
8787
LABEL \
8888
maintainer="James Deathe <james.deathe@gmail.com>" \
8989
install="docker run \

README.md

+18-18
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ Includes Automated password generation and an option for custom initialisation S
99

1010
## Overview & links
1111

12-
The latest CentOS-7 based release can be pulled from the `centos-7-mysql57-community` Docker tag. It is recommended to select a specific release tag - the convention is `centos-7-mysql57-community-2.1.0` or `2.1.0` for the [2.1.0](https://github.com/jdeathe/centos-ssh-mysql/tree/2.1.0) release tag.
12+
The latest CentOS-7 based release can be pulled from the `centos-7-mysql57-community` Docker tag. It is recommended to select a specific release tag - the convention is `centos-7-mysql57-community-2.1.1` or `2.1.1` for the [2.1.1](https://github.com/jdeathe/centos-ssh-mysql/tree/2.1.1) release tag.
1313

1414
### Tags and respective `Dockerfile` links
1515

16-
- `centos-7-mysql57-community`, `centos-7-mysql57-community-2.1.0`, `2.1.0` [(centos-7-mysql57-community/Dockerfile)](https://github.com/jdeathe/centos-ssh-mysql/blob/centos-7-mysql57-community/Dockerfile)
17-
- `centos-6`, `centos-6-1.9.0`, `1.9.0` [(centos-6/Dockerfile)](https://github.com/jdeathe/centos-ssh-mysql/blob/centos-6/Dockerfile)
16+
- `centos-7-mysql57-community`, `centos-7-mysql57-community-2.1.1`, `2.1.1` [(centos-7-mysql57-community/Dockerfile)](https://github.com/jdeathe/centos-ssh-mysql/blob/centos-7-mysql57-community/Dockerfile)
17+
- `centos-6`, `centos-6-1.9.1`, `1.9.1` [(centos-6/Dockerfile)](https://github.com/jdeathe/centos-ssh-mysql/blob/centos-6/Dockerfile)
1818

1919
The Dockerfile can be used to build a base image that is the bases for several other docker images.
2020

@@ -43,7 +43,7 @@ $ docker run -d \
4343
--name mysql.pool-1.1.1 \
4444
-p 3306:3306 \
4545
-v /var/lib/mysql \
46-
jdeathe/centos-ssh-mysql:2.1.0
46+
jdeathe/centos-ssh-mysql:2.1.1
4747
```
4848

4949
Now you can verify it is initialised and running successfully by inspecting the container's logs.
@@ -114,10 +114,10 @@ $ docker run \
114114
--rm \
115115
--privileged \
116116
--volume /:/media/root \
117-
jdeathe/centos-ssh-mysql:2.1.0 \
117+
jdeathe/centos-ssh-mysql:2.1.1 \
118118
/usr/sbin/scmi install \
119119
--chroot=/media/root \
120-
--tag=2.1.0 \
120+
--tag=2.1.1 \
121121
--name=mysql.pool-1.1.1 \
122122
--setopt='--volume {{NAME}}.data-mysql:/var/lib/mysql'
123123
```
@@ -131,10 +131,10 @@ $ docker run \
131131
--rm \
132132
--privileged \
133133
--volume /:/media/root \
134-
jdeathe/centos-ssh-mysql:2.1.0 \
134+
jdeathe/centos-ssh-mysql:2.1.1 \
135135
/usr/sbin/scmi uninstall \
136136
--chroot=/media/root \
137-
--tag=2.1.0 \
137+
--tag=2.1.1 \
138138
--name=mysql.pool-1.1.1 \
139139
--setopt='--volume {{NAME}}.data-mysql:/var/lib/mysql'
140140
```
@@ -148,10 +148,10 @@ $ docker run \
148148
--rm \
149149
--privileged \
150150
--volume /:/media/root \
151-
jdeathe/centos-ssh-mysql:2.1.0 \
151+
jdeathe/centos-ssh-mysql:2.1.1 \
152152
/usr/sbin/scmi install \
153153
--chroot=/media/root \
154-
--tag=2.1.0 \
154+
--tag=2.1.1 \
155155
--name=mysql.pool-1.1.1 \
156156
--manager=systemd \
157157
--register \
@@ -178,7 +178,7 @@ To see detailed information about the image run `scmi` with the `--info` option.
178178
$ eval "sudo -E $(
179179
docker inspect \
180180
-f "{{.ContainerConfig.Labels.install}}" \
181-
jdeathe/centos-ssh-mysql:2.1.0
181+
jdeathe/centos-ssh-mysql:2.1.1
182182
) --info"
183183
```
184184

@@ -188,7 +188,7 @@ To perform an installation using the docker name `mysql.pool-1.2.1` simply use t
188188
$ eval "sudo -E $(
189189
docker inspect \
190190
-f "{{.ContainerConfig.Labels.install}}" \
191-
jdeathe/centos-ssh-mysql:2.1.0
191+
jdeathe/centos-ssh-mysql:2.1.1
192192
) --name=mysql.pool-1.2.1"
193193
```
194194

@@ -198,7 +198,7 @@ To uninstall use the *same command* that was used to install but with the `unins
198198
$ eval "sudo -E $(
199199
docker inspect \
200200
-f "{{.ContainerConfig.Labels.uninstall}}" \
201-
jdeathe/centos-ssh-mysql:2.1.0
201+
jdeathe/centos-ssh-mysql:2.1.1
202202
) --name=mysql.pool-1.2.1"
203203
```
204204

@@ -211,7 +211,7 @@ To see detailed information about the image run `scmi` with the `--info` option.
211211
```
212212
$ sudo -E atomic install \
213213
-n mysql.pool-1.3.1 \
214-
jdeathe/centos-ssh-mysql:2.1.0 \
214+
jdeathe/centos-ssh-mysql:2.1.1 \
215215
--info
216216
```
217217

@@ -220,14 +220,14 @@ To perform an installation using the docker name `mysql.pool-1.3.1` simply use t
220220
```
221221
$ sudo -E atomic install \
222222
-n mysql.pool-1.3.1 \
223-
jdeathe/centos-ssh-mysql:2.1.0
223+
jdeathe/centos-ssh-mysql:2.1.1
224224
```
225225

226226
Alternatively, you could use the `scmi` options `--name` or `-n` for naming the container.
227227

228228
```
229229
$ sudo -E atomic install \
230-
jdeathe/centos-ssh-mysql:2.1.0 \
230+
jdeathe/centos-ssh-mysql:2.1.1 \
231231
--name mysql.pool-1.3.1
232232
```
233233

@@ -236,7 +236,7 @@ To uninstall use the *same command* that was used to install but with the `unins
236236
```
237237
$ sudo -E atomic uninstall \
238238
-n mysql.pool-1.3.1 \
239-
jdeathe/centos-ssh-mysql:2.1.0
239+
jdeathe/centos-ssh-mysql:2.1.1
240240
```
241241

242242
#### Using environment variables
@@ -255,7 +255,7 @@ $ docker run \
255255
--env "MYSQL_USER_PASSWORD=" \
256256
--env "MYSQL_USER_DATABASE=app-db" \
257257
--volume mysql.pool-1.1.1.data-mysql:/var/lib/mysql \
258-
jdeathe/centos-ssh-mysql:2.1.0
258+
jdeathe/centos-ssh-mysql:2.1.1
259259
```
260260

261261
The environmental variable `MYSQL_SUBNET` is optional but can be used to generate users with access to databases outside the `localhost`, (the default for the root user). In the example, the subnet definition `0.0.0.0/0.0.0.0` allows connections from any network which is equivalent to the wildcard symbol, `%`, in MySQL GRANT definitions.

src/etc/systemd/system/centos-ssh-mysql@.service

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Environment="DOCKER_USER=jdeathe"
5252
Environment="DOCKER_IMAGE_NAME=centos-ssh-mysql"
5353
Environment="DOCKER_CONTAINER_OPTS="
5454
Environment="DOCKER_IMAGE_PACKAGE_PATH=/var/opt/scmi/packages"
55-
Environment="DOCKER_IMAGE_TAG=2.1.0"
55+
Environment="DOCKER_IMAGE_TAG=2.1.1"
5656
Environment="DOCKER_PORT_MAP_TCP_3306=3306"
5757
Environment="MYSQL_AUTOSTART_MYSQLD_BOOTSTRAP=true"
5858
Environment="MYSQL_AUTOSTART_MYSQLD_WRAPPER=true"

src/usr/bin/healthcheck

+6
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,9 @@ function main ()
235235
if [[ -e /var/lock/subsys/mysqld-bootstrap ]] \
236236
|| ! __is_mysql_data_directory_populated
237237
then
238+
__print_message \
239+
"error" \
240+
"Bootstrap failed to complete."
238241
exit 1
239242
fi
240243
fi
@@ -244,6 +247,9 @@ function main ()
244247
if ! ps axo command \
245248
| grep -qE "^${MYSQLD} "
246249
then
250+
__print_message \
251+
"error" \
252+
"Service process not running."
247253
exit 1
248254
fi
249255

0 commit comments

Comments
 (0)