Skip to content

Commit e735fc1

Browse files
committed
fix dependencies in docker images
1 parent fdf75ab commit e735fc1

File tree

6 files changed

+56
-6
lines changed

6 files changed

+56
-6
lines changed

docker/images/mysqlbinlog-centos7/Dockerfile

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,23 @@ FROM centos:7
22

33
MAINTAINER Miro Stauder <[email protected]>
44

5+
# fix keys
6+
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
7+
8+
# fix repos
9+
#RUN sed -i 's/mirrorlist/#mirrorlist/' /etc/yum.repos.d/CentOS-*.repo
10+
#RUN sed -i 's/#baseurl/baseurl/' /etc/yum.repos.d/CentOS-*.repo
11+
#RUN sed -i 's/mirror./vault./' /etc/yum.repos.d/CentOS-*.repo
12+
13+
RUN yum -y update
14+
15+
# dependencies
16+
RUN yum -y install \
17+
boost-system
18+
519
# copy package from context
620
COPY proxysql-mysqlbinlog-*.rpm ./
721
RUN rpm -i proxysql-mysqlbinlog-*.rpm && \
822
rm -f proxysql-mysqlbinlog-*.rpm
923

10-
CMD ["/bin/sh" "-c" "/bin/proxysql_binlog_reader -h \"${MYSQL_HOST:-127.0.0.1}\" -u \"${MYSQL_USER:=root}\" -p \"${MYSQL_PASSWORD:-root}\" -P \"${MYSQL_PORT:-3306}\" -i \"${LISTEN_ADDR:-0.0.0.0}\" -l \"${LISTEN_PORT:-6020}\" -f"]
24+
CMD ["sh", "-c", "proxysql_binlog_reader -h \"${MYSQL_HOST:-127.0.0.1}\" -u \"${MYSQL_USER:=root}\" -p \"${MYSQL_PASSWORD:-root}\" -P \"${MYSQL_PORT:-3306}\" -l \"${LISTEN_PORT:-6020}\" -f"]

docker/images/mysqlbinlog-centos8/Dockerfile

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,23 @@ FROM centos:8
22

33
MAINTAINER Miro Stauder <[email protected]>
44

5+
# fix keys
6+
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
7+
8+
# fix repos
9+
RUN sed -i 's/mirrorlist/#mirrorlist/' /etc/yum.repos.d/CentOS-*.repo
10+
RUN sed -i 's/#baseurl/baseurl/' /etc/yum.repos.d/CentOS-*.repo
11+
RUN sed -i 's/mirror./vault./' /etc/yum.repos.d/CentOS-*.repo
12+
13+
RUN yum -y update
14+
15+
# dependencies
16+
RUN yum -y install \
17+
boost-system
18+
519
# copy package from context
620
COPY proxysql-mysqlbinlog-*.rpm ./
721
RUN rpm -i proxysql-mysqlbinlog-*.rpm && \
822
rm -f proxysql-mysqlbinlog-*.rpm
923

10-
CMD ["/bin/sh" "-c" "/bin/proxysql_binlog_reader -h \"${MYSQL_HOST:-127.0.0.1}\" -u \"${MYSQL_USER:=root}\" -p \"${MYSQL_PASSWORD:-root}\" -P \"${MYSQL_PORT:-3306}\" -i \"${LISTEN_ADDR:-0.0.0.0}\" -l \"${LISTEN_PORT:-6020}\" -f"]
24+
CMD ["sh", "-c", "proxysql_binlog_reader -h \"${MYSQL_HOST:-127.0.0.1}\" -u \"${MYSQL_USER:=root}\" -p \"${MYSQL_PASSWORD:-root}\" -P \"${MYSQL_PORT:-3306}\" -l \"${LISTEN_PORT:-6020}\" -f"]

docker/images/mysqlbinlog-debian10/Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@ FROM debian:10
22

33
MAINTAINER Miro Stauder <[email protected]>
44

5+
# dependencies
6+
RUN apt-get -y update && \
7+
apt-get -y install \
8+
libssl1.1 \
9+
libboost-system1.67.0
10+
511
# copy package from context
612
COPY proxysql-mysqlbinlog_*.deb ./
713
RUN yes | dpkg -i proxysql-mysqlbinlog_*.deb && \
814
rm -f proxysql-mysqlbinlog_*.deb
915

