After a bit of fiddling around with the data container i finally got it running. Unfortunately i’m stuck with the web container in my multisite installation.
Here’s the error i get:
FAILED
--------------------
RuntimeError: cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate failed with return #<Process::Status: pid 164 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:105:in `spawn'
exec failed with the params "cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate"
$longnumber
FAILED TO BOOTSTRAP
and here’s my cleaned up web.yml
templates:
- "templates/sshd.template.yml"
- "templates/web.template.yml"
- "templates/web.ratelimited.template.yml"
expose:
- "80:80"
- "2222:22"
params:
version: tests-passed
env:
LANG: en_US.UTF-8
UNICORN_WORKERS: 4
DISCOURSE_DB_SOCKET: ''
DISCOURSE_DB_USER: discourse
DISCOURSE_DB_PASSWORD: 'mypw'
DISCOURSE_DB_HOST: 172.17.0.74
DISCOURSE_REDIS_HOST: 172.17.0.74
DISCOURSE_DEVELOPER_EMAILS: 'my@adminemail.com'
DISCOURSE_HOSTNAME: 'first.discourse.org'
DISCOURSE_SMTP_ADDRESS: smtp.mandrillapp.com # (mandatory)
DISCOURSE_SMTP_PORT: 587 # (optional)
DISCOURSE_SMTP_USER_NAME: mandrill@adminemail.com # (optional)
DISCOURSE_SMTP_PASSWORD: mandrillkey # (optional)
#DISCOURSE_CDN_URL: //discourse-cdn.example.com
volumes:
- volume:
host: /var/discourse/shared/webonly
guest: /shared
- volume:
host: /var/discourse/shared/web/log/var-log
guest: /var/log
hooks:
after_code:
- file:
path: /var/www/discourse/config/multisite.yml
contents: |
secondsite:
adapter: postgresql
database: second_db
username: discourse
password: mypw
pool: 25
timeout: 5000
host: 172.17.0.74
db_id: 2
host_names:
- second.discourse.org
after_code:
- exec:
cd: $home/plugins
cmd:
- mkdir -p plugins
- git clone https://github.com/discourse/docker_manager.git
after_web:
- exec: cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate
## Remember, this is YAML syntax - you can only have one block with a name
run:
- exec: echo "Beginning of custom commands"
- exec: echo "End of custom commands"
- exec: awk -F\# '{print $1;}' ~/.ssh/authorized_keys | awk 'BEGIN { print "Authorized SSH keys for this container:"; } NF>=2 {print $NF;}'
Probably i’m just overseeing anything easy but i’m just stuck and hope someone can help here.
Thanks,
Frank