Code Monkey home page Code Monkey logo

compose-discourse's Introduction

compose-discourse's People

Contributors

clkao avatar jayfk avatar lvnilesh avatar pierreozoux avatar sallyswartz avatar unteem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

compose-discourse's Issues

Increase POP3 polling frequency

The standard Discourse has a default POP3 polling frequency of 5 minutes.

If we want to propose Discourse as a replacement to standard mailing lists (especially mailman2) then we need to get a more instant workflow.

According to the post above, this should be able to change in:

app/jobs/scheduled/poll_mailbox.rb

It should be ok as long as the polling mailbox is hosted on our own domains. To guarantee this, some logic could be added to only increase the frequency for in-house mailboxes.

The first thing this does is fall flat.

The instructions in the README.md are incomplete. Please finish and maintain this project because it would be wonderful if the Discourse people would ditch that stupid install script that hes so in love with why embrace docker and not really embrace docker its cute that they use it but its embarassing that they can't figure out how containers work even this late in the docker game.

root@s:~|⇒  git clone https://github.com/indiehosters/discourse.git
Cloning into 'discourse'...
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 191 (delta 0), reused 0 (delta 0), pack-reused 190
Receiving objects: 100% (191/191), 37.41 KiB | 497.00 KiB/s, done.
Resolving deltas: 100% (97/97), done.
root@s:~|cd discourse
root@s:~/discourse|master ⇒  ./scripts/install
++ tr -dc _A-Z-a-z-0-9
++ head -c32
++ echo
+ PG_PASSWORD=v0i-qkzWy78r8cXKjZrre_9XY536sQiE
./scripts/install: line 5: MAIL_HOST: unbound variable
root@s:~/discourse|master ⇒  docker-compose up
WARNING: The SUBNET variable is not set. Defaulting to a blank string.
ERROR: Network lb_web declared as external, but could not be found. Please create the network manually using `docker network create lb_web` and try again.
root@s:~/discourse|master ⇒```

Failed to run postgres

The container is trying to hard link to a volume and there is a known issue boot2docker on the mac.

I believe this might be the reason for issue #1

postgres_1 | The files belonging to this database system will be owned by user "postgres".
postgres_1 | This user must also own the server process.
postgres_1 | 
postgres_1 | The database cluster will be initialized with locale "en_US.utf8".
postgres_1 | The default database encoding has accordingly been set to "UTF8".
postgres_1 | The default text search configuration will be set to "english".
postgres_1 | 
postgres_1 | Data page checksums are disabled.
postgres_1 | 
postgres_1 | fixing permissions on existing directory /var/lib/postgresql/data ... ok
postgres_1 | creating subdirectories ... initdb: could not create directory "/var/lib/postgresql/data/global": Permission denied
postgres_1 | initdb: removing contents of data directory "/var/lib/postgresql/data"
peddlercore_postgres_1 exited with code 1

See docker-library/postgres#60

Cannot get emails

Hi there,

Can anyone give a Gmail SMTP configuration ? I cannot make neither my poste.io smtp nor a test gmail account smtp working .... (I get no error anywhere, logs, http response codes, etc.) but I don't receive any mail at all ...

I am stuck at the admin account creation, so frustrating :(

New Version Problem to Install

version of the conteiner 2.2.0.beta4

When installing it gave me the error:

==================================================

  • docker-compose run app bash -c 'rake admin:create'
    Starting compose-discourse_redis_1 ... done
    Starting compose-discourse_postgres_1 ... done
    rake aborted!
    Gem::LoadError: You have already activated rake 12.3.0, but your Gemfile requires rake 12.3.1. Prepending bundle exec to your command may solve this.
    /home/discourse/discourse/config/boot.rb:11:in <top (required)>' /home/discourse/discourse/config/application.rb:14:in <top (required)>'
    /home/discourse/discourse/Rakefile:5:in `<top (required)>'
    (See full trace by running task with --trace)
    =================================================

to solve it, I added "bundle exec " to the second "docker-compose run" command.

But I think the real solution would be to fix in the conteiner.

Fail to run

$ docker-compose run discourse bash -c "sleep 3 && rake db:migrate assets:precompile"
ERROR: No such service: discourse