10-
CMD ["/bin/sh" "-c" "/bin/proxysql_binlog_reader -h \"${MYSQL_HOST:-127.0.0.1}\" -u \"${MYSQL_USER:=root}\" -p \"${MYSQL_PASSWORD:-root}\" -P \"${MYSQL_PORT:-3306}\" -i \"${LISTEN_ADDR:-0.0.0.0}\" -l \"${LISTEN_PORT:-6020}\" -f"]
16+
CMD ["sh", "-c", "proxysql_binlog_reader -h \"${MYSQL_HOST:-127.0.0.1}\" -u \"${MYSQL_USER:=root}\" -p \"${MYSQL_PASSWORD:-root}\" -P \"${MYSQL_PORT:-3306}\" -l \"${LISTEN_PORT:-6020}\" -f"]

docker/images/mysqlbinlog-debian9/Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@ FROM debian:9
22

33
MAINTAINER Miro Stauder <[email protected]>
44

5+
# dependencies
6+
RUN apt-get -y update && \
7+
apt-get -y install \
8+
libssl1.1 \
9+
libboost-system1.62.0
10+
511
# copy package from context
612
COPY proxysql-mysqlbinlog_*.deb ./
713
RUN yes | dpkg -i proxysql-mysqlbinlog_*.deb && \
814
rm -f proxysql-mysqlbinlog_*.deb
915

10-
CMD ["/bin/sh" "-c" "/bin/proxysql_binlog_reader -h \"${MYSQL_HOST:-127.0.0.1}\" -u \"${MYSQL_USER:=root}\" -p \"${MYSQL_PASSWORD:-root}\" -P \"${MYSQL_PORT:-3306}\" -i \"${LISTEN_ADDR:-0.0.0.0}\" -l \"${LISTEN_PORT:-6020}\" -f"]
16+
CMD ["sh", "-c", "proxysql_binlog_reader -h \"${MYSQL_HOST:-127.0.0.1}\" -u \"${MYSQL_USER:=root}\" -p \"${MYSQL_PASSWORD:-root}\" -P \"${MYSQL_PORT:-3306}\" -l \"${LISTEN_PORT:-6020}\" -f"]

docker/images/mysqlbinlog-ubuntu16/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@ FROM ubuntu:16.04
22

33
MAINTAINER Miro Stauder <[email protected]>
44

5+
# dependencies
6+
RUN apt-get -y update && \
7+
apt-get -y install \
8+
libssl1.0.0
9+
510
# copy package from context
611
COPY proxysql-mysqlbinlog_*.deb ./
712
RUN yes | dpkg -i proxysql-mysqlbinlog_*.deb && \
813
rm -f proxysql-mysqlbinlog_*.deb
914

10-
CMD ["/bin/sh" "-c" "/bin/proxysql_binlog_reader -h \"${MYSQL_HOST:-127.0.0.1}\" -u \"${MYSQL_USER:=root}\" -p \"${MYSQL_PASSWORD:-root}\" -P \"${MYSQL_PORT:-3306}\" -i \"${LISTEN_ADDR:-0.0.0.0}\" -l \"${LISTEN_PORT:-6020}\" -f"]
15+
CMD ["sh", "-c", "proxysql_binlog_reader -h \"${MYSQL_HOST:-127.0.0.1}\" -u \"${MYSQL_USER:=root}\" -p \"${MYSQL_PASSWORD:-root}\" -P \"${MYSQL_PORT:-3306}\" -l \"${LISTEN_PORT:-6020}\" -f"]

docker/images/mysqlbinlog-ubuntu18/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@ FROM ubuntu:18.04
22

33
MAINTAINER Miro Stauder <[email protected]>
44

5+
# dependencies
6+
RUN apt-get -y update && \
7+
apt-get -y install \
8+
libssl1.1
9+
510
# copy package from context
611
COPY proxysql-mysqlbinlog_*.deb ./
712
RUN yes | dpkg -i proxysql-mysqlbinlog_*.deb && \
813
rm -f proxysql-mysqlbinlog_*.deb
914

10-
CMD ["/bin/sh" "-c" "/bin/proxysql_binlog_reader -h \"${MYSQL_HOST:-127.0.0.1}\" -u \"${MYSQL_USER:=root}\" -p \"${MYSQL_PASSWORD:-root}\" -P \"${MYSQL_PORT:-3306}\" -i \"${LISTEN_ADDR:-0.0.0.0}\" -l \"${LISTEN_PORT:-6020}\" -f"]
15+
CMD ["sh", "-c", "proxysql_binlog_reader -h \"${MYSQL_HOST:-127.0.0.1}\" -u \"${MYSQL_USER:=root}\" -p \"${MYSQL_PASSWORD:-root}\" -P \"${MYSQL_PORT:-3306}\" -l \"${LISTEN_PORT:-6020}\" -f"]

0 commit comments

Comments
 (0)