diff --git a/docker-compose.yml b/docker-compose.yml index 5c641ade5d..70b712698b 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -107,7 +107,7 @@ services: service: _build image: proxysql/packaging:build-debian12-v3.0.0 volumes: - - ./docker/images/proxysql/deb-compliant/latest-package/ctl/:/root/ctl/ + - ./docker/images/proxysql/deb-compliant/ctl/:/root/ctl/ - ./docker/images/proxysql/deb-compliant/entrypoint/:/opt/entrypoint/ - ./:/opt/proxysql/ environment: @@ -135,7 +135,7 @@ services: service: _build image: proxysql/packaging:build-ubuntu22-v3.0.0 volumes: - - ./docker/images/proxysql/deb-compliant/latest-package/ctl/:/root/ctl/ + - ./docker/images/proxysql/deb-compliant/ctl/:/root/ctl/ - ./docker/images/proxysql/deb-compliant/entrypoint/:/opt/entrypoint/ - ./:/opt/proxysql/ environment: @@ -162,7 +162,7 @@ services: service: _build image: proxysql/packaging:build-ubuntu24-v3.0.0 volumes: - - ./docker/images/proxysql/deb-compliant/latest-package/ctl/:/root/ctl/ + - ./docker/images/proxysql/deb-compliant/ctl/:/root/ctl/ - ./docker/images/proxysql/deb-compliant/entrypoint/:/opt/entrypoint/ - ./:/opt/proxysql/ environment: diff --git a/docker/images/proxysql/deb-compliant/ctl/proxysql.ctl b/docker/images/proxysql/deb-compliant/ctl/proxysql.ctl index ecae3af231..ace1316dfc 100644 --- a/docker/images/proxysql/deb-compliant/ctl/proxysql.ctl +++ b/docker/images/proxysql/deb-compliant/ctl/proxysql.ctl @@ -8,20 +8,20 @@ Version: PKG_VERSION_CURVER Maintainer: ProxySQL LLC Copyright: copyright Architecture: PKG_ARCH -Depends: libgnutls28 | libgnutls-deb0-28 | libgnutls30 +Depends: libgnutls28 | libgnutls30, libssl (>= 3.0.0) | libssl3 (>= 3.0.0) # Changelog: CHANGELOG.md # Readme: README.md Files: proxysql /usr/bin/ - etc/proxysql.cnf / + etc/proxysql.cnf /etc/ etc/logrotate.d/proxysql /etc/logrotate.d/ - systemd/system/proxysql-initial.service /lib/ - systemd/system/proxysql.service /lib/ - tools/proxysql_galera_checker.sh /usr/share/proxysql/ - tools/proxysql_galera_writer.pl /usr/share/proxysql/ -Description: High performance MySQL proxy - ProxySQL is a fast, reliable MySQL proxy with advanced runtime configuration management (virtually no configuration change requires a restart). + systemd/system/proxysql-initial.service /lib/systemd/system/ + systemd/system/proxysql.service /lib/systemd/system/ + tools/proxysql_galera_checker.sh /usr/share/proxysql/tools/ + tools/proxysql_galera_writer.pl /usr/share/proxysql/tools/ +Description: High performance MySQL and PostgreSQL proxy + ProxySQL is a fast, reliable MySQL and PostgreSQL proxy with advanced runtime configuration management (virtually no configuration change requires a restart). . - It features query routing, query caching, query rewriting (for queries generated by ORMs, for example) and is most of the time a drop-in replacement for mysqld from the point of view of the application. It can be configured and remote controlled through an SQL-compatible admin interface. + It features query routing, query caching, query rewriting (for queries generated by ORMs, for example) and is most of the time a drop-in replacement for mysqld and postgres from the point of view of the application. It can be configured and remote controlled through an SQL-compatible admin interface. File: postinst #!/bin/sh -e if [ ! -d /var/lib/proxysql ]; then mkdir /var/lib/proxysql ; fi diff --git a/docker/images/proxysql/deb-compliant/latest-package/ctl/copyright b/docker/images/proxysql/deb-compliant/latest-package/ctl/copyright deleted file mode 100644 index f2b0876634..0000000000 --- a/docker/images/proxysql/deb-compliant/latest-package/ctl/copyright +++ /dev/null @@ -1,6 +0,0 @@ -Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ -Upstream-Name: proxysql -Upstream-Contact: ProxySQL LLC -Source: https://github.com/sysown/proxysql -Copyright: 2013-PKG_YEAR ProxySQL LLC -License: GPL-3 diff --git a/docker/images/proxysql/deb-compliant/latest-package/ctl/proxysql.ctl b/docker/images/proxysql/deb-compliant/latest-package/ctl/proxysql.ctl deleted file mode 100644 index c270fa14d7..0000000000 --- a/docker/images/proxysql/deb-compliant/latest-package/ctl/proxysql.ctl +++ /dev/null @@ -1,35 +0,0 @@ -Section: database -Priority: optional -Homepage: https://proxysql.com -Standards-Version: 3.9.2 - -Package: proxysql -Version: PKG_VERSION_CURVER -Maintainer: ProxySQL LLC -Copyright: copyright -Architecture: PKG_ARCH -Depends: libgnutls28 | libgnutls30 -# Changelog: CHANGELOG.md -# Readme: README.md -Files: proxysql /usr/bin/ - etc/proxysql.cnf /etc/ - etc/logrotate.d/proxysql /etc/logrotate.d/ - systemd/system/proxysql-initial.service /lib/systemd/system/ - systemd/system/proxysql.service /lib/systemd/system/ - tools/proxysql_galera_checker.sh /usr/share/proxysql/tools/ - tools/proxysql_galera_writer.pl /usr/share/proxysql/tools/ -Description: High performance MySQL proxy - ProxySQL is a fast, reliable MySQL proxy with advanced runtime configuration management (virtually no configuration change requires a restart). - . - It features query routing, query caching, query rewriting (for queries generated by ORMs, for example) and is most of the time a drop-in replacement for mysqld from the point of view of the application. It can be configured and remote controlled through an SQL-compatible admin interface. -File: postinst - #!/bin/sh -e - if [ ! -d /var/lib/proxysql ]; then mkdir /var/lib/proxysql ; fi - if ! id -u proxysql > /dev/null 2>&1; then useradd -r -U -s /bin/false -d /var/lib/proxysql -c "ProxySQL Server" proxysql; fi - chown -R proxysql: /var/lib/proxysql - chown root:proxysql /etc/proxysql.cnf - chmod 640 /etc/proxysql.cnf - if [ -d /run/systemd/system ]; then - systemctl enable proxysql.service > /dev/null || true - systemctl --system daemon-reload > /dev/null || true - fi diff --git a/docker/images/proxysql/deb-compliant/pre-systemd/ctl/copyright b/docker/images/proxysql/deb-compliant/pre-systemd/ctl/copyright deleted file mode 100644 index f2b0876634..0000000000 --- a/docker/images/proxysql/deb-compliant/pre-systemd/ctl/copyright +++ /dev/null @@ -1,6 +0,0 @@ -Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ -Upstream-Name: proxysql -Upstream-Contact: ProxySQL LLC -Source: https://github.com/sysown/proxysql -Copyright: 2013-PKG_YEAR ProxySQL LLC -License: GPL-3 diff --git a/docker/images/proxysql/deb-compliant/pre-systemd/ctl/proxysql.ctl b/docker/images/proxysql/deb-compliant/pre-systemd/ctl/proxysql.ctl deleted file mode 100644 index 0d4e7e88e5..0000000000 --- a/docker/images/proxysql/deb-compliant/pre-systemd/ctl/proxysql.ctl +++ /dev/null @@ -1,31 +0,0 @@ -Section: database -Priority: optional -Homepage: https://proxysql.com -Standards-Version: 3.9.2 - -Package: proxysql -Version: PKG_VERSION_CURVER -Maintainer: ProxySQL LLC -Copyright: copyright -Architecture: PKG_ARCH -Depends: libgnutls28 | libgnutls30 | libgnutls-deb0-28 -# Changelog: CHANGELOG.md -# Readme: README.md -Files: proxysql /usr/bin/ - etc/proxysql.cnf / - etc/logrotate.d/proxysql / - etc/init.d/proxysql / - tools/proxysql_galera_checker.sh /usr/share/proxysql/ - tools/proxysql_galera_writer.pl /usr/share/proxysql/ -Description: High performance MySQL proxy - ProxySQL is a fast, reliable MySQL proxy with advanced runtime configuration management (virtually no configuration change requires a restart). - . - It features query routing, query caching, query rewriting (for queries generated by ORMs, for example) and is most of the time a drop-in replacement for mysqld from the point of view of the application. It can be configured and remote controlled through an SQL-compatible admin interface. -File: postinst - #!/bin/sh -e - if [ ! -d /var/lib/proxysql ]; then mkdir /var/lib/proxysql ; fi - if ! id -u proxysql > /dev/null 2>&1; then useradd -r -U -s /bin/false -d /var/lib/proxysql -c "ProxySQL Server" proxysql; fi - chown -R proxysql: /var/lib/proxysql - chown root:proxysql /etc/proxysql.cnf - update-rc.d proxysql defaults - chmod 640 /etc/proxysql.cnf diff --git a/docker/images/proxysql/legacy/Makefile.legacy b/docker/images/proxysql/legacy/Makefile.legacy deleted file mode 100644 index c20c5d214f..0000000000 --- a/docker/images/proxysql/legacy/Makefile.legacy +++ /dev/null @@ -1,863 +0,0 @@ -O0=-O0 -O2=-O2 -O1=-O1 -O3=-O3 -mtune=native -#OPTZ=$(O2) -EXTRALINK=#-pg -ALL_DEBUG=-ggdb -DDEBUG -NO_DEBUG= -DEBUG=${ALL_DEBUG} -#export DEBUG -#export OPTZ -#export EXTRALINK -CURVER?=2.0.0 -MAKEOPT=-j 4 -DISTRO := $(shell gawk -F= '/^NAME/{print $$2}' /etc/os-release) -ifeq ($(wildcard /usr/lib/systemd/system), /usr/lib/systemd/system) - SYSTEMD=1 -else - SYSTEMD=0 -endif - -.PHONY: default -default: build_deps build_lib build_src - -.PHONY: debug -debug: build_deps_debug build_lib_debug build_src_debug - -.PHONY: clickhouse -clickhouse: build_deps_clickhouse build_lib_clickhouse build_src_clickhouse - -.PHONY: debug_clickhouse -debug_clickhouse: build_deps_debug_clickhouse build_lib_debug_clickhouse build_src_debug_clickhouse - - -.PHONY: build_deps -build_deps: - cd deps && OPTZ="${O2} -ggdb" CC=${CC} CXX=${CXX} ${MAKE} - -.PHONY: build_lib -build_lib: build_deps - cd lib && OPTZ="${O2} -ggdb" CC=${CC} CXX=${CXX} ${MAKE} - -.PHONY: build_src -build_src: build_deps build_lib - cd src && OPTZ="${O2} -ggdb" CC=${CC} CXX=${CXX} ${MAKE} - -.PHONY: build_deps_debug -build_deps_debug: - cd deps && OPTZ="${O0} -ggdb -DDEBUG" PROXYDEBUG=1 CC=${CC} CXX=${CXX} ${MAKE} - -.PHONY: build_lib_debug -build_lib_debug: build_deps_debug - cd lib && OPTZ="${O0} -ggdb -DDEBUG" CC=${CC} CXX=${CXX} ${MAKE} - -.PHONY: build_src_debug -build_src_debug: build_deps build_lib_debug - cd src && OPTZ="${O0} -ggdb -DDEBUG" CC=${CC} CXX=${CXX} ${MAKE} - -.PHONY: build_deps_clickhouse -build_deps_clickhouse: - cd deps && OPTZ="${O2} -ggdb" PROXYSQLCLICKHOUSE=1 CC=${CC} CXX=${CXX} ${MAKE} - -.PHONY: build_deps_debug_clickhouse -build_deps_debug_clickhouse: - cd deps && OPTZ="${O0} -ggdb -DDEBUG" PROXYSQLCLICKHOUSE=1 PROXYDEBUG=1 CC=${CC} CXX=${CXX} ${MAKE} - -.PHONY: build_lib_clickhouse -build_lib_clickhouse: build_deps_clickhouse - cd lib && OPTZ="${O2} -ggdb" PROXYSQLCLICKHOUSE=1 CC=${CC} CXX=${CXX} ${MAKE} - -.PHONY: build_lib_debug_clickhouse -build_lib_debug_clickhouse: build_deps_debug_clickhouse - cd lib && OPTZ="${O0} -ggdb -DDEBUG" PROXYSQLCLICKHOUSE=1 CC=${CC} CXX=${CXX} ${MAKE} - -.PHONY: build_src_clickhouse -build_src_clickhouse: build_deps_clickhouse build_lib_clickhouse - cd src && OPTZ="${O2} -ggdb" PROXYSQLCLICKHOUSE=1 CC=${CC} CXX=${CXX} ${MAKE} - -.PHONY: build_src_debug_clickhouse -build_src_debug_clickhouse: build_deps build_lib_debug_clickhouse - cd src && OPTZ="${O0} -ggdb -DDEBUG" PROXYSQLCLICKHOUSE=1 CC=${CC} CXX=${CXX} ${MAKE} - - -.PHONY: clean -clean: - cd lib && ${MAKE} clean - cd src && ${MAKE} clean - -packages: centos6.7 centos7 centos6.7-dbg centos7-dbg centos5 centos5-dbg ubuntu12 ubuntu14 debian7 debian8 ubuntu14-dbg debian7-dbg debian8-dbg ubuntu16 ubuntu16-dbg fedora24 fedora24-dbg debian9 debian9-dbg ubuntu16-clickhouse debian9-clickhouse centos7-clickhouse fedora24-clickhouse fedora27 fedora27-dbg fedora27-clickhouse debian9.4 debian9.4-dbg debian9.4-clickhouse -.PHONY: packages - -centos5: binaries/proxysql-${CURVER}-1-centos5.x86_64.rpm -.PHONY: centos5 - -centos5-dbg: binaries/proxysql-${CURVER}-1-dbg-centos5.x86_64.rpm -.PHONY: centos5-dbg - -centos6.7: binaries/proxysql-${CURVER}-1-centos67.x86_64.rpm -.PHONY: centos6.7 - -centos7: binaries/proxysql-${CURVER}-1-centos7.x86_64.rpm -.PHONY: centos7 - -centos6.7-dbg: binaries/proxysql-${CURVER}-1-dbg-centos67.x86_64.rpm -.PHONY: centos6.7-dbg - -centos7-dbg: binaries/proxysql-${CURVER}-1-dbg-centos7.x86_64.rpm -.PHONY: centos7-dbg - -fedora24: binaries/proxysql-${CURVER}-1-fedora24.x86_64.rpm -.PHONY: fedora24 - -fedora24-dbg: binaries/proxysql-${CURVER}-1-dbg-fedora24.x86_64.rpm -.PHONY: fedora24-dbg - -fedora27: binaries/proxysql-${CURVER}-1-fedora27.x86_64.rpm -.PHONY: fedora27 - -fedora27-dbg: binaries/proxysql-${CURVER}-1-dbg-fedora27.x86_64.rpm -.PHONY: fedora27-dbg - -ubuntu12: binaries/proxysql_${CURVER}-ubuntu12_amd64.deb -.PHONY: ubuntu12 - -ubuntu14: binaries/proxysql_${CURVER}-ubuntu14_amd64.deb -.PHONY: ubuntu14 - -ubuntu16: binaries/proxysql_${CURVER}-ubuntu16_amd64.deb -.PHONY: ubuntu16 - -debian7: binaries/proxysql_${CURVER}-debian7_amd64.deb -.PHONY: debian7 - -debian8: binaries/proxysql_${CURVER}-debian8_amd64.deb -.PHONY: debian8 - -debian9: binaries/proxysql_${CURVER}-debian9_amd64.deb -.PHONY: debian9 - -ubuntu14-dbg: binaries/proxysql_${CURVER}-dbg-ubuntu14_amd64.deb -.PHONY: ubuntu14-dbg - -ubuntu16-dbg: binaries/proxysql_${CURVER}-dbg-ubuntu16_amd64.deb -.PHONY: ubuntu16-dbg - -ubuntu16-clickhouse: binaries/proxysql_${CURVER}-clickhouse-ubuntu16_amd64.deb -.PHONY: ubuntu16-clickhouse - -debian7-dbg: binaries/proxysql_${CURVER}-dbg-debian7_amd64.deb -.PHONY: debian7-dbg - -debian8-dbg: binaries/proxysql_${CURVER}-dbg-debian8_amd64.deb -.PHONY: debian8-dbg - -debian9-dbg: binaries/proxysql_${CURVER}-dbg-debian9_amd64.deb -.PHONY: debian9-dbg - -debian9-clickhouse: binaries/proxysql_${CURVER}-clickhouse-debian9_amd64.deb -.PHONY: debian9-clickhouse - -debian9.4: binaries/proxysql_${CURVER}-debian9.4_amd64.deb -.PHONY: debian9.4 - -debian9.4-dbg: binaries/proxysql_${CURVER}-dbg-debian9.4_amd64.deb -.PHONY: debian9.4-dbg - -debian9.4-clickhouse: binaries/proxysql_${CURVER}-clickhouse-debian9.4_amd64.deb -.PHONY: debian9.4-clickhouse - -centos7-clickhouse: binaries/proxysql-${CURVER}-clickhouse-1-centos7.x86_64.rpm -.PHONY: centos7-clickhouse - -fedora24-clickhouse: binaries/proxysql-${CURVER}-clickhouse-1-fedora24.x86_64.rpm -.PHONY: fedora24-clickhouse - -fedora27-clickhouse: binaries/proxysql-${CURVER}-clickhouse-1-fedora27.x86_64.rpm -.PHONY: fedora27-clickhouse - -binaries/proxysql-${CURVER}-1-centos5.x86_64.rpm: - docker stop centos5_build || true - docker rm centos5_build || true - docker create --name centos5_build renecannao/proxysql:build-centos5 bash -c "while : ; do sleep 10 ; done" - docker start centos5_build - docker exec centos5_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - docker exec centos5_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps && ${MAKE} ${MAKEOPT}" - docker exec -it centos5_build bash -c "cd /opt/proxysql ; mkdir -p proxysql/usr/bin; mkdir -p proxysql/etc; cp src/proxysql proxysql/usr/bin/; cp -a etc proxysql ; mkdir -p proxysql/usr/share/proxysql/tools ; cp -a tools/proxysql_galera_checker.sh tools/proxysql_galera_writer.pl proxysql/usr/share/proxysql/tools ; mv proxysql proxysql-${CURVER} ; tar czvf proxysql-${CURVER}.tar.gz proxysql-${CURVER}" - docker exec -it centos5_build bash -c "mkdir -p /root/rpmbuild/{RPMS,SRPMS,BUILD,SOURCES,SPECS,tmp}" - sleep 2 - docker cp docker/images/proxysql/centos5-build/rpmmacros centos5_build:/root/.rpmmacros - sleep 2 - docker cp docker/images/proxysql/centos5-build/proxysql.spec centos5_build:/root/rpmbuild/SPECS/proxysql.spec - sleep 10 - docker exec -it centos5_build bash -c "cp /opt/proxysql/proxysql-${CURVER}.tar.gz /root/rpmbuild/SOURCES" - sleep 2 - docker exec -it centos5_build bash -c "cd /root/rpmbuild; rpmbuild -ba SPECS/proxysql.spec --define \"version ${CURVER}\"" - sleep 10 - docker exec -it centos5_build bash -c "cp /root/rpmbuild/RPMS/x86_64/proxysql-${CURVER}-1.x86_64.rpm /root/rpm" - sleep 2 - docker cp centos5_build:/root/rpmbuild/RPMS/x86_64/proxysql-${CURVER}-1.x86_64.rpm ./binaries/proxysql-${CURVER}-1-centos5.x86_64.rpm - docker stop centos5_build - docker rm centos5_build - -binaries/proxysql-${CURVER}-1-dbg-centos5.x86_64.rpm: - docker stop centos5_build || true - docker rm centos5_build || true - docker create --name centos5_build renecannao/proxysql:build-centos5 bash -c "while : ; do sleep 10 ; done" - docker start centos5_build - docker exec centos5_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - sleep 2 - docker exec centos5_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps && ${MAKE} ${MAKEOPT} debug" - sleep 2 - docker exec -it centos5_build bash -c "cd /opt/proxysql ; mkdir -p proxysql/usr/bin; mkdir -p proxysql/etc; cp src/proxysql proxysql/usr/bin/; cp -a etc proxysql ; mkdir -p proxysql/usr/share/proxysql/tools ; cp -a tools/proxysql_galera_checker.sh tools/proxysql_galera_writer.pl proxysql/usr/share/proxysql/tools ; mv proxysql proxysql-${CURVER} ; tar czvf proxysql-${CURVER}.tar.gz proxysql-${CURVER}" - sleep 2 - docker exec -it centos5_build bash -c "mkdir -p /root/rpmbuild/{RPMS,SRPMS,BUILD,SOURCES,SPECS,tmp}" - sleep 2 - docker cp docker/images/proxysql/centos5-build/rpmmacros centos5_build:/root/.rpmmacros - sleep 2 - docker cp docker/images/proxysql/centos5-build/proxysql.spec centos5_build:/root/rpmbuild/SPECS/proxysql.spec - sleep 10 - docker exec -it centos5_build bash -c "cp /opt/proxysql/proxysql-${CURVER}.tar.gz /root/rpmbuild/SOURCES" - sleep 2 - docker exec -it centos5_build bash -c "cd /root/rpmbuild; rpmbuild -ba SPECS/proxysql.spec --define \"version ${CURVER}\"" - sleep 10 - docker exec -it centos5_build bash -c "cp /root/rpmbuild/RPMS/x86_64/proxysql-${CURVER}-1.x86_64.rpm /root/rpm" - sleep 2 - docker cp centos5_build:/root/rpmbuild/RPMS/x86_64/proxysql-${CURVER}-1.x86_64.rpm ./binaries/proxysql-${CURVER}-1-dbg-centos5.x86_64.rpm - docker stop centos5_build - docker rm centos5_build - -binaries/proxysql-${CURVER}-1-centos67.x86_64.rpm: - docker stop centos67_build || true - docker rm centos67_build || true - docker create --name centos67_build renecannao/proxysql:build-centos6.7 bash -c "while : ; do sleep 10 ; done" - docker start centos67_build - docker exec centos67_build bash -c "yum update -y nss curl libcurl" - docker exec centos67_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - docker exec centos67_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps && ${MAKE} ${MAKEOPT}" - docker exec -it centos67_build bash -c "cd /opt/proxysql ; mkdir -p proxysql/usr/bin; mkdir -p proxysql/etc; cp src/proxysql proxysql/usr/bin/; cp -a etc proxysql ; mkdir -p proxysql/usr/share/proxysql/tools ; cp -a tools/proxysql_galera_checker.sh tools/proxysql_galera_writer.pl proxysql/usr/share/proxysql/tools ; mv proxysql proxysql-${CURVER} ; tar czvf proxysql-${CURVER}.tar.gz proxysql-${CURVER}" - docker exec -it centos67_build bash -c "mkdir -p /root/rpmbuild/{RPMS,SRPMS,BUILD,SOURCES,SPECS,tmp}" - docker cp docker/images/proxysql/centos67-build/rpmmacros centos67_build:/root/.rpmmacros - docker cp docker/images/proxysql/centos67-build/proxysql.spec centos67_build:/root/rpmbuild/SPECS/proxysql.spec - sleep 10 - docker exec -it centos67_build bash -c "cp /opt/proxysql/proxysql-${CURVER}.tar.gz /root/rpmbuild/SOURCES" - sleep 2 - docker exec -it centos67_build bash -c "cd /root/rpmbuild; rpmbuild -ba SPECS/proxysql.spec --define \"version ${CURVER}\"" - sleep 10 - docker exec -it centos67_build bash -c "cp /root/rpmbuild/RPMS/x86_64/proxysql-${CURVER}-1.x86_64.rpm /root/rpm" - sleep 2 - docker cp centos67_build:/root/rpmbuild/RPMS/x86_64/proxysql-${CURVER}-1.x86_64.rpm ./binaries/proxysql-${CURVER}-1-centos67.x86_64.rpm - docker stop centos67_build - docker rm centos67_build - -binaries/proxysql-${CURVER}-1-dbg-centos67.x86_64.rpm: - docker stop centos67_build || true - docker rm centos67_build || true - docker create --name centos67_build renecannao/proxysql:build-centos6.7 bash -c "while : ; do sleep 10 ; done" - docker start centos67_build - docker exec centos67_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - sleep 2 - docker exec centos67_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps && ${MAKE} ${MAKEOPT} debug" - sleep 2 - docker exec -it centos67_build bash -c "cd /opt/proxysql ; mkdir -p proxysql/usr/bin; mkdir -p proxysql/etc; cp src/proxysql proxysql/usr/bin/; cp -a etc proxysql ; mkdir -p proxysql/usr/share/proxysql/tools ; cp -a tools/proxysql_galera_checker.sh tools/proxysql_galera_writer.pl proxysql/usr/share/proxysql/tools ; mv proxysql proxysql-${CURVER} ; tar czvf proxysql-${CURVER}.tar.gz proxysql-${CURVER}" - sleep 2 - docker exec -it centos67_build bash -c "mkdir -p /root/rpmbuild/{RPMS,SRPMS,BUILD,SOURCES,SPECS,tmp}" - sleep 2 - docker cp docker/images/proxysql/centos67-build/rpmmacros centos67_build:/root/.rpmmacros - sleep 2 - docker cp docker/images/proxysql/centos67-build/proxysql.spec centos67_build:/root/rpmbuild/SPECS/proxysql.spec - sleep 10 - docker exec -it centos67_build bash -c "cp /opt/proxysql/proxysql-${CURVER}.tar.gz /root/rpmbuild/SOURCES" - sleep 2 - docker exec -it centos67_build bash -c "cd /root/rpmbuild; rpmbuild -ba SPECS/proxysql.spec --define \"version ${CURVER}\"" - sleep 10 - docker exec -it centos67_build bash -c "cp /root/rpmbuild/RPMS/x86_64/proxysql-${CURVER}-1.x86_64.rpm /root/rpm" - sleep 2 - docker cp centos67_build:/root/rpmbuild/RPMS/x86_64/proxysql-${CURVER}-1.x86_64.rpm ./binaries/proxysql-${CURVER}-1-dbg-centos67.x86_64.rpm - docker stop centos67_build - docker rm centos67_build - -binaries/proxysql-${CURVER}-1-centos7.x86_64.rpm: - docker stop centos7_build || true - docker rm centos7_build || true - docker create --name centos7_build renecannao/proxysql:build-centos7 bash -c "while : ; do sleep 10 ; done" - docker start centos7_build - docker exec centos7_build bash -c "yum update -y nss curl libcurl" - docker exec centos7_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - sleep 2 - docker exec centos7_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps && ${MAKE} ${MAKEOPT}" - sleep 2 - docker exec -it centos7_build bash -c "cd /opt/proxysql ; mkdir -p proxysql/usr/bin; mkdir -p proxysql/etc; cp src/proxysql proxysql/usr/bin/; cp -a etc proxysql ; mkdir -p proxysql/usr/share/proxysql/tools ; cp -a tools/proxysql_galera_checker.sh tools/proxysql_galera_writer.pl proxysql/usr/share/proxysql/tools ; mv proxysql proxysql-${CURVER} ; tar czvf proxysql-${CURVER}.tar.gz proxysql-${CURVER}" - sleep 2 - docker exec -it centos7_build bash -c "mkdir -p /root/rpmbuild/{RPMS,SRPMS,BUILD,SOURCES,SPECS,tmp}" - sleep 2 - docker cp docker/images/proxysql/centos7-build/rpmmacros centos7_build:/root/.rpmmacros - sleep 2 - docker cp docker/images/proxysql/centos7-build/proxysql.spec centos7_build:/root/rpmbuild/SPECS/proxysql.spec - sleep 10 - docker exec -it centos7_build bash -c "cp /opt/proxysql/proxysql-${CURVER}.tar.gz /root/rpmbuild/SOURCES" - sleep 2 - docker exec -it centos7_build bash -c "cd /root/rpmbuild; rpmbuild -ba SPECS/proxysql.spec --define \"version ${CURVER}\"" - sleep 10 - docker exec -it centos7_build bash -c "cp /root/rpmbuild/RPMS/x86_64/proxysql-${CURVER}-1.x86_64.rpm /root/rpm" - sleep 2 - docker cp centos7_build:/root/rpmbuild/RPMS/x86_64/proxysql-${CURVER}-1.x86_64.rpm ./binaries/proxysql-${CURVER}-1-centos7.x86_64.rpm - docker stop centos7_build - docker rm centos7_build - -binaries/proxysql-${CURVER}-clickhouse-1-centos7.x86_64.rpm: - docker stop centos7_build || true - docker rm centos7_build || true - docker create --name centos7_build renecannao/proxysql:build-centos7 bash -c "while : ; do sleep 10 ; done" - docker start centos7_build - docker exec centos7_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - sleep 2 - docker exec centos7_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps_clickhouse && ${MAKE} clickhouse ${MAKEOPT}" - sleep 2 - docker exec -it centos7_build bash -c "cd /opt/proxysql ; mkdir -p proxysql/usr/bin; mkdir -p proxysql/etc; cp src/proxysql proxysql/usr/bin/; cp -a etc proxysql ; mkdir -p proxysql/usr/share/proxysql/tools ; cp -a tools/proxysql_galera_checker.sh tools/proxysql_galera_writer.pl proxysql/usr/share/proxysql/tools ; mv proxysql proxysql-${CURVER} ; tar czvf proxysql-${CURVER}.tar.gz proxysql-${CURVER}" - sleep 2 - docker exec -it centos7_build bash -c "mkdir -p /root/rpmbuild/{RPMS,SRPMS,BUILD,SOURCES,SPECS,tmp}" - sleep 2 - docker cp docker/images/proxysql/centos7-build/rpmmacros centos7_build:/root/.rpmmacros - sleep 2 - docker cp docker/images/proxysql/centos7-build/proxysql.spec centos7_build:/root/rpmbuild/SPECS/proxysql.spec - sleep 10 - docker exec -it centos7_build bash -c "cp /opt/proxysql/proxysql-${CURVER}.tar.gz /root/rpmbuild/SOURCES" - sleep 2 - docker exec -it centos7_build bash -c "cd /root/rpmbuild; rpmbuild -ba SPECS/proxysql.spec --define \"version ${CURVER}\"" - sleep 10 - docker exec -it centos7_build bash -c "cp /root/rpmbuild/RPMS/x86_64/proxysql-${CURVER}-1.x86_64.rpm /root/rpm" - sleep 2 - docker cp centos7_build:/root/rpmbuild/RPMS/x86_64/proxysql-${CURVER}-1.x86_64.rpm ./binaries/proxysql-${CURVER}-clickhouse-1-centos7.x86_64.rpm - docker stop centos7_build - docker rm centos7_build - -binaries/proxysql-${CURVER}-1-dbg-centos7.x86_64.rpm: - docker stop centos7_build || true - docker rm centos7_build || true - docker create --name centos7_build renecannao/proxysql:build-centos7 bash -c "while : ; do sleep 10 ; done" - docker start centos7_build - docker exec centos7_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - sleep 2 - docker exec centos7_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps && ${MAKE} ${MAKEOPT} debug" - sleep 2 - docker exec -it centos7_build bash -c "cd /opt/proxysql ; mkdir -p proxysql/usr/bin; mkdir -p proxysql/etc; cp src/proxysql proxysql/usr/bin/; cp -a etc proxysql ; mkdir -p proxysql/usr/share/proxysql/tools ; cp -a tools/proxysql_galera_checker.sh tools/proxysql_galera_writer.pl proxysql/usr/share/proxysql/tools ; mv proxysql proxysql-${CURVER} ; tar czvf proxysql-${CURVER}.tar.gz proxysql-${CURVER}" - sleep 2 - docker exec -it centos7_build bash -c "mkdir -p /root/rpmbuild/{RPMS,SRPMS,BUILD,SOURCES,SPECS,tmp}" - sleep 2 - docker cp docker/images/proxysql/centos7-build/rpmmacros centos7_build:/root/.rpmmacros - sleep 2 - docker cp docker/images/proxysql/centos7-build/proxysql.spec centos7_build:/root/rpmbuild/SPECS/proxysql.spec - sleep 10 - docker exec -it centos7_build bash -c "cp /opt/proxysql/proxysql-${CURVER}.tar.gz /root/rpmbuild/SOURCES" - sleep 2 - docker exec -it centos7_build bash -c "cd /root/rpmbuild; rpmbuild -ba SPECS/proxysql.spec --define \"version ${CURVER}\"" - sleep 10 - docker exec -it centos7_build bash -c "cp /root/rpmbuild/RPMS/x86_64/proxysql-${CURVER}-1.x86_64.rpm /root/rpm" - sleep 2 - docker cp centos7_build:/root/rpmbuild/RPMS/x86_64/proxysql-${CURVER}-1.x86_64.rpm ./binaries/proxysql-${CURVER}-1-dbg-centos7.x86_64.rpm - docker stop centos7_build - docker rm centos7_build - - -binaries/proxysql-${CURVER}-1-fedora27.x86_64.rpm: - docker stop fedora27_build || true - docker rm fedora27_build || true - docker create --name fedora27_build renecannao/proxysql:build-fedora27 bash -c "while : ; do sleep 10 ; done" - docker start fedora27_build - docker exec fedora27_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - sleep 2 - docker exec fedora27_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps && ${MAKE} ${MAKEOPT}" - sleep 2 - docker exec -it fedora27_build bash -c "cd /opt/proxysql ; mkdir -p proxysql/usr/bin; mkdir -p proxysql/etc; cp src/proxysql proxysql/usr/bin/; cp -a etc proxysql ; mkdir -p proxysql/usr/share/proxysql/tools ; cp -a tools/proxysql_galera_checker.sh tools/proxysql_galera_writer.pl proxysql/usr/share/proxysql/tools ; mv proxysql proxysql-${CURVER} ; tar czvf proxysql-${CURVER}.tar.gz proxysql-${CURVER}" - sleep 2 - docker exec -it fedora27_build bash -c "mkdir -p /root/rpmbuild/{RPMS,SRPMS,BUILD,SOURCES,SPECS,tmp}" - sleep 2 - docker cp docker/images/proxysql/fedora27-build/rpmmacros fedora27_build:/root/.rpmmacros - sleep 2 - docker cp docker/images/proxysql/fedora27-build/proxysql.spec fedora27_build:/root/rpmbuild/SPECS/proxysql.spec - sleep 10 - docker exec -it fedora27_build bash -c "cp /opt/proxysql/proxysql-${CURVER}.tar.gz /root/rpmbuild/SOURCES" - sleep 2 - docker exec -it fedora27_build bash -c "cd /root/rpmbuild; rpmbuild -ba SPECS/proxysql.spec --define \"version ${CURVER}\"" - sleep 10 - docker exec -it fedora27_build bash -c "cp /root/rpmbuild/RPMS/x86_64/proxysql-${CURVER}-1.x86_64.rpm /root/rpm" - sleep 2 - docker cp fedora27_build:/root/rpmbuild/RPMS/x86_64/proxysql-${CURVER}-1.x86_64.rpm ./binaries/proxysql-${CURVER}-1-fedora27.x86_64.rpm - docker stop fedora27_build - docker rm fedora27_build - -binaries/proxysql-${CURVER}-clickhouse-1-fedora27.x86_64.rpm: - docker stop fedora27_build || true - docker rm fedora27_build || true - docker create --name fedora27_build renecannao/proxysql:build-fedora27 bash -c "while : ; do sleep 10 ; done" - docker start fedora27_build - docker exec fedora27_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - sleep 2 - docker exec fedora27_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps_clickhouse && ${MAKE} clickhouse ${MAKEOPT}" - sleep 2 - docker exec -it fedora27_build bash -c "cd /opt/proxysql ; mkdir -p proxysql/usr/bin; mkdir -p proxysql/etc; cp src/proxysql proxysql/usr/bin/; cp -a etc proxysql ; mkdir -p proxysql/usr/share/proxysql/tools ; cp -a tools/proxysql_galera_checker.sh tools/proxysql_galera_writer.pl proxysql/usr/share/proxysql/tools ; mv proxysql proxysql-${CURVER} ; tar czvf proxysql-${CURVER}.tar.gz proxysql-${CURVER}" - sleep 2 - docker exec -it fedora27_build bash -c "mkdir -p /root/rpmbuild/{RPMS,SRPMS,BUILD,SOURCES,SPECS,tmp}" - sleep 2 - docker cp docker/images/proxysql/fedora27-build/rpmmacros fedora27_build:/root/.rpmmacros - sleep 2 - docker cp docker/images/proxysql/fedora27-build/proxysql.spec fedora27_build:/root/rpmbuild/SPECS/proxysql.spec - sleep 10 - docker exec -it fedora27_build bash -c "cp /opt/proxysql/proxysql-${CURVER}.tar.gz /root/rpmbuild/SOURCES" - sleep 2 - docker exec -it fedora27_build bash -c "cd /root/rpmbuild; rpmbuild -ba SPECS/proxysql.spec --define \"version ${CURVER}\"" - sleep 10 - docker exec -it fedora27_build bash -c "cp /root/rpmbuild/RPMS/x86_64/proxysql-${CURVER}-1.x86_64.rpm /root/rpm" - sleep 2 - docker cp fedora27_build:/root/rpmbuild/RPMS/x86_64/proxysql-${CURVER}-1.x86_64.rpm ./binaries/proxysql-${CURVER}-clickhouse-1-fedora27.x86_64.rpm - docker stop fedora27_build - docker rm fedora27_build - -binaries/proxysql-${CURVER}-1-dbg-fedora27.x86_64.rpm: - docker stop fedora27_build || true - docker rm fedora27_build || true - docker create --name fedora27_build renecannao/proxysql:build-fedora27 bash -c "while : ; do sleep 10 ; done" - docker start fedora27_build - docker exec fedora27_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - sleep 2 - docker exec fedora27_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps && ${MAKE} ${MAKEOPT} debug" - sleep 2 - docker exec -it fedora27_build bash -c "cd /opt/proxysql ; mkdir -p proxysql/usr/bin; mkdir -p proxysql/etc; cp src/proxysql proxysql/usr/bin/; cp -a etc proxysql ; mkdir -p proxysql/usr/share/proxysql/tools ; cp -a tools/proxysql_galera_checker.sh tools/proxysql_galera_writer.pl proxysql/usr/share/proxysql/tools ; mv proxysql proxysql-${CURVER} ; tar czvf proxysql-${CURVER}.tar.gz proxysql-${CURVER}" - sleep 2 - docker exec -it fedora27_build bash -c "mkdir -p /root/rpmbuild/{RPMS,SRPMS,BUILD,SOURCES,SPECS,tmp}" - sleep 2 - docker cp docker/images/proxysql/fedora27-build/rpmmacros fedora27_build:/root/.rpmmacros - sleep 2 - docker cp docker/images/proxysql/fedora27-build/proxysql.spec fedora27_build:/root/rpmbuild/SPECS/proxysql.spec - sleep 10 - docker exec -it fedora27_build bash -c "cp /opt/proxysql/proxysql-${CURVER}.tar.gz /root/rpmbuild/SOURCES" - sleep 2 - docker exec -it fedora27_build bash -c "cd /root/rpmbuild; rpmbuild -ba SPECS/proxysql.spec --define \"version ${CURVER}\"" - sleep 10 - docker exec -it fedora27_build bash -c "cp /root/rpmbuild/RPMS/x86_64/proxysql-${CURVER}-1.x86_64.rpm /root/rpm" - sleep 2 - docker cp fedora27_build:/root/rpmbuild/RPMS/x86_64/proxysql-${CURVER}-1.x86_64.rpm ./binaries/proxysql-${CURVER}-1-dbg-fedora27.x86_64.rpm - docker stop fedora27_build - docker rm fedora27_build - -binaries/proxysql-${CURVER}-1-fedora24.x86_64.rpm: - docker stop fedora24_build || true - docker rm fedora24_build || true - docker create --name fedora24_build renecannao/proxysql:build-fedora24 bash -c "while : ; do sleep 10 ; done" - docker start fedora24_build - docker exec fedora24_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - sleep 2 - docker exec fedora24_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps && ${MAKE} ${MAKEOPT}" - sleep 2 - docker exec -it fedora24_build bash -c "cd /opt/proxysql ; mkdir -p proxysql/usr/bin; mkdir -p proxysql/etc; cp src/proxysql proxysql/usr/bin/; cp -a etc proxysql ; mkdir -p proxysql/usr/share/proxysql/tools ; cp -a tools/proxysql_galera_checker.sh tools/proxysql_galera_writer.pl proxysql/usr/share/proxysql/tools ; mv proxysql proxysql-${CURVER} ; tar czvf proxysql-${CURVER}.tar.gz proxysql-${CURVER}" - sleep 2 - docker exec -it fedora24_build bash -c "mkdir -p /root/rpmbuild/{RPMS,SRPMS,BUILD,SOURCES,SPECS,tmp}" - sleep 2 - docker cp docker/images/proxysql/fedora24-build/rpmmacros fedora24_build:/root/.rpmmacros - sleep 2 - docker cp docker/images/proxysql/fedora24-build/proxysql.spec fedora24_build:/root/rpmbuild/SPECS/proxysql.spec - sleep 10 - docker exec -it fedora24_build bash -c "cp /opt/proxysql/proxysql-${CURVER}.tar.gz /root/rpmbuild/SOURCES" - sleep 2 - docker exec -it fedora24_build bash -c "cd /root/rpmbuild; rpmbuild -ba SPECS/proxysql.spec --define \"version ${CURVER}\"" - sleep 10 - docker exec -it fedora24_build bash -c "cp /root/rpmbuild/RPMS/x86_64/proxysql-${CURVER}-1.x86_64.rpm /root/rpm" - sleep 2 - docker cp fedora24_build:/root/rpmbuild/RPMS/x86_64/proxysql-${CURVER}-1.x86_64.rpm ./binaries/proxysql-${CURVER}-1-fedora24.x86_64.rpm - docker stop fedora24_build - docker rm fedora24_build - -binaries/proxysql-${CURVER}-clickhouse-1-fedora24.x86_64.rpm: - docker stop fedora24_build || true - docker rm fedora24_build || true - docker create --name fedora24_build renecannao/proxysql:build-fedora24 bash -c "while : ; do sleep 10 ; done" - docker start fedora24_build - docker exec fedora24_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - sleep 2 - docker exec fedora24_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps_clickhouse && ${MAKE} clickhouse ${MAKEOPT}" - sleep 2 - docker exec -it fedora24_build bash -c "cd /opt/proxysql ; mkdir -p proxysql/usr/bin; mkdir -p proxysql/etc; cp src/proxysql proxysql/usr/bin/; cp -a etc proxysql ; mkdir -p proxysql/usr/share/proxysql/tools ; cp -a tools/proxysql_galera_checker.sh tools/proxysql_galera_writer.pl proxysql/usr/share/proxysql/tools ; mv proxysql proxysql-${CURVER} ; tar czvf proxysql-${CURVER}.tar.gz proxysql-${CURVER}" - sleep 2 - docker exec -it fedora24_build bash -c "mkdir -p /root/rpmbuild/{RPMS,SRPMS,BUILD,SOURCES,SPECS,tmp}" - sleep 2 - docker cp docker/images/proxysql/fedora24-build/rpmmacros fedora24_build:/root/.rpmmacros - sleep 2 - docker cp docker/images/proxysql/fedora24-build/proxysql.spec fedora24_build:/root/rpmbuild/SPECS/proxysql.spec - sleep 10 - docker exec -it fedora24_build bash -c "cp /opt/proxysql/proxysql-${CURVER}.tar.gz /root/rpmbuild/SOURCES" - sleep 2 - docker exec -it fedora24_build bash -c "cd /root/rpmbuild; rpmbuild -ba SPECS/proxysql.spec --define \"version ${CURVER}\"" - sleep 10 - docker exec -it fedora24_build bash -c "cp /root/rpmbuild/RPMS/x86_64/proxysql-${CURVER}-1.x86_64.rpm /root/rpm" - sleep 2 - docker cp fedora24_build:/root/rpmbuild/RPMS/x86_64/proxysql-${CURVER}-1.x86_64.rpm ./binaries/proxysql-${CURVER}-clickhouse-1-fedora24.x86_64.rpm - docker stop fedora24_build - docker rm fedora24_build - -binaries/proxysql-${CURVER}-1-dbg-fedora24.x86_64.rpm: - docker stop fedora24_build || true - docker rm fedora24_build || true - docker create --name fedora24_build renecannao/proxysql:build-fedora24 bash -c "while : ; do sleep 10 ; done" - docker start fedora24_build - docker exec fedora24_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - sleep 2 - docker exec fedora24_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps && ${MAKE} ${MAKEOPT} debug" - sleep 2 - docker exec -it fedora24_build bash -c "cd /opt/proxysql ; mkdir -p proxysql/usr/bin; mkdir -p proxysql/etc; cp src/proxysql proxysql/usr/bin/; cp -a etc proxysql ; mkdir -p proxysql/usr/share/proxysql/tools ; cp -a tools/proxysql_galera_checker.sh tools/proxysql_galera_writer.pl proxysql/usr/share/proxysql/tools ; mv proxysql proxysql-${CURVER} ; tar czvf proxysql-${CURVER}.tar.gz proxysql-${CURVER}" - sleep 2 - docker exec -it fedora24_build bash -c "mkdir -p /root/rpmbuild/{RPMS,SRPMS,BUILD,SOURCES,SPECS,tmp}" - sleep 2 - docker cp docker/images/proxysql/fedora24-build/rpmmacros fedora24_build:/root/.rpmmacros - sleep 2 - docker cp docker/images/proxysql/fedora24-build/proxysql.spec fedora24_build:/root/rpmbuild/SPECS/proxysql.spec - sleep 10 - docker exec -it fedora24_build bash -c "cp /opt/proxysql/proxysql-${CURVER}.tar.gz /root/rpmbuild/SOURCES" - sleep 2 - docker exec -it fedora24_build bash -c "cd /root/rpmbuild; rpmbuild -ba SPECS/proxysql.spec --define \"version ${CURVER}\"" - sleep 10 - docker exec -it fedora24_build bash -c "cp /root/rpmbuild/RPMS/x86_64/proxysql-${CURVER}-1.x86_64.rpm /root/rpm" - sleep 2 - docker cp fedora24_build:/root/rpmbuild/RPMS/x86_64/proxysql-${CURVER}-1.x86_64.rpm ./binaries/proxysql-${CURVER}-1-dbg-fedora24.x86_64.rpm - docker stop fedora24_build - docker rm fedora24_build - -binaries/proxysql_${CURVER}-ubuntu12_amd64.deb: - docker stop ubuntu12_build || true - docker rm ubuntu12_build || true - docker create --name ubuntu12_build renecannao/proxysql:build-ubuntu12 bash -c "while : ; do sleep 10 ; done" - docker start ubuntu12_build - docker exec ubuntu12_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - sleep 2 - docker exec ubuntu12_build bash -c "cd /opt/proxysql; sed -i -e 's/c++11/c++0x/' lib/Makefile ; sed -i -e 's/c++11/c++0x/' src/Makefile" - docker exec ubuntu12_build bash -c "cd /opt/proxysql/deps/re2 ; rm re2.tar.gz ; wget -O re2.tar.gz https://github.com/sysown/proxysql/raw/v1.3.9/deps/re2/re2-20140304.tgz" - docker exec ubuntu12_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps && ${MAKE} ${MAKEOPT}" - sleep 2 - docker cp docker/images/proxysql/ubuntu-12.04-build/proxysql.ctl ubuntu12_build:/opt/proxysql/ - sleep 2 - docker exec ubuntu12_build bash -c "cd /opt/proxysql; cp src/proxysql . ; equivs-build proxysql.ctl" - sleep 2 - docker cp ubuntu12_build:/opt/proxysql/proxysql_${CURVER}_amd64.deb ./binaries/proxysql_${CURVER}-ubuntu12_amd64.deb - docker stop ubuntu12_build - docker rm ubuntu12_build - -binaries/proxysql_${CURVER}-ubuntu14_amd64.deb: - docker stop ubuntu14_build || true - docker rm ubuntu14_build || true - docker create --name ubuntu14_build renecannao/proxysql:build-ubuntu14 bash -c "while : ; do sleep 10 ; done" - docker start ubuntu14_build - docker exec ubuntu14_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - sleep 2 - docker exec ubuntu14_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps && ${MAKE} ${MAKEOPT}" - sleep 2 - docker cp docker/images/proxysql/ubuntu-14.04-build/proxysql.ctl ubuntu14_build:/opt/proxysql/ - sleep 2 - docker exec ubuntu14_build bash -c "cd /opt/proxysql; cp src/proxysql . ; equivs-build proxysql.ctl" - sleep 2 - docker cp ubuntu14_build:/opt/proxysql/proxysql_${CURVER}_amd64.deb ./binaries/proxysql_${CURVER}-ubuntu14_amd64.deb - docker stop ubuntu14_build - docker rm ubuntu14_build - -binaries/proxysql_${CURVER}-ubuntu16_amd64.deb: - docker stop ubuntu16_build || true - docker rm ubuntu16_build || true - docker create --name ubuntu16_build renecannao/proxysql:build-ubuntu16 bash -c "while : ; do sleep 10 ; done" - docker start ubuntu16_build - docker exec ubuntu16_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - sleep 2 - docker exec ubuntu16_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps && ${MAKE} ${MAKEOPT}" - sleep 2 - docker cp docker/images/proxysql/ubuntu-16.04-build/proxysql.ctl ubuntu16_build:/opt/proxysql/ - sleep 2 - docker exec ubuntu16_build bash -c "cd /opt/proxysql; cp src/proxysql . ; equivs-build proxysql.ctl" - sleep 2 - docker cp ubuntu16_build:/opt/proxysql/proxysql_${CURVER}_amd64.deb ./binaries/proxysql_${CURVER}-ubuntu16_amd64.deb - docker stop ubuntu16_build - docker rm ubuntu16_build - -binaries/proxysql_${CURVER}-debian7_amd64.deb: - docker stop debian7_build || true - docker rm debian7_build || true - docker create --name debian7_build renecannao/proxysql:build-debian7 bash -c "while : ; do sleep 10 ; done" - docker start debian7_build - docker exec debian7_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - sleep 2 - docker exec debian7_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps && ${MAKE} ${MAKEOPT}" - sleep 2 - docker cp docker/images/proxysql/debian-7.8-build/proxysql.ctl debian7_build:/opt/proxysql/ - sleep 2 - docker exec debian7_build bash -c "cd /opt/proxysql; cp src/proxysql . ; equivs-build proxysql.ctl" - sleep 2 - docker cp debian7_build:/opt/proxysql/proxysql_${CURVER}_amd64.deb ./binaries/proxysql_${CURVER}-debian7_amd64.deb - docker stop debian7_build - docker rm debian7_build - -binaries/proxysql_${CURVER}-debian8_amd64.deb: - docker stop debian8_build || true - docker rm debian8_build || true - docker create --name debian8_build renecannao/proxysql:build-debian8 bash -c "while : ; do sleep 10 ; done" - docker start debian8_build - docker exec debian8_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - sleep 2 - docker exec debian8_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps && ${MAKE} ${MAKEOPT}" - sleep 2 - docker cp docker/images/proxysql/debian-8.2-build/proxysql.ctl debian8_build:/opt/proxysql/ - sleep 2 - docker exec debian8_build bash -c "cd /opt/proxysql; cp src/proxysql . ; equivs-build proxysql.ctl" - sleep 2 - docker cp debian8_build:/opt/proxysql/proxysql_${CURVER}_amd64.deb ./binaries/proxysql_${CURVER}-debian8_amd64.deb - docker stop debian8_build - docker rm debian8_build - -binaries/proxysql_${CURVER}-debian9_amd64.deb: - docker stop debian9_build || true - docker rm debian9_build || true - docker create --name debian9_build renecannao/proxysql:build-debian9 bash -c "while : ; do sleep 10 ; done" - docker start debian9_build - docker exec debian9_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - sleep 2 - docker exec debian9_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps && ${MAKE} ${MAKEOPT}" - sleep 2 - docker cp docker/images/proxysql/debian-9-build/proxysql.ctl debian9_build:/opt/proxysql/ - sleep 2 - docker exec debian9_build bash -c "cd /opt/proxysql; cp src/proxysql . ; equivs-build proxysql.ctl" - sleep 2 - docker cp debian9_build:/opt/proxysql/proxysql_${CURVER}_amd64.deb ./binaries/proxysql_${CURVER}-debian9_amd64.deb - docker stop debian9_build - docker rm debian9_build - -binaries/proxysql_${CURVER}-clickhouse-debian9_amd64.deb: - docker stop debian9_build || true - docker rm debian9_build || true - docker create --name debian9_build renecannao/proxysql:build-debian9 bash -c "while : ; do sleep 10 ; done" - docker start debian9_build - docker exec debian9_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - sleep 2 - docker exec debian9_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps_clickhouse && ${MAKE} clickhouse ${MAKEOPT}" - sleep 2 - docker cp docker/images/proxysql/debian-9-build/proxysql.ctl debian9_build:/opt/proxysql/ - sleep 2 - docker exec debian9_build bash -c "cd /opt/proxysql; cp src/proxysql . ; equivs-build proxysql.ctl" - sleep 2 - docker cp debian9_build:/opt/proxysql/proxysql_${CURVER}_amd64.deb ./binaries/proxysql_${CURVER}-clickhouse-debian9_amd64.deb - docker stop debian9_build - docker rm debian9_build - -binaries/proxysql_${CURVER}-dbg-ubuntu14_amd64.deb: - docker stop ubuntu14_build || true - docker rm ubuntu14_build || true - docker create --name ubuntu14_build renecannao/proxysql:build-ubuntu14 bash -c "while : ; do sleep 10 ; done" - docker start ubuntu14_build - docker exec ubuntu14_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - sleep 2 - docker exec ubuntu14_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps && ${MAKE} ${MAKEOPT} debug" - sleep 2 - docker cp docker/images/proxysql/ubuntu-14.04-build/proxysql.ctl ubuntu14_build:/opt/proxysql/ - sleep 2 - docker exec ubuntu14_build bash -c "cd /opt/proxysql; cp src/proxysql . ; equivs-build proxysql.ctl" - sleep 2 - docker cp ubuntu14_build:/opt/proxysql/proxysql_${CURVER}_amd64.deb ./binaries/proxysql_${CURVER}-dbg-ubuntu14_amd64.deb - docker stop ubuntu14_build - docker rm ubuntu14_build - -binaries/proxysql_${CURVER}-dbg-ubuntu16_amd64.deb: - docker stop ubuntu16_build || true - docker rm ubuntu16_build || true - docker create --name ubuntu16_build renecannao/proxysql:build-ubuntu16 bash -c "while : ; do sleep 10 ; done" - docker start ubuntu16_build - docker exec ubuntu16_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - sleep 2 - docker exec ubuntu16_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps && ${MAKE} ${MAKEOPT} debug" - sleep 2 - docker cp docker/images/proxysql/ubuntu-16.04-build/proxysql.ctl ubuntu16_build:/opt/proxysql/ - sleep 2 - docker exec ubuntu16_build bash -c "cd /opt/proxysql; cp src/proxysql . ; equivs-build proxysql.ctl" - sleep 2 - docker cp ubuntu16_build:/opt/proxysql/proxysql_${CURVER}_amd64.deb ./binaries/proxysql_${CURVER}-dbg-ubuntu16_amd64.deb - docker stop ubuntu16_build - docker rm ubuntu16_build - -binaries/proxysql_${CURVER}-clickhouse-ubuntu16_amd64.deb: - docker stop ubuntu16_build || true - docker rm ubuntu16_build || true - docker create --name ubuntu16_build renecannao/proxysql:build-ubuntu16 bash -c "while : ; do sleep 10 ; done" - docker start ubuntu16_build - docker exec ubuntu16_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - sleep 2 - docker exec ubuntu16_build bash --login -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps_clickhouse && ${MAKE} clickhouse ${MAKEOPT}" - sleep 2 - docker cp docker/images/proxysql/ubuntu-16.04-build/proxysql.ctl ubuntu16_build:/opt/proxysql/ - sleep 2 - docker exec ubuntu16_build bash -c "cd /opt/proxysql; cp src/proxysql . ; equivs-build proxysql.ctl" - sleep 2 - docker cp ubuntu16_build:/opt/proxysql/proxysql_${CURVER}_amd64.deb ./binaries/proxysql_${CURVER}-clickhouse-ubuntu16_amd64.deb - docker stop ubuntu16_build - docker rm ubuntu16_build - -binaries/proxysql_${CURVER}-dbg-debian7_amd64.deb: - docker stop debian7_build || true - docker rm debian7_build || true - docker create --name debian7_build renecannao/proxysql:build-debian7 bash -c "while : ; do sleep 10 ; done" - docker start debian7_build - docker exec debian7_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - sleep 2 - docker exec debian7_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps && ${MAKE} ${MAKEOPT} debug" - sleep 2 - docker cp docker/images/proxysql/debian-7.8-build/proxysql.ctl debian7_build:/opt/proxysql/ - sleep 2 - docker exec debian7_build bash -c "cd /opt/proxysql; cp src/proxysql . ; equivs-build proxysql.ctl" - sleep 2 - docker cp debian7_build:/opt/proxysql/proxysql_${CURVER}_amd64.deb ./binaries/proxysql_${CURVER}-dbg-debian7_amd64.deb - docker stop debian7_build - docker rm debian7_build - -binaries/proxysql_${CURVER}-dbg-debian8_amd64.deb: - docker stop debian8_build || true - docker rm debian8_build || true - docker create --name debian8_build renecannao/proxysql:build-debian8 bash -c "while : ; do sleep 10 ; done" - docker start debian8_build - docker exec debian8_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - sleep 2 - docker exec debian8_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps && ${MAKE} ${MAKEOPT} debug" - sleep 2 - docker cp docker/images/proxysql/debian-8.2-build/proxysql.ctl debian8_build:/opt/proxysql/ - sleep 2 - docker exec debian8_build bash -c "cd /opt/proxysql; cp src/proxysql . ; equivs-build proxysql.ctl" - sleep 2 - docker cp debian8_build:/opt/proxysql/proxysql_${CURVER}_amd64.deb ./binaries/proxysql_${CURVER}-dbg-debian8_amd64.deb - docker stop debian8_build - docker rm debian8_build - -binaries/proxysql_${CURVER}-dbg-debian9_amd64.deb: - docker stop debian9_build || true - docker rm debian9_build || true - docker create --name debian9_build renecannao/proxysql:build-debian9 bash -c "while : ; do sleep 10 ; done" - docker start debian9_build - docker exec debian9_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - sleep 2 - docker exec debian9_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps && ${MAKE} ${MAKEOPT} debug" - sleep 2 - docker cp docker/images/proxysql/debian-9-build/proxysql.ctl debian9_build:/opt/proxysql/ - sleep 2 - docker exec debian9_build bash -c "cd /opt/proxysql; cp src/proxysql . ; equivs-build proxysql.ctl" - sleep 2 - docker cp debian9_build:/opt/proxysql/proxysql_${CURVER}_amd64.deb ./binaries/proxysql_${CURVER}-dbg-debian9_amd64.deb - docker stop debian9_build - docker rm debian9_build - -binaries/proxysql_${CURVER}-debian9.4_amd64.deb: - docker stop debian9.4_build || true - docker rm debian9.4_build || true - docker create --name debian9.4_build renecannao/proxysql:build-debian9.4 bash -c "while : ; do sleep 10 ; done" - docker start debian9.4_build - docker exec debian9.4_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - sleep 2 - docker exec debian9.4_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps && ${MAKE} ${MAKEOPT}" - sleep 2 - docker cp docker/images/proxysql/debian-9.4-build/proxysql.ctl debian9.4_build:/opt/proxysql/ - sleep 2 - docker exec debian9.4_build bash -c "cd /opt/proxysql; cp src/proxysql . ; equivs-build proxysql.ctl" - sleep 2 - docker cp debian9.4_build:/opt/proxysql/proxysql_${CURVER}_amd64.deb ./binaries/proxysql_${CURVER}-debian9.4_amd64.deb - docker stop debian9.4_build - docker rm debian9.4_build - -binaries/proxysql_${CURVER}-dbg-debian9.4_amd64.deb: - docker stop debian9.4_build || true - docker rm debian9.4_build || true - docker create --name debian9.4_build renecannao/proxysql:build-debian9.4 bash -c "while : ; do sleep 10 ; done" - docker start debian9.4_build - docker exec debian9.4_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - sleep 2 - docker exec debian9.4_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps && ${MAKE} ${MAKEOPT} debug" - sleep 2 - docker cp docker/images/proxysql/debian-9.4-build/proxysql.ctl debian9.4_build:/opt/proxysql/ - sleep 2 - docker exec debian9.4_build bash -c "cd /opt/proxysql; cp src/proxysql . ; equivs-build proxysql.ctl" - sleep 2 - docker cp debian9.4_build:/opt/proxysql/proxysql_${CURVER}_amd64.deb ./binaries/proxysql_${CURVER}-dbg-debian9.4_amd64.deb - docker stop debian9.4_build - docker rm debian9.4_build - -binaries/proxysql_${CURVER}-clickhouse-debian9.4_amd64.deb: - docker stop debian9.4_build || true - docker rm debian9.4_build || true - docker create --name debian9.4_build renecannao/proxysql:build-debian9.4 bash -c "while : ; do sleep 10 ; done" - docker start debian9.4_build - docker exec debian9.4_build bash -c "cd /opt; git clone -b v${CURVER} https://github.com/sysown/proxysql.git proxysql" - sleep 2 - docker exec debian9.4_build bash -c "cd /opt/proxysql; ${MAKE} clean && ${MAKE} ${MAKEOPT} build_deps_clickhouse && ${MAKE} clickhouse ${MAKEOPT}" - sleep 2 - docker cp docker/images/proxysql/debian-9.4-build/proxysql.ctl debian9.4_build:/opt/proxysql/ - sleep 2 - docker exec debian9.4_build bash -c "cd /opt/proxysql; cp src/proxysql . ; equivs-build proxysql.ctl" - sleep 2 - docker cp debian9.4_build:/opt/proxysql/proxysql_${CURVER}_amd64.deb ./binaries/proxysql_${CURVER}-clickhouse-debian9.4_amd64.deb - docker stop debian9.4_build - docker rm debian9.4_build - - -.PHONY: cleanall -cleanall: - cd deps && ${MAKE} cleanall - cd lib && ${MAKE} clean - cd src && ${MAKE} clean - rm binaries/*deb || true - rm binaries/*rpm || true - -install: src/proxysql - install -m 0755 src/proxysql /usr/bin - install -m 0600 etc/proxysql.cnf /etc - if [ ! -d /var/lib/proxysql ]; then mkdir /var/lib/proxysql ; fi -ifeq ($(SYSTEMD), 1) - install -m 0644 systemd/proxysql.service /usr/lib/systemd/system/ - systemctl enable proxysql.service -else - install -m 0755 etc/init.d/proxysql /etc/init.d -ifeq ($(DISTRO),"CentOS Linux") - chkconfig --level 0123456 proxysql on -else -ifeq ($(DISTRO),"Red Hat Enterprise Linux Server") - chkconfig --level 0123456 proxysql on -else -ifeq ($(DISTRO),"Ubuntu") - update-rc.d proxysql defaults -else -ifeq ($(DISTRO),"Debian GNU/Linux") - update-rc.d proxysql defaults -endif -endif -endif -endif -.PHONY: install - -uninstall: - rm /etc/proxysql.cnf - rm /usr/bin/proxysql - rmdir /var/lib/proxysql 2>/dev/null || true -ifeq ($(SYSTEMD), 1) - systemctl stop proxysql.service - rm /usr/lib/systemd/system/proxysql.service -else -ifeq ($(DISTRO),"CentOS Linux") - chkconfig --level 0123456 proxysql off - rm /etc/init.d/proxysql -else -ifeq ($(DISTRO),"Red Hat Enterprise Linux Server") - chkconfig --level 0123456 proxysql off - rm /etc/init.d/proxysql -else -ifeq ($(DISTRO),"Ubuntu") - rm /etc/init.d/proxysql - update-rc.d proxysql remove -else -ifeq ($(DISTRO),"Debian GNU/Linux") - rm /etc/init.d/proxysql - update-rc.d proxysql remove -endif -endif -endif -endif -endif -endif -.PHONY: uninstall diff --git a/docker/images/proxysql/legacy/centos5-build/proxysql.spec b/docker/images/proxysql/legacy/centos5-build/proxysql.spec deleted file mode 100644 index 16ff2cff50..0000000000 --- a/docker/images/proxysql/legacy/centos5-build/proxysql.spec +++ /dev/null @@ -1,76 +0,0 @@ -# Don't try fancy stuff like debuginfo, which is useless on binary-only -# packages. Don't strip binary too -# Be sure buildpolicy set to do nothing -%define __spec_install_post %{nil} -%define debug_package %{nil} -%define __os_install_post %{_dbpath}/brp-compress - -Summary: A high-performance MySQL proxy -Name: proxysql -Version: %{version} -Release: 1 -License: GPL+ -Group: Development/Tools -SOURCE0 : %{name}-%{version}.tar.gz -URL: http://www.proxysql.com/ - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root - -%description -%{summary} - -%prep -%setup -q - -%build -# Empty section. - -%install -rm -rf %{buildroot} -mkdir -p %{buildroot} - -# in builddir -cp -a * %{buildroot} - -%clean -rm -rf %{buildroot} - -%post -mkdir /var/run/%{name} -chkconfig --add %{name} - -%preun -/etc/init.d/%{name} stop -chkconfig --del %{name} - -%postun -rm -rf /var/run/%{name} - -%files -%defattr(-,root,root,-) -%config(noreplace) %{_sysconfdir}/%{name}.cnf -%{_bindir}/* -%{_sysconfdir}/init.d/%{name} -/usr/share/proxysql/tools/proxysql_galera_checker.sh -/usr/share/proxysql/tools/proxysql_galera_writer.pl - -%changelog -* Wed Oct 19 2016 Rene Cannao 1.3.0 -- experimental support for Prepared Statements -- enhanced scalability -* Thu Sep 29 2016 Rene Cannao 1.2.4 -- Forth stable release of 1.2 -* Tue Sep 20 2016 Rene Cannao 1.2.3 -- Third stable release of 1.2 -* Fri Sep 2 2016 Rene Cannao 1.2.2 -- Second stable release of 1.2 -* Tue Aug 2 2016 Rene Cannao 1.2.1 -- First stable release of 1.2 -* Mon Mar 14 2016 Rene Cannao 1.2.0 -- First testing release of 1.2 -* Sat Mar 11 2016 Rene Cannao 1.1.2 -- Upgraded to release 1.1.2 -* Sat Oct 31 2015 Rene Cannao 1.0.1 -- Compiles 1.0.1 -* Wed Sep 9 2015 Andrei Ismail 0.2 -- Added support for automatic packaging on Ubuntu 14.04 and CentOS 7. diff --git a/docker/images/proxysql/legacy/centos5-build/rpmmacros b/docker/images/proxysql/legacy/centos5-build/rpmmacros deleted file mode 100644 index a1d0f32f01..0000000000 --- a/docker/images/proxysql/legacy/centos5-build/rpmmacros +++ /dev/null @@ -1,2 +0,0 @@ -%_topdir %(echo $HOME)/rpmbuild -%_tmppath %{_topdir}/tmp \ No newline at end of file diff --git a/docker/images/proxysql/legacy/centos67-build/proxysql.spec b/docker/images/proxysql/legacy/centos67-build/proxysql.spec deleted file mode 100644 index 16ff2cff50..0000000000 --- a/docker/images/proxysql/legacy/centos67-build/proxysql.spec +++ /dev/null @@ -1,76 +0,0 @@ -# Don't try fancy stuff like debuginfo, which is useless on binary-only -# packages. Don't strip binary too -# Be sure buildpolicy set to do nothing -%define __spec_install_post %{nil} -%define debug_package %{nil} -%define __os_install_post %{_dbpath}/brp-compress - -Summary: A high-performance MySQL proxy -Name: proxysql -Version: %{version} -Release: 1 -License: GPL+ -Group: Development/Tools -SOURCE0 : %{name}-%{version}.tar.gz -URL: http://www.proxysql.com/ - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root - -%description -%{summary} - -%prep -%setup -q - -%build -# Empty section. - -%install -rm -rf %{buildroot} -mkdir -p %{buildroot} - -# in builddir -cp -a * %{buildroot} - -%clean -rm -rf %{buildroot} - -%post -mkdir /var/run/%{name} -chkconfig --add %{name} - -%preun -/etc/init.d/%{name} stop -chkconfig --del %{name} - -%postun -rm -rf /var/run/%{name} - -%files -%defattr(-,root,root,-) -%config(noreplace) %{_sysconfdir}/%{name}.cnf -%{_bindir}/* -%{_sysconfdir}/init.d/%{name} -/usr/share/proxysql/tools/proxysql_galera_checker.sh -/usr/share/proxysql/tools/proxysql_galera_writer.pl - -%changelog -* Wed Oct 19 2016 Rene Cannao 1.3.0 -- experimental support for Prepared Statements -- enhanced scalability -* Thu Sep 29 2016 Rene Cannao 1.2.4 -- Forth stable release of 1.2 -* Tue Sep 20 2016 Rene Cannao 1.2.3 -- Third stable release of 1.2 -* Fri Sep 2 2016 Rene Cannao 1.2.2 -- Second stable release of 1.2 -* Tue Aug 2 2016 Rene Cannao 1.2.1 -- First stable release of 1.2 -* Mon Mar 14 2016 Rene Cannao 1.2.0 -- First testing release of 1.2 -* Sat Mar 11 2016 Rene Cannao 1.1.2 -- Upgraded to release 1.1.2 -* Sat Oct 31 2015 Rene Cannao 1.0.1 -- Compiles 1.0.1 -* Wed Sep 9 2015 Andrei Ismail 0.2 -- Added support for automatic packaging on Ubuntu 14.04 and CentOS 7. diff --git a/docker/images/proxysql/legacy/centos67-build/rpmmacros b/docker/images/proxysql/legacy/centos67-build/rpmmacros deleted file mode 100644 index a1d0f32f01..0000000000 --- a/docker/images/proxysql/legacy/centos67-build/rpmmacros +++ /dev/null @@ -1,2 +0,0 @@ -%_topdir %(echo $HOME)/rpmbuild -%_tmppath %{_topdir}/tmp \ No newline at end of file diff --git a/docker/images/proxysql/legacy/centos7-build/proxysql.spec b/docker/images/proxysql/legacy/centos7-build/proxysql.spec deleted file mode 100644 index 16ff2cff50..0000000000 --- a/docker/images/proxysql/legacy/centos7-build/proxysql.spec +++ /dev/null @@ -1,76 +0,0 @@ -# Don't try fancy stuff like debuginfo, which is useless on binary-only -# packages. Don't strip binary too -# Be sure buildpolicy set to do nothing -%define __spec_install_post %{nil} -%define debug_package %{nil} -%define __os_install_post %{_dbpath}/brp-compress - -Summary: A high-performance MySQL proxy -Name: proxysql -Version: %{version} -Release: 1 -License: GPL+ -Group: Development/Tools -SOURCE0 : %{name}-%{version}.tar.gz -URL: http://www.proxysql.com/ - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root - -%description -%{summary} - -%prep -%setup -q - -%build -# Empty section. - -%install -rm -rf %{buildroot} -mkdir -p %{buildroot} - -# in builddir -cp -a * %{buildroot} - -%clean -rm -rf %{buildroot} - -%post -mkdir /var/run/%{name} -chkconfig --add %{name} - -%preun -/etc/init.d/%{name} stop -chkconfig --del %{name} - -%postun -rm -rf /var/run/%{name} - -%files -%defattr(-,root,root,-) -%config(noreplace) %{_sysconfdir}/%{name}.cnf -%{_bindir}/* -%{_sysconfdir}/init.d/%{name} -/usr/share/proxysql/tools/proxysql_galera_checker.sh -/usr/share/proxysql/tools/proxysql_galera_writer.pl - -%changelog -* Wed Oct 19 2016 Rene Cannao 1.3.0 -- experimental support for Prepared Statements -- enhanced scalability -* Thu Sep 29 2016 Rene Cannao 1.2.4 -- Forth stable release of 1.2 -* Tue Sep 20 2016 Rene Cannao 1.2.3 -- Third stable release of 1.2 -* Fri Sep 2 2016 Rene Cannao 1.2.2 -- Second stable release of 1.2 -* Tue Aug 2 2016 Rene Cannao 1.2.1 -- First stable release of 1.2 -* Mon Mar 14 2016 Rene Cannao 1.2.0 -- First testing release of 1.2 -* Sat Mar 11 2016 Rene Cannao 1.1.2 -- Upgraded to release 1.1.2 -* Sat Oct 31 2015 Rene Cannao 1.0.1 -- Compiles 1.0.1 -* Wed Sep 9 2015 Andrei Ismail 0.2 -- Added support for automatic packaging on Ubuntu 14.04 and CentOS 7. diff --git a/docker/images/proxysql/legacy/centos7-build/rpmmacros b/docker/images/proxysql/legacy/centos7-build/rpmmacros deleted file mode 100644 index a1d0f32f01..0000000000 --- a/docker/images/proxysql/legacy/centos7-build/rpmmacros +++ /dev/null @@ -1,2 +0,0 @@ -%_topdir %(echo $HOME)/rpmbuild -%_tmppath %{_topdir}/tmp \ No newline at end of file diff --git a/docker/images/proxysql/legacy/debian-7.8-build/proxysql.ctl b/docker/images/proxysql/legacy/debian-7.8-build/proxysql.ctl deleted file mode 100644 index e04fbf2b3f..0000000000 --- a/docker/images/proxysql/legacy/debian-7.8-build/proxysql.ctl +++ /dev/null @@ -1,24 +0,0 @@ -Section: misc -Priority: optional -Homepage: http://www.proxysql.com -Standards-Version: 3.9.2 - -Package: proxysql -Version: 2.0.0 -Maintainer: Rene Cannao -Architecture: amd64 -# Changelog: CHANGELOG.md -# Readme: README.md -Files: proxysql /usr/bin/ - etc/proxysql.cnf / - etc/init.d/proxysql / - tools/proxysql_galera_checker.sh /usr/share/proxysql/ - tools/proxysql_galera_writer.pl /usr/share/proxysql/ -Description: High performance MySQL proxy - ProxySQL is a fast, reliable MySQL proxy with advanced runtime configuration management (virtually no configuration change requires a restart). - . - It features query routing, query caching, query rewriting (for queries generated by ORMs, for example) and is most of the time a drop-in replacement for mysqld from the point of view of the application. It can be configured and remote controlled through an SQL-compatible admin interface. -File: postinst - #!/bin/sh -e - if [ ! -d /var/lib/proxysql ]; then mkdir /var/lib/proxysql ; fi - update-rc.d proxysql defaults diff --git a/docker/images/proxysql/legacy/debian-8.2-build/proxysql.ctl b/docker/images/proxysql/legacy/debian-8.2-build/proxysql.ctl deleted file mode 100644 index e04fbf2b3f..0000000000 --- a/docker/images/proxysql/legacy/debian-8.2-build/proxysql.ctl +++ /dev/null @@ -1,24 +0,0 @@ -Section: misc -Priority: optional -Homepage: http://www.proxysql.com -Standards-Version: 3.9.2 - -Package: proxysql -Version: 2.0.0 -Maintainer: Rene Cannao -Architecture: amd64 -# Changelog: CHANGELOG.md -# Readme: README.md -Files: proxysql /usr/bin/ - etc/proxysql.cnf / - etc/init.d/proxysql / - tools/proxysql_galera_checker.sh /usr/share/proxysql/ - tools/proxysql_galera_writer.pl /usr/share/proxysql/ -Description: High performance MySQL proxy - ProxySQL is a fast, reliable MySQL proxy with advanced runtime configuration management (virtually no configuration change requires a restart). - . - It features query routing, query caching, query rewriting (for queries generated by ORMs, for example) and is most of the time a drop-in replacement for mysqld from the point of view of the application. It can be configured and remote controlled through an SQL-compatible admin interface. -File: postinst - #!/bin/sh -e - if [ ! -d /var/lib/proxysql ]; then mkdir /var/lib/proxysql ; fi - update-rc.d proxysql defaults diff --git a/docker/images/proxysql/legacy/debian-9-build/proxysql.ctl b/docker/images/proxysql/legacy/debian-9-build/proxysql.ctl deleted file mode 100644 index e04fbf2b3f..0000000000 --- a/docker/images/proxysql/legacy/debian-9-build/proxysql.ctl +++ /dev/null @@ -1,24 +0,0 @@ -Section: misc -Priority: optional -Homepage: http://www.proxysql.com -Standards-Version: 3.9.2 - -Package: proxysql -Version: 2.0.0 -Maintainer: Rene Cannao -Architecture: amd64 -# Changelog: CHANGELOG.md -# Readme: README.md -Files: proxysql /usr/bin/ - etc/proxysql.cnf / - etc/init.d/proxysql / - tools/proxysql_galera_checker.sh /usr/share/proxysql/ - tools/proxysql_galera_writer.pl /usr/share/proxysql/ -Description: High performance MySQL proxy - ProxySQL is a fast, reliable MySQL proxy with advanced runtime configuration management (virtually no configuration change requires a restart). - . - It features query routing, query caching, query rewriting (for queries generated by ORMs, for example) and is most of the time a drop-in replacement for mysqld from the point of view of the application. It can be configured and remote controlled through an SQL-compatible admin interface. -File: postinst - #!/bin/sh -e - if [ ! -d /var/lib/proxysql ]; then mkdir /var/lib/proxysql ; fi - update-rc.d proxysql defaults diff --git a/docker/images/proxysql/legacy/debian-9.4-build/proxysql.ctl b/docker/images/proxysql/legacy/debian-9.4-build/proxysql.ctl deleted file mode 100644 index e04fbf2b3f..0000000000 --- a/docker/images/proxysql/legacy/debian-9.4-build/proxysql.ctl +++ /dev/null @@ -1,24 +0,0 @@ -Section: misc -Priority: optional -Homepage: http://www.proxysql.com -Standards-Version: 3.9.2 - -Package: proxysql -Version: 2.0.0 -Maintainer: Rene Cannao -Architecture: amd64 -# Changelog: CHANGELOG.md -# Readme: README.md -Files: proxysql /usr/bin/ - etc/proxysql.cnf / - etc/init.d/proxysql / - tools/proxysql_galera_checker.sh /usr/share/proxysql/ - tools/proxysql_galera_writer.pl /usr/share/proxysql/ -Description: High performance MySQL proxy - ProxySQL is a fast, reliable MySQL proxy with advanced runtime configuration management (virtually no configuration change requires a restart). - . - It features query routing, query caching, query rewriting (for queries generated by ORMs, for example) and is most of the time a drop-in replacement for mysqld from the point of view of the application. It can be configured and remote controlled through an SQL-compatible admin interface. -File: postinst - #!/bin/sh -e - if [ ! -d /var/lib/proxysql ]; then mkdir /var/lib/proxysql ; fi - update-rc.d proxysql defaults diff --git a/docker/images/proxysql/legacy/fedora24-build/proxysql.spec b/docker/images/proxysql/legacy/fedora24-build/proxysql.spec deleted file mode 100644 index 16ff2cff50..0000000000 --- a/docker/images/proxysql/legacy/fedora24-build/proxysql.spec +++ /dev/null @@ -1,76 +0,0 @@ -# Don't try fancy stuff like debuginfo, which is useless on binary-only -# packages. Don't strip binary too -# Be sure buildpolicy set to do nothing -%define __spec_install_post %{nil} -%define debug_package %{nil} -%define __os_install_post %{_dbpath}/brp-compress - -Summary: A high-performance MySQL proxy -Name: proxysql -Version: %{version} -Release: 1 -License: GPL+ -Group: Development/Tools -SOURCE0 : %{name}-%{version}.tar.gz -URL: http://www.proxysql.com/ - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root - -%description -%{summary} - -%prep -%setup -q - -%build -# Empty section. - -%install -rm -rf %{buildroot} -mkdir -p %{buildroot} - -# in builddir -cp -a * %{buildroot} - -%clean -rm -rf %{buildroot} - -%post -mkdir /var/run/%{name} -chkconfig --add %{name} - -%preun -/etc/init.d/%{name} stop -chkconfig --del %{name} - -%postun -rm -rf /var/run/%{name} - -%files -%defattr(-,root,root,-) -%config(noreplace) %{_sysconfdir}/%{name}.cnf -%{_bindir}/* -%{_sysconfdir}/init.d/%{name} -/usr/share/proxysql/tools/proxysql_galera_checker.sh -/usr/share/proxysql/tools/proxysql_galera_writer.pl - -%changelog -* Wed Oct 19 2016 Rene Cannao 1.3.0 -- experimental support for Prepared Statements -- enhanced scalability -* Thu Sep 29 2016 Rene Cannao 1.2.4 -- Forth stable release of 1.2 -* Tue Sep 20 2016 Rene Cannao 1.2.3 -- Third stable release of 1.2 -* Fri Sep 2 2016 Rene Cannao 1.2.2 -- Second stable release of 1.2 -* Tue Aug 2 2016 Rene Cannao 1.2.1 -- First stable release of 1.2 -* Mon Mar 14 2016 Rene Cannao 1.2.0 -- First testing release of 1.2 -* Sat Mar 11 2016 Rene Cannao 1.1.2 -- Upgraded to release 1.1.2 -* Sat Oct 31 2015 Rene Cannao 1.0.1 -- Compiles 1.0.1 -* Wed Sep 9 2015 Andrei Ismail 0.2 -- Added support for automatic packaging on Ubuntu 14.04 and CentOS 7. diff --git a/docker/images/proxysql/legacy/fedora24-build/rpmmacros b/docker/images/proxysql/legacy/fedora24-build/rpmmacros deleted file mode 100644 index a1d0f32f01..0000000000 --- a/docker/images/proxysql/legacy/fedora24-build/rpmmacros +++ /dev/null @@ -1,2 +0,0 @@ -%_topdir %(echo $HOME)/rpmbuild -%_tmppath %{_topdir}/tmp \ No newline at end of file diff --git a/docker/images/proxysql/legacy/fedora27-build/proxysql.spec b/docker/images/proxysql/legacy/fedora27-build/proxysql.spec deleted file mode 100644 index 16ff2cff50..0000000000 --- a/docker/images/proxysql/legacy/fedora27-build/proxysql.spec +++ /dev/null @@ -1,76 +0,0 @@ -# Don't try fancy stuff like debuginfo, which is useless on binary-only -# packages. Don't strip binary too -# Be sure buildpolicy set to do nothing -%define __spec_install_post %{nil} -%define debug_package %{nil} -%define __os_install_post %{_dbpath}/brp-compress - -Summary: A high-performance MySQL proxy -Name: proxysql -Version: %{version} -Release: 1 -License: GPL+ -Group: Development/Tools -SOURCE0 : %{name}-%{version}.tar.gz -URL: http://www.proxysql.com/ - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root - -%description -%{summary} - -%prep -%setup -q - -%build -# Empty section. - -%install -rm -rf %{buildroot} -mkdir -p %{buildroot} - -# in builddir -cp -a * %{buildroot} - -%clean -rm -rf %{buildroot} - -%post -mkdir /var/run/%{name} -chkconfig --add %{name} - -%preun -/etc/init.d/%{name} stop -chkconfig --del %{name} - -%postun -rm -rf /var/run/%{name} - -%files -%defattr(-,root,root,-) -%config(noreplace) %{_sysconfdir}/%{name}.cnf -%{_bindir}/* -%{_sysconfdir}/init.d/%{name} -/usr/share/proxysql/tools/proxysql_galera_checker.sh -/usr/share/proxysql/tools/proxysql_galera_writer.pl - -%changelog -* Wed Oct 19 2016 Rene Cannao 1.3.0 -- experimental support for Prepared Statements -- enhanced scalability -* Thu Sep 29 2016 Rene Cannao 1.2.4 -- Forth stable release of 1.2 -* Tue Sep 20 2016 Rene Cannao 1.2.3 -- Third stable release of 1.2 -* Fri Sep 2 2016 Rene Cannao 1.2.2 -- Second stable release of 1.2 -* Tue Aug 2 2016 Rene Cannao 1.2.1 -- First stable release of 1.2 -* Mon Mar 14 2016 Rene Cannao 1.2.0 -- First testing release of 1.2 -* Sat Mar 11 2016 Rene Cannao 1.1.2 -- Upgraded to release 1.1.2 -* Sat Oct 31 2015 Rene Cannao 1.0.1 -- Compiles 1.0.1 -* Wed Sep 9 2015 Andrei Ismail 0.2 -- Added support for automatic packaging on Ubuntu 14.04 and CentOS 7. diff --git a/docker/images/proxysql/legacy/fedora27-build/rpmmacros b/docker/images/proxysql/legacy/fedora27-build/rpmmacros deleted file mode 100644 index a1d0f32f01..0000000000 --- a/docker/images/proxysql/legacy/fedora27-build/rpmmacros +++ /dev/null @@ -1,2 +0,0 @@ -%_topdir %(echo $HOME)/rpmbuild -%_tmppath %{_topdir}/tmp \ No newline at end of file diff --git a/docker/images/proxysql/legacy/proxysql/Dockerfile b/docker/images/proxysql/legacy/proxysql/Dockerfile deleted file mode 100644 index d7173e7343..0000000000 --- a/docker/images/proxysql/legacy/proxysql/Dockerfile +++ /dev/null @@ -1,35 +0,0 @@ -FROM ubuntu:14.04 -MAINTAINER Andrei Ismail - -LABEL vendor=proxysql\ - com.proxysql.type=proxysql\ - com.proxysql.os=ubuntu14\ - com.proxysql.interactive=false\ - com.proxysql.config=simple\ - com.proxysql.purpose=testing - -RUN apt-get update && apt-get install -y \ - automake \ - cmake \ - make \ - g++ \ - gcc \ - gdb \ - gdbserver \ - git \ - libmysqlclient-dev \ - libssl-dev \ - libtool \ - && \ - apt-get clean && \ - rm -rf /var/lib/apt/lists/ - -RUN cd /opt; git clone https://github.com/akopytov/sysbench.git -RUN cd /opt/sysbench; ./autogen.sh; ./configure --bindir=/usr/bin; make; make install - -ADD ./proxysql.cnf /etc/ -RUN mkdir -p /var/lib/proxysql -ADD ./compile_and_start_proxysql.sh /tmp/ -RUN chmod +x /tmp/compile_and_start_proxysql.sh - -CMD ["/tmp/compile_and_start_proxysql.sh"] diff --git a/docker/images/proxysql/legacy/proxysql/compile_and_start_proxysql.sh b/docker/images/proxysql/legacy/proxysql/compile_and_start_proxysql.sh deleted file mode 100755 index 2775ef6a75..0000000000 --- a/docker/images/proxysql/legacy/proxysql/compile_and_start_proxysql.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -if [ ! -d /opt/proxysql ]; then - mkdir -p /opt/proxysql - cp -R /tmp/proxysql-src/* /opt/proxysql - cd /opt/proxysql - make clean && make > /tmp/proxysql_compile.log -fi - -cd /opt/proxysql/src -# TODO(andrei): re-enable the commented line when figuring out interactive mode -# gdbserver 0.0.0.0:2345 ./proxysql --initial -f -c /etc/proxysql.cnf -./proxysql --initial -f -c /etc/proxysql.cnf \ No newline at end of file diff --git a/docker/images/proxysql/legacy/ubuntu-12.04-build/proxysql.ctl b/docker/images/proxysql/legacy/ubuntu-12.04-build/proxysql.ctl deleted file mode 100644 index e04fbf2b3f..0000000000 --- a/docker/images/proxysql/legacy/ubuntu-12.04-build/proxysql.ctl +++ /dev/null @@ -1,24 +0,0 @@ -Section: misc -Priority: optional -Homepage: http://www.proxysql.com -Standards-Version: 3.9.2 - -Package: proxysql -Version: 2.0.0 -Maintainer: Rene Cannao -Architecture: amd64 -# Changelog: CHANGELOG.md -# Readme: README.md -Files: proxysql /usr/bin/ - etc/proxysql.cnf / - etc/init.d/proxysql / - tools/proxysql_galera_checker.sh /usr/share/proxysql/ - tools/proxysql_galera_writer.pl /usr/share/proxysql/ -Description: High performance MySQL proxy - ProxySQL is a fast, reliable MySQL proxy with advanced runtime configuration management (virtually no configuration change requires a restart). - . - It features query routing, query caching, query rewriting (for queries generated by ORMs, for example) and is most of the time a drop-in replacement for mysqld from the point of view of the application. It can be configured and remote controlled through an SQL-compatible admin interface. -File: postinst - #!/bin/sh -e - if [ ! -d /var/lib/proxysql ]; then mkdir /var/lib/proxysql ; fi - update-rc.d proxysql defaults diff --git a/docker/images/proxysql/legacy/ubuntu-14.04-build/proxysql.ctl b/docker/images/proxysql/legacy/ubuntu-14.04-build/proxysql.ctl deleted file mode 100644 index e04fbf2b3f..0000000000 --- a/docker/images/proxysql/legacy/ubuntu-14.04-build/proxysql.ctl +++ /dev/null @@ -1,24 +0,0 @@ -Section: misc -Priority: optional -Homepage: http://www.proxysql.com -Standards-Version: 3.9.2 - -Package: proxysql -Version: 2.0.0 -Maintainer: Rene Cannao -Architecture: amd64 -# Changelog: CHANGELOG.md -# Readme: README.md -Files: proxysql /usr/bin/ - etc/proxysql.cnf / - etc/init.d/proxysql / - tools/proxysql_galera_checker.sh /usr/share/proxysql/ - tools/proxysql_galera_writer.pl /usr/share/proxysql/ -Description: High performance MySQL proxy - ProxySQL is a fast, reliable MySQL proxy with advanced runtime configuration management (virtually no configuration change requires a restart). - . - It features query routing, query caching, query rewriting (for queries generated by ORMs, for example) and is most of the time a drop-in replacement for mysqld from the point of view of the application. It can be configured and remote controlled through an SQL-compatible admin interface. -File: postinst - #!/bin/sh -e - if [ ! -d /var/lib/proxysql ]; then mkdir /var/lib/proxysql ; fi - update-rc.d proxysql defaults diff --git a/docker/images/proxysql/legacy/ubuntu-15.10-build/proxysql.ctl b/docker/images/proxysql/legacy/ubuntu-15.10-build/proxysql.ctl deleted file mode 100644 index 2b2fd33577..0000000000 --- a/docker/images/proxysql/legacy/ubuntu-15.10-build/proxysql.ctl +++ /dev/null @@ -1,24 +0,0 @@ -Section: misc -Priority: optional -Homepage: http://www.proxysql.com -Standards-Version: 3.9.2 - -Package: proxysql -Version: 1.2.4 -Maintainer: Rene Cannao -Architecture: amd64 -# Changelog: CHANGELOG.md -# Readme: README.md -Files: proxysql /usr/bin/ - etc/proxysql.cnf / - etc/init.d/proxysql / - tools/proxysql_galera_checker.sh /usr/share/proxysql/ - tools/proxysql_galera_writer.pl /usr/share/proxysql/ -Description: High performance MySQL proxy - ProxySQL is a fast, reliable MySQL proxy with advanced runtime configuration management (virtually no configuration change requires a restart). - . - It features query routing, query caching, query rewriting (for queries generated by ORMs, for example) and is most of the time a drop-in replacement for mysqld from the point of view of the application. It can be configured and remote controlled through an SQL-compatible admin interface. -File: postinst - #!/bin/sh -e - if [ ! -d /var/lib/proxysql ]; then mkdir /var/lib/proxysql ; fi - update-rc.d proxysql defaults diff --git a/docker/images/proxysql/legacy/ubuntu-16.04-build/proxysql.ctl b/docker/images/proxysql/legacy/ubuntu-16.04-build/proxysql.ctl deleted file mode 100644 index e04fbf2b3f..0000000000 --- a/docker/images/proxysql/legacy/ubuntu-16.04-build/proxysql.ctl +++ /dev/null @@ -1,24 +0,0 @@ -Section: misc -Priority: optional -Homepage: http://www.proxysql.com -Standards-Version: 3.9.2 - -Package: proxysql -Version: 2.0.0 -Maintainer: Rene Cannao -Architecture: amd64 -# Changelog: CHANGELOG.md -# Readme: README.md -Files: proxysql /usr/bin/ - etc/proxysql.cnf / - etc/init.d/proxysql / - tools/proxysql_galera_checker.sh /usr/share/proxysql/ - tools/proxysql_galera_writer.pl /usr/share/proxysql/ -Description: High performance MySQL proxy - ProxySQL is a fast, reliable MySQL proxy with advanced runtime configuration management (virtually no configuration change requires a restart). - . - It features query routing, query caching, query rewriting (for queries generated by ORMs, for example) and is most of the time a drop-in replacement for mysqld from the point of view of the application. It can be configured and remote controlled through an SQL-compatible admin interface. -File: postinst - #!/bin/sh -e - if [ ! -d /var/lib/proxysql ]; then mkdir /var/lib/proxysql ; fi - update-rc.d proxysql defaults diff --git a/docker/images/proxysql/proxysql/Dockerfile b/docker/images/proxysql/proxysql/Dockerfile deleted file mode 100644 index d7173e7343..0000000000 --- a/docker/images/proxysql/proxysql/Dockerfile +++ /dev/null @@ -1,35 +0,0 @@ -FROM ubuntu:14.04 -MAINTAINER Andrei Ismail - -LABEL vendor=proxysql\ - com.proxysql.type=proxysql\ - com.proxysql.os=ubuntu14\ - com.proxysql.interactive=false\ - com.proxysql.config=simple\ - com.proxysql.purpose=testing - -RUN apt-get update && apt-get install -y \ - automake \ - cmake \ - make \ - g++ \ - gcc \ - gdb \ - gdbserver \ - git \ - libmysqlclient-dev \ - libssl-dev \ - libtool \ - && \ - apt-get clean && \ - rm -rf /var/lib/apt/lists/ - -RUN cd /opt; git clone https://github.com/akopytov/sysbench.git -RUN cd /opt/sysbench; ./autogen.sh; ./configure --bindir=/usr/bin; make; make install - -ADD ./proxysql.cnf /etc/ -RUN mkdir -p /var/lib/proxysql -ADD ./compile_and_start_proxysql.sh /tmp/ -RUN chmod +x /tmp/compile_and_start_proxysql.sh - -CMD ["/tmp/compile_and_start_proxysql.sh"] diff --git a/docker/images/proxysql/proxysql/compile_and_start_proxysql.sh b/docker/images/proxysql/proxysql/compile_and_start_proxysql.sh deleted file mode 100755 index 2775ef6a75..0000000000 --- a/docker/images/proxysql/proxysql/compile_and_start_proxysql.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -if [ ! -d /opt/proxysql ]; then - mkdir -p /opt/proxysql - cp -R /tmp/proxysql-src/* /opt/proxysql - cd /opt/proxysql - make clean && make > /tmp/proxysql_compile.log -fi - -cd /opt/proxysql/src -# TODO(andrei): re-enable the commented line when figuring out interactive mode -# gdbserver 0.0.0.0:2345 ./proxysql --initial -f -c /etc/proxysql.cnf -./proxysql --initial -f -c /etc/proxysql.cnf \ No newline at end of file diff --git a/docker/images/proxysql/proxysql/proxysql.cnf b/docker/images/proxysql/proxysql/proxysql.cnf deleted file mode 100644 index 75ab202897..0000000000 --- a/docker/images/proxysql/proxysql/proxysql.cnf +++ /dev/null @@ -1,24 +0,0 @@ -datadir="/tmp" - -admin_variables = -{ - admin_credentials="admin:admin" - mysql_ifaces="0.0.0.0:6032" - refresh_interval=2000 - debug=true -} - -mysql_users = -( - { - username = "root" - password = "root" - default_hostgroup = 0 - }, - - { - username = "john" - password = "doe" - default_hostgroup = 0 - } -) \ No newline at end of file diff --git a/docker/images/proxysql/rhel-compliant/rhel6/entrypoint/entrypoint.bash b/docker/images/proxysql/rhel-compliant/rhel6/entrypoint/entrypoint.bash deleted file mode 100755 index aa4babeef2..0000000000 --- a/docker/images/proxysql/rhel-compliant/rhel6/entrypoint/entrypoint.bash +++ /dev/null @@ -1,72 +0,0 @@ -#!/bin/bash -set -eu - -echo "==> Build environment:" -env - -ARCH=$(rpm --eval '%{_arch}') -echo "==> '${ARCH}' architecture detected for package" - -DIST=$(cat /etc/redhat-release| sed 's/ .*//') -echo "==> '${DIST}' distro detected for package" - -echo -e "==> C compiler: ${CC} -> $(readlink -e $(type -p ${CC}))\n$(${CC} --version)" -echo -e "==> C++ compiler: ${CXX} -> $(readlink -e $(type -p ${CXX}))\n$(${CXX} --version)" -#echo -e "==> linker version:\n$ ${LD} -> $(readlink -e $(type -p ${LD}))\n$(${LD} --version)" - -echo "==> Cleaning" -# Delete package if exists -rm -f /opt/proxysql/binaries/proxysql-${CURVER}-1-${PKG_RELEASE}.${ARCH}.rpm || true -# Cleanup relic directories from a previously failed build -rm -fr /root/.pki /root/rpmbuild/{BUILDROOT,RPMS,SRPMS,BUILD,SOURCES,tmp} /opt/proxysql/proxysql /opt/proxysql/proxysql-${CURVER} || true - -# Clean and build dependancies and source -echo "==> Building" -git config --system --add safe.directory '/opt/proxysql' -cd /opt/proxysql -echo "==> ProxySQL '$(git describe --long --abbrev=7)'" -#export SOURCE_DATE_EPOCH=$(git show -s --format=%ct HEAD) -#echo "==> Setting SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH}" -#find /opt/proxysql -not -path "/opt/proxysql/binaries/*" -exec touch -h --date=@${SOURCE_DATE_EPOCH} {} \; - -if [[ -z ${PROXYSQL_BUILD_TYPE:-} ]] ; then - deps_target="build_deps" - build_target="" -else - deps_target="build_deps_$PROXYSQL_BUILD_TYPE" - build_target="$PROXYSQL_BUILD_TYPE" -fi -#${MAKE} cleanbuild -${MAKE} ${MAKEOPT} "${deps_target}" - -if [[ -z ${build_target} ]] ; then - ${MAKE} ${MAKEOPT} -else - ${MAKE} ${MAKEOPT} "${build_target}" -fi -touch /opt/proxysql/src/proxysql - -# Prepare package files and build RPM -echo "==> Packaging" -mkdir -p proxysql/usr/bin proxysql/etc -cp src/proxysql proxysql/usr/bin/ -cp -a etc proxysql -mkdir -p proxysql/usr/share/proxysql/tools -cp -a tools/proxysql_galera_checker.sh tools/proxysql_galera_writer.pl proxysql/usr/share/proxysql/tools -mv proxysql "proxysql-${CURVER}" -tar czvf "proxysql-${CURVER}.tar.gz" proxysql-${CURVER} -mkdir -p /root/rpmbuild/{RPMS,SRPMS,BUILD,SOURCES,SPECS,tmp} -chown -R root:root /root/rpmbuild/SPECS -mv "/opt/proxysql/proxysql-${CURVER}.tar.gz" /root/rpmbuild/SOURCES -# build package -cd /root/rpmbuild && rpmbuild -ba SPECS/proxysql.spec --define "version ${CURVER}" -cp "/root/rpmbuild/RPMS/${ARCH}/proxysql-${CURVER}-1.${ARCH}.rpm" "/opt/proxysql/binaries/proxysql-${CURVER}-1-${PKG_RELEASE}.${ARCH}.rpm" -# get SHA1 of the packaged executable -mkdir -p /opt/proxysql/pkgroot/tmp -pushd /opt/proxysql/pkgroot -rpm2cpio /root/rpmbuild/RPMS/${ARCH}/proxysql-${CURVER}-1.${ARCH}.rpm | cpio -iu --to-stdout ./usr/bin/proxysql > tmp/proxysql -sha1sum tmp/proxysql | sed 's|tmp/||' | tee tmp/proxysql.sha1 -cp tmp/proxysql.sha1 ../binaries/proxysql-${CURVER}-1-${PKG_RELEASE}.${ARCH}.id-hash -popd -# cleanup -rm -fr /root/.pki /root/rpmbuild/{BUILDROOT,RPMS,SRPMS,BUILD,SOURCES,tmp} /opt/proxysql/proxysql /opt/proxysql/proxysql-${CURVER} /opt/proxysql/pkgroot diff --git a/docker/images/proxysql/rhel-compliant/rhel6/rpmmacros/.rpmmacros b/docker/images/proxysql/rhel-compliant/rhel6/rpmmacros/.rpmmacros deleted file mode 100644 index a1d0f32f01..0000000000 --- a/docker/images/proxysql/rhel-compliant/rhel6/rpmmacros/.rpmmacros +++ /dev/null @@ -1,2 +0,0 @@ -%_topdir %(echo $HOME)/rpmbuild -%_tmppath %{_topdir}/tmp \ No newline at end of file diff --git a/docker/images/proxysql/rhel-compliant/rhel6/rpmmacros/rpmbuild/SPECS/proxysql.spec b/docker/images/proxysql/rhel-compliant/rhel6/rpmmacros/rpmbuild/SPECS/proxysql.spec deleted file mode 100644 index cc528d7241..0000000000 --- a/docker/images/proxysql/rhel-compliant/rhel6/rpmmacros/rpmbuild/SPECS/proxysql.spec +++ /dev/null @@ -1,63 +0,0 @@ -# Don't try fancy stuff like debuginfo, which is useless on binary-only -# packages. Don't strip binary too -# Be sure buildpolicy set to do nothing -%define __spec_install_post %{nil} -%define debug_package %{nil} -%define __os_install_post %{_dbpath}/brp-compress - -Summary: A high-performance MySQL proxy -Name: proxysql -Version: %{version} -Release: 1 -License: GPL-3.0-only -Source: %{name}-%{version}.tar.gz -URL: https://www.proxysql.com/ -Requires: gnutls -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root - -%description -%{summary} - -%prep -%setup -q - -%build -# Empty section. - -%install -rm -rf %{buildroot} -mkdir -p %{buildroot} - -# in builddir -cp -a * %{buildroot} - -%clean -rm -rf %{buildroot} - -%post -if [ ! -d /var/run/%{name} ]; then mkdir /var/run/%{name} ; fi -if [ ! -d /var/lib/%{name} ]; then mkdir /var/lib/%{name} ; fi -if ! id -u %{name} > /dev/null 2>&1; then useradd -r -U -s /bin/false -d /var/lib/%{name} -c "ProxySQL Server" %{name}; fi -chown -R %{name}: /var/lib/%{name} /var/run/%{name} -chown root:%{name} /etc/%{name}.cnf -chmod 640 /etc/%{name}.cnf -chkconfig --add %{name} - -%preun -/etc/init.d/%{name} stop -chkconfig --del %{name} - -%postun -rm -rf /var/run/%{name} - -%files -%defattr(-,root,root,-) -%config(noreplace) %{_sysconfdir}/%{name}.cnf -%attr(640,root,%{name}) %{_sysconfdir}/%{name}.cnf -%config(noreplace) %attr(640,root,%{name}) %{_sysconfdir}/logrotate.d/%{name} -%{_bindir}/* -%{_sysconfdir}/init.d/%{name} -/usr/share/proxysql/tools/proxysql_galera_checker.sh -/usr/share/proxysql/tools/proxysql_galera_writer.pl - -%changelog diff --git a/docker/images/proxysql/rhel-compliant/rpmmacros/rpmbuild/SPECS/proxysql.spec b/docker/images/proxysql/rhel-compliant/rpmmacros/rpmbuild/SPECS/proxysql.spec index 98d5ad5255..7f152a552a 100644 --- a/docker/images/proxysql/rhel-compliant/rpmmacros/rpmbuild/SPECS/proxysql.spec +++ b/docker/images/proxysql/rhel-compliant/rpmmacros/rpmbuild/SPECS/proxysql.spec @@ -2,14 +2,14 @@ %define debug_package %{nil} %define __os_install_post %{_dbpath}/brp-compress -Summary: A high-performance MySQL proxy +Summary: A high-performance MySQL and PostgreSQL proxy Name: proxysql Version: %{version} Release: 1 License: GPL-3.0-only Source: %{name}-%{version}.tar.gz URL: https://proxysql.com/ -Requires: gnutls +Requires: gnutls, (openssl >= 3.0.0 or openssl3 >= 3.0.0) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description diff --git a/docker/images/proxysql/suse-compliant/rpmmacros/rpmbuild/SPECS/proxysql.spec b/docker/images/proxysql/suse-compliant/rpmmacros/rpmbuild/SPECS/proxysql.spec index 51e14fd05e..cf82275ba7 100644 --- a/docker/images/proxysql/suse-compliant/rpmmacros/rpmbuild/SPECS/proxysql.spec +++ b/docker/images/proxysql/suse-compliant/rpmmacros/rpmbuild/SPECS/proxysql.spec @@ -2,14 +2,14 @@ %define debug_package %{nil} %define __os_install_post %{_dbpath}/brp-compress -Summary: A high-performance MySQL proxy +Summary: A high-performance MySQL and PostgreSQL proxy Name: proxysql Version: %{version} Release: 1 License: GPL-3.0-only Source: %{name}-%{version}.tar.gz URL: https://proxysql.com/ -Requires: gnutls +Requires: gnutls, (openssl >= 3.0.0 or openssl3 >= 3.0.0) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description