mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-21 21:48:42 +00:00
fix(install/bundle): mysqld cannot start due to overlayfs of docker
This is an old enough bug while using MySQL version 5.5 with Ubuntu 14.04. According to these issues form docker or moby repository: https://github.com/docker/for-linux/issues/72 https://github.com/moby/moby/issues/35503 overlayfs only supports a subset of the POSIX standard. But the problem does not arise when using aufs. We do a little trick to MAKE MYSQL GREAT AGAIN. NOTICE: Only people who are using docker may face this problem. If you are using a bare-metal system or just running a virtual machine, executing the installation script without using container works fine.
This commit is contained in:
parent
de24c3c08b
commit
47320c8758
@ -8,7 +8,8 @@ RUN cd ~ && git clone https://github.com/UniversalOJ/UOJ-System.git --depth 1 -b
|
||||
#Install environment and set startup script
|
||||
RUN cd ~/UOJ-System/install/bundle && bash install.sh -e && echo "\
|
||||
#!/bin/bash\n\
|
||||
if [ ! -f "/var/svn/.UOJSetupDone" ]; then\n\
|
||||
chown -R mysql:mysql /var/lib/mysql /var/run/mysqld\n\
|
||||
if [ ! -f \"/var/svn/.UOJSetupDone\" ]; then\n\
|
||||
cd ~/UOJ-System/install/bundle && bash install.sh -c\n\
|
||||
fi\n\
|
||||
service ntp start\n\
|
||||
|
Loading…
Reference in New Issue
Block a user