Skip to content

Commit

Permalink
Merge pull request #773 from jmrenouard/master
Browse files Browse the repository at this point in the history
Dockerfile for MySQLtuner
  • Loading branch information
jmrenouard authored Feb 16, 2024
2 parents ac43eee + 936843f commit 4a7d0e0
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 83 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ result*
result_*
sql/*.sql
sql/*.csv
cve.csv
cve.csv
default*.cnf
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM ubuntu:latest

LABEL maintainer="[email protected]"

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt upgrade -y && apt-get install -yq --no-install-recommends \
apt-utils \
curl \
wget \
perl \
perl-doc \
mysql-client \
libjson-perl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& echo "Downloading MySQL Tuner script ..." \
&& wget --no-check-certificate https://raw.githubusercontent.com/major/MySQLTuner-perl/master/mysqltuner.pl -O /mysqltuner.pl \
&& wget --no-check-certificate https://raw.githubusercontent.com/major/MySQLTuner-perl/master/basic_passwords.txt -O /basic_passwords.txt \
&& wget --no-check-certificate https://raw.githubusercontent.com/major/MySQLTuner-perl/master/vulnerabilities.csv -O /vulnerabilities.csv

ENTRYPOINT ["perl", "/mysqltuner.pl", "--passwordfile", "/basic_passwords.txt" , "--cvefile", "/vulnerabilities.txt", "--nosysstat", "--defaults-file", "/defaults.cnf" ]
CMD ["--verbose"]
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ generate_cve:
git add ./vulnerabilities.csv
git commit -m "Generate CVE list at $(shell date --iso=seconds)"

generate_version_file:
grep "# mysqltuner.pl - Version" ./mysqltuner.pl | awk '{ print $NF}' > CURRENT_VERSION.txt

generate_features:
perl ./build/genFeatures.sh
git add ./FEATURES.md
Expand Down Expand Up @@ -68,5 +71,10 @@ increment_major_version:
git tag -a v$(UPDATE_MINOR_VERSION) -m "Generate $(UPDATE_MAJOR_VERSION) major version at $(shell date --iso=seconds)"
git push --tags

docker_build:
docker build .
push:
git push
git push

pull:
git pull
81 changes: 0 additions & 81 deletions v2.5.2.txt

This file was deleted.

0 comments on commit 4a7d0e0

Please sign in to comment.