Am I missing something?

Updated Discourse base image does not have same instructions

Updating the application with

docker-compose pull
docker-compose stop && docker-compose rm -f
docker-compose run app bash -c "sleep 3 && rake db:migrate assets:precompile"
docker-compose up -d

does not have the intended effect of a running application. Instead, the app container would always exit with

app_1       | => Booting Puma
app_1       | => Rails 5.1.4 application starting in production 
app_1       | => Run `rails server -h` for more startup options
app_1       | /home/discourse/discourse/config/initializers/100-verify_config.rb:29:in `<top (required)>': Assets have not been precompiled (RuntimeError)
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:286:in `load'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:286:in `block in load'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:286:in `load'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/engine.rb:655:in `block in load_config_initializer'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/notifications.rb:168:in `instrument'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/engine.rb:654:in `load_config_initializer'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/engine.rb:611:in `each'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/engine.rb:611:in `block in <class:Engine>'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/initializable.rb:30:in `instance_exec'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/initializable.rb:30:in `run'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/initializable.rb:59:in `block in run_initializers'
app_1       |   from /usr/local/lib/ruby/2.4.0/tsort.rb:228:in `block in tsort_each'
app_1       |   from /usr/local/lib/ruby/2.4.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
app_1       |   from /usr/local/lib/ruby/2.4.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
app_1       |   from /usr/local/lib/ruby/2.4.0/tsort.rb:431:in `each_strongly_connected_component_from'
app_1       |   from /usr/local/lib/ruby/2.4.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/initializable.rb:48:in `each'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/initializable.rb:48:in `tsort_each_child'
app_1       |   from /usr/local/lib/ruby/2.4.0/tsort.rb:415:in `call'
app_1       |   from /usr/local/lib/ruby/2.4.0/tsort.rb:415:in `each_strongly_connected_component_from'
app_1       |   from /usr/local/lib/ruby/2.4.0/tsort.rb:349:in `block in each_strongly_connected_component'
app_1       |   from /usr/local/lib/ruby/2.4.0/tsort.rb:347:in `each'
app_1       |   from /usr/local/lib/ruby/2.4.0/tsort.rb:347:in `call'
app_1       |   from /usr/local/lib/ruby/2.4.0/tsort.rb:347:in `each_strongly_connected_component'
app_1       |   from /usr/local/lib/ruby/2.4.0/tsort.rb:226:in `tsort_each'
app_1       |   from /usr/local/lib/ruby/2.4.0/tsort.rb:205:in `tsort_each'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/initializable.rb:58:in `run_initializers'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/application.rb:353:in `initialize!'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/railtie.rb:185:in `public_send'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/railtie.rb:185:in `method_missing'
app_1       |   from /home/discourse/discourse/config/environment.rb:5:in `<top (required)>'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
app_1       |   from config.ru:2:in `block in <main>'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/builder.rb:55:in `instance_eval'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/builder.rb:55:in `initialize'
app_1       |   from config.ru:in `new'
app_1       |   from config.ru:in `<main>'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/builder.rb:49:in `eval'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/builder.rb:49:in `new_from_string'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/builder.rb:40:in `parse_file'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/server.rb:319:in `build_app_and_options_from_config'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/server.rb:219:in `app'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:24:in `app'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/server.rb:354:in `wrapped_app'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/server.rb:283:in `start'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:44:in `start'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:135:in `block in perfor
m'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:130:in `tap'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:130:in `perform'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/command/base.rb:63:in `perform'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/command.rb:44:in `invoke'
app_1       |   from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/commands.rb:16:in `<top (required)>'
app_1       |   from bin/rails:4:in `require'
app_1       |   from bin/rails:4:in `<main>'
app_1       | 
app_1       |       Assets have not been precompiled. Please run the following command
app_1       |       before starting the rails server in production mode:
app_1       | 
app_1       |           rake assets:precompile
app_1       | 
app_1       | Exiting

Please Update Readme

To run it on my desktop I had to execute the following before script/install

export global MAIL_USER=xxxx
export global MAIL_HOST=xxx
export global MAIL_PORT=xxx
export global MAIL_PASS=xxx
export global URL=xxx

where xxx are appropriated values for each parameter.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.