(EDIT: deleted previous issues due to me having zero experience with docker and containers)’
I’ve gotten the phpbb3.rb script to work within the container and gotten all dependencies solved (including bbcode-to-md!) – however, I cannot get MySQL to connect properly.
The final command I’m running is:
RAILS_ENV=production bundle exec ruby script/import_scripts/phpbb3.rb bbcode-to-md
from within the Docker container. When I run this, the error message I get is:
loading existing groups... loading existing users... loading existing categories... loading existing posts... loading existing topics... /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/mysql2-0.3.16/lib/mysql2/client.rb:70:in `connect': Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) (Mysql2::Error) from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/mysql2-0.3.16/lib/mysql2/client.rb:70:in `initialize' from script/import_scripts/phpbb3.rb:26:in `new' from script/import_scripts/phpbb3.rb:26:in `initialize' from script/import_scripts/phpbb3.rb:391:in `new' from script/import_scripts/phpbb3.rb:391:in `<main>'
Now, the MySQL that I’ve installed the previous phpbb3 database to is NOT installed within the container, but on the server itself. Is there some hoodoo I need to perform to get the MySQL accessible from within docker?