Skip to content

Commit 8331749

Browse files
authored
Merge pull request #15 from devilbox/release-0.13
Add arm64 for MySQL 8.0
2 parents 91e4663 + b359198 commit 8331749

File tree

3 files changed

+24
-6
lines changed

3 files changed

+24
-6
lines changed

.github/workflows/params.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,14 @@ env:
1515
[
1616
{
1717
"NAME": "mysql",
18-
"VERSION": ["5.5", "5.6", "5.7", "8.0"],
18+
"VERSION": ["5.5", "5.6", "5.7"],
1919
"ARCH": ["linux/amd64"]
2020
},
21+
{
22+
"NAME": "mysql",
23+
"VERSION": ["8.0"],
24+
"ARCH": ["linux/amd64", "linux/arm64"]
25+
},
2126
{
2227
"NAME": "mariadb",
2328
"VERSION": ["5.5", "10.0"],

Dockerfiles/mysql-8.0

+17-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# vi: ft=dockerfile
2-
FROM mysql:8.0
2+
FROM mysql:8.0-oracle
33

44
RUN set -eux \
5+
# Set Additional config directories
56
&& mkdir -p /etc/mysql/docker-default.d/ \
67
&& if [ -f /etc/my.cnf ]; then \
78
echo '!'"includedir /etc/mysql/docker-default.d/" >> /etc/my.cnf; \
@@ -11,13 +12,25 @@ RUN set -eux \
1112
echo "/etc/my.cnf and /etc/mysql/my.cnf are not available"; \
1213
false; \
1314
fi \
15+
\
1416
# Allow native password handling for MySQL 8.0
15-
&& sed -i'' 's/^\[mysqld\]/[mysqld]\ndefault-authentication-plugin=mysql_native_password/g' /etc/mysql/my.cnf \
17+
&& if [ -f /etc/my.cnf ]; then \
18+
sed -i'' 's/^\[mysqld\]/[mysqld]\ndefault-authentication-plugin=mysql_native_password/g' /etc/my.cnf; \
19+
elif [ -f /etc/mysql/my.cnf ]; then \
20+
sed -i'' 's/^\[mysqld\]/[mysqld]\ndefault-authentication-plugin=mysql_native_password/g' /etc/mysql/my.cnf; \
21+
else \
22+
echo "/etc/my.cnf and /etc/mysql/my.cnf are not available"; \
23+
false; \
24+
fi \
25+
\
26+
# Set Docker Entrypoint
1627
&& if [ -f "/entrypoint.sh" ]; then \
1728
mv "/entrypoint.sh" "/docker-entrypoint.sh"; \
18-
fi \
19-
&& if [ ! -f "/docker-entrypoint.sh" ]; then \
29+
elif [ -f "/usr/local/bin/docker-entrypoint.sh" ]; then \
2030
ln -s "/usr/local/bin/docker-entrypoint.sh" "/docker-entrypoint.sh"; \
31+
else \
32+
echo "/entrypoint.sh and /usr/local/bin/docker-entrypoint.sh are not available"; \
33+
false; \
2134
fi \
2235
&& chmod +x "/docker-entrypoint.sh"
2336

tests/02-mysqli.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ run "docker run -d --rm --platform ${ARCH} $(tty -s && echo "-it" || echo) --hos
2121

2222
# Pull PHP image
2323
echo "2/5 Pulling PHP image "
24-
while ! run "docker pull php:7.2"; do
24+
while ! run "docker pull --platform ${ARCH} php:7.2"; do
2525
sleep 1
2626
done
2727

0 commit comments

Comments
 (0)