@@ -67,6 +67,7 @@ RUN apt-get -y update && \
6767 less \
6868 nano \
6969 ripgrep \
70+ subversion \
7071 zsh && \
7172 # Reduce image footprint (not that it matters given the size of the above)
7273 apt-get -y clean && \
@@ -82,7 +83,7 @@ ENV LC_ALL en_US.UTF-8
8283RUN npm install -g bower
8384
8485# Install idnits
85- ADD https://tools.ietf.org/ tools/idnits/idnits /usr/local/bin/
86+ ADD https://raw.githubusercontent.com/ietf- tools/idnits-mirror/main /idnits /usr/local/bin/
8687RUN chmod +rx /usr/local/bin/idnits
8788
8889# Install current datatracker python dependencies
@@ -114,13 +115,16 @@ RUN sed -i 's/#force_color_prompt=/force_color_prompt=/' /root/.bashrc
114115ADD https://www.ietf.org/lib/dt/sprint/ietf_utf8.sql.gz /
115116RUN pigz -v -d /ietf_utf8.sql.gz && \
116117 sed -i -e 's/ENGINE=MyISAM/ENGINE=InnoDB/' /ietf_utf8.sql
117- RUN service mariadb start && \
118+ # see https://dba.stackexchange.com/a/83385
119+ RUN sed -i 's/\[ mysqld\] /\[ mysqld\]\n innodb_buffer_pool_size = 1G\n innodb_log_buffer_size = 128M\n innodb_log_file_size = 256M\n innodb_write_io_threads = 8\n innodb_flush_log_at_trx_commit = 0/' /etc/mysql/mariadb.conf.d/50-server.cnf && \
120+ service mariadb start --innodb-doublewrite=0 && \
118121 echo "This sequence will take a long time, please be patient" && \
119122 mysqladmin -u root --default-character-set=utf8 create ietf_utf8 && \
120123 bash -c "cd /mariadb-sys-master && mysql --user root < sys_10.sql" && \
121124 bash -c "mysql --user root ietf_utf8 <<< \" GRANT ALL PRIVILEGES ON *.* TO django@localhost IDENTIFIED BY 'RkTkDPFnKpko'; FLUSH PRIVILEGES;\" " && \
122125 bash -c "mysql --user=django --password=RkTkDPFnKpko -f ietf_utf8 < /ietf_utf8.sql" && \
123126 service mariadb stop && \
127+ sed -i 's/^innodb_.*//g' /etc/mysql/mariadb.conf.d/50-server.cnf && \
124128 rm -rf /ietf_utf8.sql /mariadb-sys-master && \
125129 mv /var/lib/mysql /
126130
0 commit comments