Skip to content

Commit 13d4e63

Browse files
committed
Docker related changes: Mark cleandb executable. Clean settings_local and settings_local_sqlitetest of flakes and types issues.
- Legacy-Id: 19637
1 parent 1a266d6 commit 13d4e63

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

docker/cleandb

100644100755
File mode changed.

docker/configs/settings_local.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@
4040

4141
TRAC_WIKI_DIR_PATTERN = "test/wiki/%s"
4242
TRAC_SVN_DIR_PATTERN = "test/svn/%s"
43-
TRAC_CREATE_ADHOC_WIKIS = [
44-
] # type: List[Tuple[str, str, str]]
4543

4644
MEDIA_BASE_DIR = 'test'
4745
MEDIA_ROOT = MEDIA_BASE_DIR + '/media/'

docker/configs/settings_local_sqlitetest.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
import os
1313
from ietf.settings import * # pyflakes:ignore
14-
from ietf.settings import TEST_CODE_COVERAGE_CHECKER, BASE_DIR, PHOTOS_DIRNAME
14+
from ietf.settings import TEST_CODE_COVERAGE_CHECKER
1515
import debug # pyflakes:ignore
1616
debug.debug = True
1717

@@ -65,8 +65,6 @@ def __getitem__(self, item):
6565

6666
TRAC_WIKI_DIR_PATTERN = "test/wiki/%s"
6767
TRAC_SVN_DIR_PATTERN = "test/svn/%s"
68-
TRAC_CREATE_ADHOC_WIKIS = [
69-
] # type: List[Tuple[str, str, str]]
7068

7169
MEDIA_BASE_DIR = 'test'
7270
MEDIA_ROOT = MEDIA_BASE_DIR + '/media/'

docker/db.Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ ENV LC_ALL en_US.UTF-8
2424
# Turn on mariadb performance_schema
2525
RUN sed -i 's/\[mysqld\]/\[mysqld\]\nperformance_schema=ON/' /etc/mysql/mariadb.conf.d/50-server.cnf
2626

27+
# Set mariadb default charset to utf8 instead of utf8mb4 to match production
28+
RUN sed -i 's/utf8mb4/utf8/' /etc/mysql/mariadb.conf.d/50-server.cnf
29+
RUN sed -i 's/unicode_ci/general_ci/' /etc/mysql/mariadb.conf.d/50-server.cnf
30+
2731
# Make the mariadb sys schema available for possible installation
2832
# We would normally use the next line, but that has a bug:
2933
# ADD https://github.com/FromDual/mariadb-sys/archive/master.zip /

0 commit comments

Comments
 (0)