Skip to content

Commit ef12deb

Browse files
committed
Adjusted instruction to get mysql-client in container
1 parent 1577ede commit ef12deb

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.docker/os2forms/Dockerfile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,24 @@ FROM drupal:8-apache-buster
22

33
# Installing additional dependencies.
44
RUN set -eux; \
5-
wget https://repo.mysql.com//mysql-apt-config_0.8.13-1_all.deb
6-
dpkg -i mysql-apt-config_0.8.13-1_all.deb
75
apt update; \
86
apt install -qq -y \
97
libxml2-dev \
108
libldap2-dev \
119
git \
1210
wget \
1311
zip \
14-
mysql-client \
15-
cron; \
12+
cron \
13+
lsb-release \
14+
gnupg; \
1615
docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ && \
1716
docker-php-ext-install soap ldap
17+
# Addind mysql-client
18+
wget https://repo.mysql.com//mysql-apt-config_0.8.13-1_all.deb; \
19+
echo 4 | dpkg -i mysql-apt-config_0.8.13-1_all.deb; \
20+
apt update; \
21+
apt install -qq -y mysql-client; \
22+
echo "[client]" >> /etc/mysql/my.cnf; echo "ssl-mode=DISABLED" >> /etc/mysql/my.cnf; \
1823

1924
# Removing standard Drupal core and loading OS2Web project.
2025
WORKDIR /opt

0 commit comments

Comments
 (0)