1 # This template configures the container for importing emails and mbox files.
4 home: /var/www/discourse
22 path: /usr/local/bin/import_mbox.sh
28 chown discourse /shared/import/settings.yml
29 chown discourse -R /shared/import/data
32 echo "The mbox import is starting..."
34 su discourse -c 'IMPORT=1 bundle exec ruby script/import_scripts/mbox-experimental.rb /shared/import/settings.yml'
39 - mkdir -p /shared/import/data
40 - chown discourse -R /shared/import
41 - cp -n script/import_scripts/mbox/settings.yml /shared/import/settings.yml
47 - apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y libmysqlclient-dev libsqlite3-dev
48 - su discourse -c 'IMPORT=1 bundle install --no-deployment --without test --without development --path vendor/bundle'