summaryrefslogtreecommitdiffstats
path: root/ansible_collections/community/mysql/test-containers/my57-py38-pymysql093/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'ansible_collections/community/mysql/test-containers/my57-py38-pymysql093/Dockerfile')
-rw-r--r--ansible_collections/community/mysql/test-containers/my57-py38-pymysql093/Dockerfile15
1 files changed, 15 insertions, 0 deletions
diff --git a/ansible_collections/community/mysql/test-containers/my57-py38-pymysql093/Dockerfile b/ansible_collections/community/mysql/test-containers/my57-py38-pymysql093/Dockerfile
new file mode 100644
index 000000000..6b0f519ab
--- /dev/null
+++ b/ansible_collections/community/mysql/test-containers/my57-py38-pymysql093/Dockerfile
@@ -0,0 +1,15 @@
+FROM quay.io/ansible/ubuntu1804-test-container:main
+# ubuntu1804 comes with mysql-client-5.7
+
+# iproute2 # To grab docker network gateway address
+RUN apt-get update -y && \
+ DEBIAN_FRONTEND=noninteractive apt-get upgrade -y --no-install-recommends && \
+ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
+ python3.8 \
+ mysql-client \
+ iproute2
+
+RUN python3.8 -m pip install --disable-pip-version-check --no-cache-dir pymysql==0.9.3
+
+ENV container=docker
+CMD ["/sbin/init"]