Abhilash Raj pushed to branch master at GNU Mailman / Mailman Core


Commits:
31811d06 by Abhilash Raj at 2022-07-27T14:50:08+00:00
Update MySQL configuration for local testing

- - - - -
59a7cfa0 by Abhilash Raj at 2022-07-27T15:18:39+00:00
Merge branch 'devcontainer' into 'master'

Update MySQL configuration for local testing

See merge request mailman/mailman!1024
- - - - -


4 changed files:

- + .gitpod.yml
- dev/docker-compose.yaml
- dev/mysql.cfg
- dev/run-mysql.sh


Changes:

=====================================
.gitpod.yml
=====================================
@@ -0,0 +1,11 @@
+# This configuration file was automatically generated by Gitpod.
+# Please adjust to your needs (see 
https://www.gitpod.io/docs/config-gitpod-file)
+# and commit this file to your remote git repository to share the goodness 
with others.
+
+tasks:
+  - init: |
+    python3 -m venv venv
+    source venv/bin/activate
+    pip install -U tox pip docker-compose
+
+


=====================================
dev/docker-compose.yaml
=====================================
@@ -20,7 +20,7 @@ services:
       MYSQL_USER: mailman
       MYSQL_PASSWORD: mailmanpass
       MYSQL_RANDOM_ROOT_PASSWORD: "yes"
-    image: mariadb:10.5
-    ports: 
-      - "3306"
+    image: mysql:5.6
+    ports:
+      - "3306:3306"
     command: --character-set-server=utf8mb4 
--collation-server=utf8mb4_unicode_ci
\ No newline at end of file


=====================================
dev/mysql.cfg
=====================================
@@ -1,3 +1,3 @@
 [database]
 class: mailman.database.mysql.MySQLDatabase
-url: 
mysql+pymysql://mailman:mailmanpass@172.20.0.2/mailmandb?charset=utf8&use_unicode=1
\ No newline at end of file
+url: 
mysql+pymysql://mailman:mailmanpass@127.0.0.1:3306/mailmandb?charset=utf8&use_unicode=1
\ No newline at end of file


=====================================
dev/run-mysql.sh
=====================================
@@ -1,2 +1,2 @@
 #!/bin/bash
-MAILMAN_EXTRA_TESTING_CFG=mysql.cfg tox -e py38-nocov-mysql -- $@
\ No newline at end of file
+MAILMAN_EXTRA_TESTING_CFG=./dev/mysql.cfg tox -e py38-nocov-mysql -- $@
\ No newline at end of file



View it on GitLab: 
https://gitlab.com/mailman/mailman/-/compare/35e3c87260f244705ac96f62b2d580e314b38aab...59a7cfa068fe61fe517f4bbc79c2174f2e9ff2ef

-- 
View it on GitLab: 
https://gitlab.com/mailman/mailman/-/compare/35e3c87260f244705ac96f62b2d580e314b38aab...59a7cfa068fe61fe517f4bbc79c2174f2e9ff2ef
You're receiving this email because of your account on gitlab.com.


_______________________________________________
Mailman-checkins mailing list -- mailman-checkins@python.org
To unsubscribe send an email to mailman-checkins-le...@python.org
https://mail.python.org/mailman3/lists/mailman-checkins.python.org/
Member address: arch...@jab.org

Reply via email to