Giter Club home page Giter Club logo

redmine's People

Contributors

clairton avatar docker-library-bot avatar hamster21 avatar j0wi avatar jongleurnin avatar jouve avatar laurentgoderre avatar martincizek avatar mateusdemboski avatar networkeng avatar nishidayuya avatar okkez avatar pcworld avatar rbayliss avatar sealemar avatar taikii avatar tianon avatar yosifkit 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  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  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  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

redmine's Issues

Installing plugins

Hi,

I'm encountering a bit of trouble trying to add some plugins on my redmine container.
I've mounted a volume on my host to the plugin directory on the redmine container, and launched it.
Here is the command i use to launch my database container:
docker run -d --name redmine-db -e POSTGRES_PASSWORD=secret -e POSTGRES_USER=redmine postgres
And the one i use to start my redmine container:
docker run -d --name redmine --link redmine-db:postgres -p 3000:3000 -v /home/apside/docker/redmine/files:/usr/src/redmine/files -v /home/apside/docker/redmine/plugins:/usr/src/redmine/plugins redmine
But i'm always getting the same write access error on the Gemfile.lock, as bundle install is run as root.
Here is the log i'm facing for hours with no ideas on how to resolve it:

/usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/shared_helpers.rb:107:in rescue in filesystem_access': There was an error while trying to write to/usr/src/redmine/Gemfile.lock`. It is likely that you need to grant write permissions for that path. (Bundler::PermissionError)

Is there any workaround ? Any ideas of what am I doing wrong ?
I'm used to work with ruby and rails, and have already faced those kind of issues. Mainly, you've got those kind of errors, when you try running bundle install as root. But, working inside a docker container, i have no real choices about it.

I've also tried running my container with the --user redmine as an argument, but got another write acces error, before it can access the right directory....

I'm totally stuck at this point... Any ideas ?

Having trouble changing the nginx config file permanently

Hey, i need to serve redmine at a subdir and that implies changing nginx's config but the problem is this file seems to be generated automatically by something somewhere, resides in a randomly generated /tmp subdir and i have no idea how to make my changes permanent.

what i have is a docker composition that exposes port 3000 on the docker host.
This docker host runs it's own production standalone debian jessie packaged nginx that has nothing to do with docker whatsoever and i want it to rev proxy the dockerized redmine at mywebsite.com/redmine

Really lost here

missing environment variables when link with PostgreSQL

Hi, I am run redmine with PostgreSQL database container, usually I ran:
docker run -d --name redmine-new --link redmine-postgres-9.5:postgres -p 32780:3000 redmine:3.3.1
it always work when linking with MySQL, but seems failed when linking with PostgreSQL.

After docker logs -f, it shows:

warning: missing REDMINE_DB_MYSQL or REDMINE_DB_POSTGRES environment variables

*** Using sqlite3 as fallback. ***

Please help, thank you.

Default docker-compose.yml doesn't work - Mysql2::Error: Can't connect to MySQL server on 'redmine' (111)

Seems like default docker-compose.yml doesn't work.

Full log after docker-compose up:

pavel@pavel-Inspiron-3542:/projects/builds/redmine$ docker-compose up
Recreating redmine_db_1
Recreating redmine_redmine_1
Attaching to redmine_db_1, redmine_redmine_1
db_1       | 2017-04-03  7:04:15 140247141406656 [Note] mysqld (mysqld 10.1.22-MariaDB-1~jessie) starting as process 1 ...
db_1       | 2017-04-03  7:04:15 140247141406656 [Note] InnoDB: Using mutexes to ref count buffer pool pages
db_1       | 2017-04-03  7:04:15 140247141406656 [Note] InnoDB: The InnoDB memory heap is disabled
db_1       | 2017-04-03  7:04:15 140247141406656 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
db_1       | 2017-04-03  7:04:15 140247141406656 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
db_1       | 2017-04-03  7:04:15 140247141406656 [Note] InnoDB: Compressed tables use zlib 1.2.8
db_1       | 2017-04-03  7:04:15 140247141406656 [Note] InnoDB: Using Linux native AIO
db_1       | 2017-04-03  7:04:15 140247141406656 [Note] InnoDB: Using SSE crc32 instructions
db_1       | 2017-04-03  7:04:15 140247141406656 [Note] InnoDB: Initializing buffer pool, size = 256.0M
db_1       | 2017-04-03  7:04:15 140247141406656 [Note] InnoDB: Completed initialization of buffer pool
db_1       | 2017-04-03  7:04:15 140247141406656 [Note] InnoDB: Highest supported file format is Barracuda.
db_1       | 2017-04-03  7:04:15 140247141406656 [Note] InnoDB: 128 rollback segment(s) are active.
db_1       | 2017-04-03  7:04:15 140247141406656 [Note] InnoDB: Waiting for purge to start
db_1       | 2017-04-03  7:04:15 140247141406656 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.35-80.0 started; log sequence number 1616839
db_1       | 2017-04-03  7:04:15 140246364686080 [Note] InnoDB: Dumping buffer pool(s) not yet started
db_1       | 2017-04-03  7:04:15 140247141406656 [Note] Plugin 'FEEDBACK' is disabled.
db_1       | 2017-04-03  7:04:15 140247141406656 [Note] Server socket created on IP: '::'.
db_1       | 2017-04-03  7:04:15 140247141406656 [Warning] 'proxies_priv' entry '@% root@8fa95dc36371' ignored in --skip-name-resolve mode.
db_1       | 2017-04-03  7:04:15 140247141406656 [Note] mysqld: ready for connections.
db_1       | Version: '10.1.22-MariaDB-1~jessie'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
redmine_1  | The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32 java`.
redmine_1  | The dependency activerecord-jdbc-adapter (~> 1.3.2) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
redmine_1  | The dependency activerecord-jdbcmysql-adapter (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
redmine_1  | Fetching gem metadata from https://rubygems.org/..........
redmine_1  | Fetching version metadata from https://rubygems.org/..
redmine_1  | Fetching dependency metadata from https://rubygems.org/.
redmine_1  | Resolving dependencies...
redmine_1  | Using rake 12.0.0
redmine_1  | Using i18n 0.8.1
redmine_1  | Using json 1.8.6
redmine_1  | Using minitest 5.10.1
redmine_1  | Using thread_safe 0.3.6
redmine_1  | Using builder 3.2.3
redmine_1  | Using erubis 2.7.0
redmine_1  | Using mini_portile2 2.1.0
redmine_1  | Using rack 1.6.5
redmine_1  | Using mime-types-data 3.2016.0521
redmine_1  | Using arel 6.0.4
redmine_1  | Using public_suffix 2.0.5
redmine_1  | Using bundler 1.14.6
redmine_1  | Using coderay 1.1.1
redmine_1  | Using concurrent-ruby 1.0.5
redmine_1  | Using htmlentities 4.3.4
redmine_1  | Using thor 0.19.4
redmine_1  | Using mimemagic 0.3.2
redmine_1  | Using mysql2 0.3.21
redmine_1  | Using net-ldap 0.12.1
redmine_1  | Using ruby-openid 2.3.0
redmine_1  | Using rbpdf-font 1.19.1
redmine_1  | Using redcarpet 3.3.4
redmine_1  | Using request_store 1.0.5
redmine_1  | Using rmagick 2.16.0
redmine_1  | Using tzinfo 1.2.3
redmine_1  | Using nokogiri 1.7.1
redmine_1  | Using rack-test 0.6.3
redmine_1  | Using mime-types 3.1
redmine_1  | Using addressable 2.5.1
redmine_1  | Using sprockets 3.7.1
redmine_1  | Using rack-openid 1.4.2
redmine_1  | Using rbpdf 1.19.1
redmine_1  | Using activesupport 4.2.7.1
redmine_1  | Using loofah 2.0.3
redmine_1  | Using mail 2.6.4
redmine_1  | Using css_parser 1.4.10
redmine_1  | Using rails-deprecated_sanitizer 1.0.3
redmine_1  | Using globalid 0.3.7
redmine_1  | Using activemodel 4.2.7.1
redmine_1  | Using rails-html-sanitizer 1.0.3
redmine_1  | Using roadie 3.2.1
redmine_1  | Using rails-dom-testing 1.0.8
redmine_1  | Using activejob 4.2.7.1
redmine_1  | Using activerecord 4.2.7.1
redmine_1  | Using protected_attributes 1.1.3
redmine_1  | Using actionview 4.2.7.1
redmine_1  | Using actionpack 4.2.7.1
redmine_1  | Using actionmailer 4.2.7.1
redmine_1  | Using actionpack-action_caching 1.2.0
redmine_1  | Using actionpack-xml_parser 1.0.2
redmine_1  | Using railties 4.2.7.1
redmine_1  | Using sprockets-rails 3.2.0
redmine_1  | Using jquery-rails 3.1.4
redmine_1  | Using roadie-rails 1.1.1
redmine_1  | Using rails 4.2.7.1
redmine_1  | Bundle complete! 31 Gemfile dependencies, 56 gems now installed.
redmine_1  | Gems in the groups development and test were not installed.
redmine_1  | Bundled gems are installed into /usr/local/bundle.
redmine_1  | rake aborted!
redmine_1  | Mysql2::Error: Can't connect to MySQL server on 'redmine' (111)
redmine_1  | /usr/local/bundle/gems/mysql2-0.3.21/lib/mysql2/client.rb:70:in `connect'
redmine_1  | /usr/local/bundle/gems/mysql2-0.3.21/lib/mysql2/client.rb:70:in `initialize'
redmine_1  | /usr/local/bundle/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/mysql2_adapter.rb:18:in `new'
redmine_1  | /usr/local/bundle/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/mysql2_adapter.rb:18:in `mysql2_connection'
redmine_1  | /usr/local/bundle/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:438:in `new_connection'
redmine_1  | /usr/local/bundle/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:448:in `checkout_new_connection'
redmine_1  | /usr/local/bundle/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:422:in `acquire_connection'
redmine_1  | /usr/local/bundle/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:349:in `block in checkout'
redmine_1  | /usr/local/bundle/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:348:in `checkout'
redmine_1  | /usr/local/bundle/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:263:in `block in connection'
redmine_1  | /usr/local/bundle/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:262:in `connection'
redmine_1  | /usr/local/bundle/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:571:in `retrieve_connection'
redmine_1  | /usr/local/bundle/gems/activerecord-4.2.7.1/lib/active_record/connection_handling.rb:113:in `retrieve_connection'
redmine_1  | /usr/local/bundle/gems/activerecord-4.2.7.1/lib/active_record/connection_handling.rb:87:in `connection'
redmine_1  | /usr/local/bundle/gems/activerecord-4.2.7.1/lib/active_record/model_schema.rb:230:in `table_exists?'
redmine_1  | /usr/local/bundle/gems/activerecord-4.2.7.1/lib/active_record/attribute_methods/primary_key.rb:97:in `get_primary_key'
redmine_1  | /usr/local/bundle/gems/activerecord-4.2.7.1/lib/active_record/attribute_methods/primary_key.rb:85:in `reset_primary_key'
redmine_1  | /usr/local/bundle/gems/activerecord-4.2.7.1/lib/active_record/attribute_methods/primary_key.rb:73:in `primary_key'
redmine_1  | /usr/local/bundle/gems/protected_attributes-1.1.3/lib/active_record/mass_assignment_security/attribute_assignment.rb:15:in `attributes_protected_by_default'
redmine_1  | /usr/local/bundle/gems/protected_attributes-1.1.3/lib/active_model/mass_assignment_security.rb:337:in `block in protected_attributes_configs'
redmine_1  | /usr/local/bundle/gems/protected_attributes-1.1.3/lib/active_model/mass_assignment_security.rb:222:in `yield'
redmine_1  | /usr/local/bundle/gems/protected_attributes-1.1.3/lib/active_model/mass_assignment_security.rb:222:in `protected_attributes'
redmine_1  | /usr/local/bundle/gems/protected_attributes-1.1.3/lib/active_model/mass_assignment_security.rb:126:in `block in attr_protected'
redmine_1  | /usr/local/bundle/gems/protected_attributes-1.1.3/lib/active_model/mass_assignment_security.rb:125:in `each'
redmine_1  | /usr/local/bundle/gems/protected_attributes-1.1.3/lib/active_model/mass_assignment_security.rb:125:in `attr_protected'
redmine_1  | /usr/src/redmine/app/models/custom_field.rb:37:in `<class:CustomField>'
redmine_1  | /usr/src/redmine/app/models/custom_field.rb:18:in `<top (required)>'
redmine_1  | /usr/local/bundle/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `require'
redmine_1  | /usr/local/bundle/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `block in require'
redmine_1  | /usr/local/bundle/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in `load_dependency'
redmine_1  | /usr/local/bundle/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `require'
redmine_1  | /usr/local/bundle/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:360:in `require_or_load'
redmine_1  | /usr/local/bundle/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:494:in `load_missing_constant'
redmine_1  | /usr/local/bundle/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:184:in `const_missing'
redmine_1  | /usr/local/bundle/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:526:in `load_missing_constant'
redmine_1  | /usr/local/bundle/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:184:in `const_missing'
redmine_1  | /usr/local/bundle/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:526:in `load_missing_constant'
redmine_1  | /usr/local/bundle/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:184:in `const_missing'
redmine_1  | /usr/local/bundle/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:526:in `load_missing_constant'
redmine_1  | /usr/local/bundle/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:184:in `const_missing'
redmine_1  | /usr/src/redmine/lib/redmine/field_format.rb:90:in `field_attributes'
redmine_1  | /usr/src/redmine/lib/redmine/field_format.rb:93:in `<class:Base>'
redmine_1  | /usr/src/redmine/lib/redmine/field_format.rb:50:in `<module:FieldFormat>'
redmine_1  | /usr/src/redmine/lib/redmine/field_format.rb:21:in `<module:Redmine>'
redmine_1  | /usr/src/redmine/lib/redmine/field_format.rb:20:in `<top (required)>'
redmine_1  | /usr/local/bundle/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `require'
redmine_1  | /usr/local/bundle/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `block in require'
redmine_1  | /usr/local/bundle/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in `load_dependency'
redmine_1  | /usr/local/bundle/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `require'
redmine_1  | /usr/src/redmine/lib/redmine.rb:40:in `<top (required)>'
redmine_1  | /usr/local/bundle/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `require'
redmine_1  | /usr/local/bundle/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `block in require'
redmine_1  | /usr/local/bundle/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in `load_dependency'
redmine_1  | /usr/local/bundle/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `require'
redmine_1  | /usr/src/redmine/config/initializers/30-redmine.rb:6:in `<top (required)>'
redmine_1  | /usr/local/bundle/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:268:in `load'
redmine_1  | /usr/local/bundle/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:268:in `block in load'
redmine_1  | /usr/local/bundle/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in `load_dependency'
redmine_1  | /usr/local/bundle/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:268:in `load'
redmine_1  | /usr/local/bundle/gems/railties-4.2.7.1/lib/rails/engine.rb:652:in `block in load_config_initializer'
redmine_1  | /usr/local/bundle/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:166:in `instrument'
redmine_1  | /usr/local/bundle/gems/railties-4.2.7.1/lib/rails/engine.rb:651:in `load_config_initializer'
redmine_1  | /usr/local/bundle/gems/railties-4.2.7.1/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
redmine_1  | /usr/local/bundle/gems/railties-4.2.7.1/lib/rails/engine.rb:615:in `each'
redmine_1  | /usr/local/bundle/gems/railties-4.2.7.1/lib/rails/engine.rb:615:in `block in <class:Engine>'
redmine_1  | /usr/local/bundle/gems/railties-4.2.7.1/lib/rails/initializable.rb:30:in `instance_exec'
redmine_1  | /usr/local/bundle/gems/railties-4.2.7.1/lib/rails/initializable.rb:30:in `run'
redmine_1  | /usr/local/bundle/gems/railties-4.2.7.1/lib/rails/initializable.rb:55:in `block in run_initializers'
redmine_1  | /usr/local/bundle/gems/railties-4.2.7.1/lib/rails/initializable.rb:44:in `each'
redmine_1  | /usr/local/bundle/gems/railties-4.2.7.1/lib/rails/initializable.rb:44:in `tsort_each_child'
redmine_1  | /usr/local/bundle/gems/railties-4.2.7.1/lib/rails/initializable.rb:54:in `run_initializers'
redmine_1  | /usr/local/bundle/gems/railties-4.2.7.1/lib/rails/application.rb:352:in `initialize!'
redmine_1  | /usr/src/redmine/config/environment.rb:14:in `<top (required)>'
redmine_1  | /usr/local/bundle/gems/railties-4.2.7.1/lib/rails/application.rb:328:in `require'
redmine_1  | /usr/local/bundle/gems/railties-4.2.7.1/lib/rails/application.rb:328:in `require_environment!'
redmine_1  | /usr/local/bundle/gems/railties-4.2.7.1/lib/rails/application.rb:457:in `block in run_tasks_blocks'
redmine_1  | /usr/local/bundle/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
redmine_1  | Tasks: TOP => db:migrate => environment
redmine_1  | (See full trace by running task with --trace)
redmine_redmine_1 exited with code 1

If any way to set sub-uri to /redmine

If any way to set sub-uri to /remdine with version 3.2.0-passenger.
when I use apache to proxy for /redmine to http://ip:3000
It don't work find.
may lack knowledge to rails + passenger for me
I search from google and I can not found vaild way to reset sub-rui to it

sorry for my poot english and thank you for your help. m(@)m

ImageMagick error when executing png gantt

If you try to extract a gantt in png format redmine does this error :

app_1  | Magick::ImageMagickError (unable to read font `' @ error/annotate.c/RenderFreetype/1127: `(null)'):
app_1  |   lib/redmine/helpers/gantt.rb:436:in `draw'
app_1  |   lib/redmine/helpers/gantt.rb:436:in `to_image'
app_1  |   app/controllers/gantts_controller.rb:44:in `block (2 levels) in show'
app_1  |   app/controllers/gantts_controller.rb:42:in `show'
app_1  |   lib/redmine/sudo_mode.rb:63:in `sudo_mode'

It seems that it would be related to the fact that ghostscript is missing from the installation (from turnkeylinux/tracker#633)

Sadly it's hard for me to check if it's correct.
Anyone with the same issue ?

Thanks

Make Port configurable

As I have seen in your Dockerfile, ports are fixed. This is really bad behavior (when I use docker-config to start my infrastructure I might have more than one database running on different ports). Please change that, should't be really hard to do :-)

entrypoint.sh fails to bind to database using docker-compose version 2

Hi,

(at first: thank for your work)

We use the redmine image with docker compose. The entrypoint.sh fails to use the postgres database, linked to the container, because docker-compose files written with version 2 does not create environment variables which allow the entrypoint.sh script to "detect" that a database is attached :

From the documentation :

Note: Environment variables are no longer the recommended method for connecting to linked services. Instead, you should use the link name (by default, the name of the linked service) as the hostname to connect to. See the docker-compose.yml documentation for details.

Environment variables will only be populated if you’re using the legacy version 1 Compose file format.

When I ran my container, I had this environement :

PATH=/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=27d8f3cd44c1
RUBY_MAJOR=2.2
RUBY_VERSION=2.2.4
RUBY_DOWNLOAD_SHA256=b6eff568b48e0fda76e5a36333175df049b204e91217aa32a65153cc0cdcb761
RUBYGEMS_VERSION=2.5.1
GEM_HOME=/usr/local/bundle
BUNDLER_VERSION=1.11.2
BUNDLE_APP_CONFIG=/usr/local/bundle
RAILS_ENV=production
REDMINE_VERSION=3.2.0
REDMINE_DOWNLOAD_MD5=b1050c3a0e6effd5a704ef5003d9df06
PASSENGER_VERSION=5.0.23
HOME=/root

I had to add manually the environment values in the docker-compose.yml file :

version: '2'

services:
  db: 
    image: postgres:9.5
    environment:
      - PGDATA=/pgsql
    volumes:
      - redmine_cl_postgres:/pgsql
  phusion:
    # our image, which extends the redmine:phusion base image
    image: champslibres/redmine
    environment:
        # I had to add environment values here :
      - POSTGRES_PORT_5432_TCP=tcp://postgres:5432
      - POSTGRES_ENV_POSTGRES_USER=xxxx
      - POSTGRES_ENV_POSTGRES_PASSWORD=xxxx
      - POSTGRES_ENV_POSTGRES_DB=xxxx
    volumes:
      - redmine_cl_attachements:/usr/src/redmine/files
      - /root/redmine_cl_phusion.custom/configuration.yml:/usr/src/redmine/config/configuration.yml:ro
    links:
      - db:postgres
    ports:
      - "127.0.0.1:3010:3000"

volumes:
  redmine_postgres:
    external: true
  redmine_attachements:
    external: true

Is there another way to solve this problem ?

Regards,

RedmineReceivingEmails and the cronjob

Following the guide here:
http://www.redmine.org/projects/redmine/wiki/RedmineReceivingEmails
Using the approach 'fetching emails from an IMAP server' and that is working great.
My project is here: https://github.com/DINA-Web/redmine-docker/tree/task760
I have created a script with the 'rake'-command to harvest my mailbox : receive_imap.sh with the following content

#!/bin/bash
source .env
echo "Mail $(date)" >>/var/log/cron-mail.log 2>&1 && rake -f /usr/src/redmine/Rakefile redmine:email:receive_imap RAILS_ENV=production host=imap.gmail.com port=993 ssl=1 username=$user password=$psw project=myproject tracker=Support

The user and the psw are in the .env-file
running the script manually works fine and an issue is created in my project 'myproject'.

The entry in the crontab (root account ) is like this >
* * * * * /usr/src/redmine/mail-script/receive_imap.sh

For the sake of testing I am running it right now every minute.
The only thing that I am seeing is the /var/log/cron-mail.log - no 'harvesting of my mailbox'.

Summary
Being new to Ruby.
One thing I see is that the crontab cannot find the environment for Ruby, it says it cannot find rake version 12.
As I understand this, this question boils down to 'the environment variables are not present with me when running crontab' - I tried to copy every environmental variable for root to a file and running source on that file when starting the script, but this does not help.

regards, Ingimar

Image depends on --link specific env vars

This image seems to be dependent on environment variables that are automatically defined under the hood when using the deprecated Docker --link option.

To get this to work with Postgres using Docker networks, which I understand to be the recommended approach (instead of the --link option), the following environment variables must be available to the Redmine container:
REDMINE_DB_POSTGRES (set to the name of the Postgres container)
POSTGRES_ENV_POSTGRES_USER
POSTGRES_ENV_POSTGRES_PASSWORD

The last two are created (and set appropriately) by Docker when using the --link option. The dependency on these env vars needs to be documented, along with an explanation that they must be explicitly defined for the container when not using the --link option.

This also applies when using docker-compose: the env vars must be specified in the yml file.

passenger image cannot run any more

$ docker pull redmine:passenger
$ docker run --rm redmine:passenger
...SNIP...
The Phusion Passenger agent is already installed.

 --> Installing Nginx 1.10.2 engine
     ------------------------------------------
Cannot proceed with installation

This program must be able to create this directory:

  /home/redmine/.passenger/support-binaries/5.1.2

However, it was unable to do that because of incorrect permissions on parent
directories. The parent directories must allow the redmineb> user
(which this program is running as) to create the directory that we want. Please
fix the permissions on all parent directories, then re-run this program.

If you don't know how to fix permissions, please search the Internet and learn
about how Unix permissions works. These are good tutorials:

 * http://www.tutorialspoint.com/unix/unix-file-permission.htm
 * http://www.perlfect.com/articles/chmod.shtml
 * http://www.linux.com/learn/tutorials/309527-understanding-linux-file-permissions

---------------------------------------

No precompiled Nginx engine could be downloaded. Compiling it from source instead.

Checking for required software...

 * Checking for C compiler...
      Found: no
 * Checking for C++ compiler...
      Found: no
 * Checking for GNU make...
      Found: no
 * Checking for Rake (associated with /usr/local/bin/ruby)...
      Found: yes
      Location: /usr/local/bin/ruby /usr/local/bin/rake
 * Checking for OpenSSL development headers...
      Found: no
 * Checking for Zlib development headers...
      Found: no
 * Checking for PCRE development headers...
      Found: no

Some required software is not installed.
But don't worry, this installer will tell you how to install them.
Press Enter to continue, or Ctrl-C to abort.
--------------------------------------------

Installation instructions for required software

 * To install C compiler:
   Please install it with apt-get install build-essential

 * To install C++ compiler:
   Please install it with apt-get install build-essential

 * To install GNU make:
   Please install it with apt-get install build-essential

 * To install OpenSSL development headers:
   Please install it with apt-get install libssl-dev

 * To install Zlib development headers:
   Please install it with apt-get install zlib1g-dev

 * To install PCRE development headers:
   Please install it with apt-get install libpcre3-dev

If the aforementioned instructions didn't solve your problem, then please take
a look at our documentation for troubleshooting tips:

  https://www.phusionpassenger.com/library/install/standalone/
  https://www.phusionpassenger.com/library/admin/standalone/troubleshooting/

Email configuration

There is currently no easy way to provide an email configuration. You would need to create a config file and bind it manually.

If that's the recommended solution, I can close this, but it seems like there has to be a better way, especially since this goes to all the trouble of generating a config/database.yml.

the problem of docker volume

docker version: 1.12.0-rc3

i'm run commond in terminal : sudo docker run -d --name redmine -p 8000:3000 -v /mnt/data/redmine:/usr/src/redmine redmine:passenger

logs:

warning: missing REDMINE_DB_MYSQL or REDMINE_DB_POSTGRES environment variables
*** Using sqlite3 as fallback. ***
/docker-entrypoint.sh: line 50: config/database.yml: No such file or directory

this commond runing error.
but i update commond:
i'm run commond in terminal :sudo docker run -d --name redmine -p 8000:3000 -v /mnt/data/redmine:/usr/src/redmine/files redmine:passenger

this commond is success!
why?

because the Dockerfile define
VOLUME /usr/src/redmine/files ?

Can't download Passenger native support

Hello,

The redmine:passenger image doesn't work : it can't download passenger 5.0.30 because the urls are unreachable.
I also tried on my pc and it's the same : 404 for the first one and 403 for the mirror.

Edit : it seems like the latest available version of rubyext-ruby is 2.2.3 not 2.2.5 : https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.0.30/

Logs :

root@7a3f2f7b3460:/usr/src/redmine/log# cat passenger.3000.log
[ 2016-08-30 12:47:49.9388 35/7f7300998740 age/Wat/WatchdogMain.cpp:1291 ]: Starting Passenger watchdog...
[ 2016-08-30 12:47:49.9441 38/7ff5bc714740 age/Cor/CoreMain.cpp:982 ]: Starting Passenger core...
[ 2016-08-30 12:47:49.9444 38/7ff5bc714740 age/Cor/CoreMain.cpp:235 ]: Passenger core running in multi-application mode.
[ 2016-08-30 12:47:49.9459 38/7ff5bc714740 age/Cor/CoreMain.cpp:732 ]: Passenger core online, PID 38
[ 2016-08-30 12:47:49.9519 43/7fbfaaa80740 age/Ust/UstRouterMain.cpp:529 ]: Starting Passenger UstRouter...
[ 2016-08-30 12:47:49.9525 43/7fbfaaa80740 age/Ust/UstRouterMain.cpp:342 ]: Passenger UstRouter online, PID 43
App 76 stdout:
App 76 stderr:  [passenger_native_support.so] trying to compile for the current user (redmine) and Ruby interpreter...
App 76 stderr:
App 76 stderr:      (set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to disable)
App 76 stderr:
App 76 stderr:      Warning: compilation didn't succeed. To learn why, read this file:
App 76 stderr:
App 76 stderr:      /tmp/passenger_native_support-1qr8uj8.log
App 76 stderr:
App 76 stderr:  [passenger_native_support.so] finding downloads for the current Ruby interpreter...
App 76 stderr:
App 76 stderr:      (set PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0 to disable)
App 76 stderr:
App 76 stderr:      Could not download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.0.30/rubyext-ruby-2.2.5-x86_64-linux.tar.gz: The requested URL returned error: 404 Not Found
App 76 stderr:      Trying next mirror...
App 76 stderr:      Could not download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/5.0.30/rubyext-ruby-2.2.5-x86_64-linux.tar.gz: The requested URL returned error: 403 Forbidden
App 76 stderr:  [passenger_native_support.so] will not be used (can't compile or download)
App 76 stderr:
App 76 stderr:   --> Passenger will still operate normally.
App 76 stderr:
App 76 stderr: /usr/local/bundle/gems/htmlentities-4.3.1/lib/htmlentities/mappings/expanded.rb:465: warning: duplicated key at line 466 ignored: "inodot"
App 100 stdout:

sendmail not installed

Hey guys,

I tried to send notification mails via smtp and got the following error:
sh: 1: /usr/sbin/sendmail: not found

Wouldn't it be nice to have it preinstalled within the container?

Regards
patrel

option to run rake redmine:plugins:migrate at container startup

Hello,

rake db:migrate is already run at container startup but not redmine:plugins:migrate.
if this were an option (eg controlled by an environment variable), one could easily create derived containers that have a few plugins enabled, either by mounting the src/plugins folder as a volume, or by creating a Dockerfile like this:

FROM redmine
MAINTAINER John  <[email protected]>

RUN git clone https://github.com/peclik/clipboard_image_paste.git plugins/clipboard_image_paste && \
    git clone https://github.com/a-ono/redmine_ckeditor.git plugins/redmine_ckeditor && \
    git clone https://github.com/anteo/redmine_custom_workflows plugins/redmine_custom_workflows && \
	bundle install --without development test

to make this work, one would need to add 3 lines to the docker entrypoint file:

		if [ "$1" != 'rake' -a -z "$REDMINE_NO_DB_MIGRATE" ]; then
			gosu redmine rake db:migrate
		fi
+		if [ "$1" != 'rake' -a -z "$REDMINE_NO_PLUGINS_MIGRATE" ]; then
+			$ [ "$(ls -Ad /usr/src/redmine/plugins/*/)" ] && gosu redmine rake redmine:plugins:migrate
+		fi

Redmine Docker Container fail to run

Using MySql as database

Part of Logs while running redmine container

........
/usr/local/bundle/gems/railties-4.2.6/lib/rails/initializable.rb:44:in tsort_each_child' /usr/local/bundle/gems/railties-4.2.6/lib/rails/initializable.rb:54:inrun_initializers'
/usr/local/bundle/gems/railties-4.2.6/lib/rails/application.rb:352:in initialize!' /usr/src/redmine/config/environment.rb:14:in<top (required)>'
/usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in require' /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:inblock in require'
/usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in load_dependency' /usr/local/bundle/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:inrequire'
/usr/local/bundle/gems/railties-4.2.6/lib/rails/application.rb:328:in require_environment!' /usr/local/bundle/gems/railties-4.2.6/lib/rails/application.rb:457:inblock in run_tasks_blocks'
/usr/local/bundle/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)

Any help will be appreciated.
Thanks

redmine passenger rubyext version

Hello,

I'm using the redmine:3.3.3-passenger and when the container is launched i have this message :

redmine-web    |  [passenger_native_support.so] trying to compile for the current user (root) and Ruby interpreter...
redmine-web    |      (set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to disable)
redmine-web    |      Warning: compilation didn't succeed. To learn why, read this file:
redmine-web    |      /tmp/passenger_native_support-uttzjt.log
redmine-web    |  [passenger_native_support.so] finding downloads for the current Ruby interpreter...
redmine-web    |      (set PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0 to disable)
redmine-web    |      Could not download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.1.2/rubyext-ruby-2.2.7-x86_64-linux.tar.gz: 2017-04-13 16:11:49 ERROR 404: Not Found.
redmine-web    |      Trying next mirror...
redmine-web    |      Could not download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/5.1.2/rubyext-ruby-2.2.7-x86_64-linux.tar.gz: 2017-04-13 16:11:50 ERROR 403: Forbidden.
redmine-web    |  [passenger_native_support.so] will not be used (can't compile or download)

Actually this file rubyext-ruby-2.2.7-x86_64-linux.tar.gz: doesn't exist in the first repo, has anyone got this problem ?

Edit : ok i saw my issue was a dup of #35

X_FORWARDED_PROTO https

Hi There,
my setup looks as following:
https --> apache reverse proxy, ssl offloading --> http --> redmine container
When calling https://myserver/ I get the first login page of redmine. So far so good. But when submitting the credentials, it seems that I am getting redirected to http://myserver/my/page. My apache reverse proxy has no http configured so i get an error response.
In my apache reverse proxy configuration I added the following line: RequestHeader set X_FORWARDED_PROTO 'https'. However, this has no effect. I think that the webserver in the redmine container should be configured to set X_FORWARDED_PROTO 'https' as well? If yes, how can I do this?
This is my docker-compose.yml file:

version: '2'
services:
  webapp:
    image: redmine:3.3.2-passenger
    ports:
      - 3001:3000
    volumes:
      - files:/usr/src/redmine/files
      - /local/redmine/configuration.yml:/usr/src/redmine/config/configuration.yml:ro
    environment:
      REDMINE_DB_MYSQL: db
      REDMINE_DB_PASSWORD: secret-db-root-pw
    depends_on:
      - db
    restart: on-failure:10

  db:
    image: mariadb:10.1
    volumes:
      - db:/var/lib/mysql
    environment:
      MYSQL_ROOT_PASSWORD: secret-db-root-pw
      MYSQL_DATABASE: redmine
    restart: on-failure:10

volumes:
  db:
  files:

Update redmine

Redmine, 3.0.5 and 2.6.7 have been released can you please update the packages.

SSL cert question

Hello, I have tried searching for this info but can't find it anywhere.

Is there a process for configuring a redmine container to use a SSL cert?

Thanks.

Not clear how to use redmine with postgresql

This is not clear how to start redmine with postgresql. I expect some example which should look like:

docker run --name=redmine-production -d
--network postgresnetwork
--env='POSTGRESQL_HOST=postgres'
--env='POSTGRESQL_DB_NAME=redmine_production'
--env='POSTGRESQL_USER=redmine'
--env='POSTGRESQL_PASS=password'
--volume=/home/docker/redmine_production/redmine:/home/redmine/data
redmine

(this is clear example taken from sameersbn/redmine)

compose.yml is ok, but it shows only MYSQL variable name - there is no info about POSTGRESQL names.

Plugin migrations are not run on start

I just found out, that the database migration for plugins are not run at the container start.

I fixed this locally , using a custom Dockerfile, like so:

FROM redmine:3.2

MAINTAINER "Christian Luginbühl"

COPY ./plugins/ /usr/src/redmine/plugins/

RUN chown -R redmine:redmine /usr/src/redmine/plugins/

RUN sed -i 's|gosu redmine rake db:migrate|gosu redmine rake db:migrate\n\t\t\tgosu redmine rake redmine:plugins:migrate|' /docker-entrypoint.sh

Please note the last command that basically adds the line gosu redmine rake redmine:plugins:migrate to /docker-entrypoint.sh like this (excerpt):

        if [ "$1" != 'rake' -a -z "$REDMINE_NO_DB_MIGRATE" ]; then
            gosu redmine rake db:migrate
            gosu redmine rake redmine:plugins:migrate
        fi

Maybe you want to consider to add this as a default...

Container don't work with mysql and another DB user instead of root

Thanks in advance for maintaining this docker image. If I start this container linking against a mysql container that has environment variables MYSQL_ROOT_PASSWORD and MYSQL_DATABASE, the redmine container works well.

Good commands:

$ docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=MyRootPass -e MYSQL_DATABASE=redmine -d mysql:5.7.8
$ docker run -ti --name some-redmine --link some-mysql:mysql redmine

But, If besides those two environment variables I add MYSQL_USER and MYSQL_PASSWORD when creating the mysql container, the redmine container doesn't work, giving a lot of errors:

...
Mysql2::Error: SELECT command denied to user 'redmine'@'172.17.0.48' for table 'session_variables'
...
Tasks: TOP => db:migrate
(See full trace by running task with --trace)

Bad commands:

$ docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=MyRootPass -e MYSQL_DATABASE=redmine -e MYSQL_USER=redmine -e MYSQL_PASSWORD=MyUserPass -d mysql:5.7.8
$ docker run -ti --name some-redmine --link some-mysql:mysql redmine

Accesses redmine.org from help

Hi

I installed redmine from docker using this link https://hub.docker.com/_/redmine/
I used port 3000 to access from localhost and everything seems ok. I clicked on the help button and the link changed to redmine.org. I did not notice this but on returning to the home page I see that I now have access to the redmine project itself without any authentication.

I would have expected that clicking on any link in the dockerised instance would always leave me in my own redmine instance and not redmine.org.

  1. Login to http://localhost:3000
  2. Click on 'Help' - notice the link changes to redmine.org
  3. Click on home - project redmine details are shown instead of my own localhost instance

nginx location with redmine passenger

Hello,

I've got an issue running redmine-passenger with nginx in an other container.

Here's a part of my docker-compose file :

nginx:
   image: nginx
   container_name: nginx-web
   volumes:
     - ./nginx.conf:/etc/nginx/nginx.conf
   ports:
     - "80:80"
   restart: always
   links:
     - redmine-web

redmine-db:
...

redmine-web:
   image: redmine:3.3.3-passenger
   container_name: redmine-web
   build:
     context: ./redmine/compose
   ports:
     - 8081:3000
....

Here's configuration of my nginx.conf :

http {
        error_log /var/log/nginx/error.log warn;
        access_log  /dev/null;
        proxy_intercept_errors off;
        proxy_send_timeout 120;
        proxy_read_timeout 300;

        #Redmine
        upstream redmine {
        server redmine-web:3000;
        }


        server {
        listen 80;
        server_name localhost;


        keepalive_timeout  5 5;
        proxy_buffering    off;

        # allow large uploads
        client_max_body_size 1G;

        location /redmine/ {
                proxy_pass http://redmine;
        }
    }

When I try to access http://$IP/redmine, i have the page displayed but not the style, js etc...did i miss some configuration anywhere ?

docker-entrypoint.sh and config/database.yml

Hello,

Actually i've got a problem when i try to launch an official image redmine:3.3.3 with my compose file.

The container redmine send me an error with this message :

/docker-entrypoint.sh: line 75: config/database.yml: No such file or directory

Here my docker-compose :


version: '2'

services:

  redmine:
    image: redmine:${REDMINE_VERSION}
    container_name: redmine
    ports:
      - 8081:3000
    environment:
      - REDMINE_DB_POSTGRES=${DB_NAME_REDMINE}
      - POSTGRES_ENV_POSTGRES_USER=${DB_USER_REDMINE}
      - POSTGRES_ENV_PASSWORD=${DB_PASSWORD_REDMINE}
    volumes:
      - /src/redmine/:/usr/src/redmine:Z
    links:
      - db
    restart: always

  db:
    image: postgres:${DB_VERSION_REDMINE}
    container_name: redmine_db
    environment:
      - POSTGRES_PASSWORD=${DB_PASSWORD_REDMINE}
      - POSTGRES_DB=${DB_NAME_REDMINE}
      - POSTGRES_USER=${DB_USER_REDMINE}
    volumes:
      - /src/redmine/postgresql:/var/lib/postgresql:Z
    restart: always

Do i need to recreate a dockerfile based on the official image and add a COPY of database.yml to /usr/src/redmine/config ?

Thanks!

'links' in docker-compose.yml doesn't work.

I followed the instructions in READ.md by executing 'docker run', and it works. Then I wrote a compose file like this:

version: '2'

services:

  mysql:
    image: mysql
    restart: always
    env_file: .env
    environment:
      MYSQL_ROOT_PASSWORD: $RMPASS
      MYSQL_DATABASE: $RMDB

  redmine:
    image: redmine
    restart: always
    links:
      - mysql

while I run docker-compose up, I got message of redmine below:

warning: missing REDMINE_DB_MYSQL or REDMINE_DB_POSTGRES environment variables

*** Using sqlite3 as fallback. ***

It's build on sqlite, which is not my purpose. Can anybody help? I would so appreciate with this.

Three times apt-get update && apt-get install

I just used this Dockerfile as a starter for a redmine installation with another plugin. I am no docker expert or something, but isn't it kind of insane to have apt-get update && apt-get install (some packages) running three times instead of just one time?

Running multiple commands in entrypoint

I'm trying to copy some files before running my entrypoint script. I tried something like this in my docker-compose.yml:

entrypoint: ["sh", "-c", "cp -r /usr/src/redmine/public/. /www/public/ && /docker-entrypoint.sh"]

But I'm getting a exit code 0. Suggestions?

REDMINE_NO_DB_MIGRATE, should be default

As in the docs:

Just set the variable to a non-empty string like 1 or true and the migrate script will not automatically run on container start.

This should be the default, the container should not migrate data when restarted unless I deliberately set a var like REDMINE_DB_MIGRATE to true

I've been using this lovely image in my company, all teams were adding their tasks in the container, until I restarted the container by mistake 😢 All data was removed by migration 😿 !

No 'New Issue' Tab

I did a fresh docker pull then attached it to a MySQL instance.
When I tested it out, I couldnt seem to find the 'New Issue' Tab or button.

I already checked the roles and permissions. Is there some step I missed?

Docker run fail

# docker --version 
Docker version 1.11.1, build 5604cbe

# docker info 
Containers: 4
  Running: 4
  Paused: 0
  Stopped: 0
 Images: 57
 Server Version: 1.11.1
 Storage Driver: devicemapper
  Pool Name: docker-253:0-6443227537-pool
  Pool Blocksize: 65.54 kB
  Base Device Size: 107.4 GB
  Backing Filesystem: ext4
  Data file: /dev/loop0
  Metadata file: /dev/loop1
  Data Space Used: 4.728 GB
  Data Space Total: 107.4 GB
  Data Space Available: 102.6 GB
  Metadata Space Used: 6.197 MB
  Metadata Space Total: 2.147 GB
  Metadata Space Available: 2.141 GB
  Udev Sync Supported: true
  Deferred Removal Enabled: false
  Deferred Deletion Enabled: false
  Deferred Deleted Device Count: 0
  Data loop file: /var/lib/docker/devicemapper/devicemapper/data
  WARNING: Usage of loopback devices is strongly discouraged for production use. Either use `--storage-opt dm.thinpooldev` or use `--storage-opt dm.no_warn_on_loop_devices=true` to suppress this warning.
  Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
  Library Version: 1.02.107-RHEL7 (2015-10-14)
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Plugins: 
  Volume: local
  Network: host bridge null
 Kernel Version: 3.10.0-327.4.5.el7.x86_64
 Operating System: CentOS Linux 7 (Core)
 OSType: linux
 Architecture: x86_64
 CPUs: 2
 Total Memory: 15.51 GiB
 Name: some_host_name
 ID: AX6L:Z4WU:ODZY:EQ74:VLQ3:OVU4:Q4TQ:IMFC:4YH7:DTGU:DSP6:543S
 Docker Root Dir: /var/lib/docker
 Debug mode (client): false
 Debug mode (server): false
 Registry: https://index.docker.io/v1/
 WARNING: bridge-nf-call-iptables is disabled
 WARNING: bridge-nf-call-ip6tables is disabled

runninng redmine as
docker run -d --name redmine --link redmine-mysql:mysql --restart always -v /srv/docker/redmine:/usr/src/redmine/files -v /srv/docker/redmine-plugins:/usr/src/redmine/plugins -p 3000:3000 redmine

startup fail`s with

Installing mysql2 0.3.21 with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /usr/local/bundle/gems/mysql2-0.3.21/ext/mysql2

/usr/local/bin/ruby -r ./siteconf20160516-5-1w9hlwb.rb extconf.rb
checking for ruby/thread.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/bin/$(RUBY_BASE_NAME)
/usr/local/lib/ruby/2.2.0/mkmf.rb:456:in try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /usr/local/lib/ruby/2.2.0/mkmf.rb:587:intry_cpp'
from /usr/local/lib/ruby/2.2.0/mkmf.rb:1060:in block in have_header' from /usr/local/lib/ruby/2.2.0/mkmf.rb:911:inblock in checking_for'
from /usr/local/lib/ruby/2.2.0/mkmf.rb:351:in block (2 levels) in postpone' from /usr/local/lib/ruby/2.2.0/mkmf.rb:321:inopen'
from /usr/local/lib/ruby/2.2.0/mkmf.rb:351:in block in postpone' from /usr/local/lib/ruby/2.2.0/mkmf.rb:321:inopen'
from /usr/local/lib/ruby/2.2.0/mkmf.rb:347:in postpone' from /usr/local/lib/ruby/2.2.0/mkmf.rb:910:inchecking_for'
from /usr/local/lib/ruby/2.2.0/mkmf.rb:1059:in have_header' from extconf.rb:15:in

'

To see why this extension failed to compile, please check the mkmf.log which can be found here:

/usr/local/bundle/extensions/x86_64-linux/2.2.0-static/mysql2-0.3.21/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /usr/local/bundle/gems/mysql2-0.3.21 for inspection.
Results logged to /usr/local/bundle/extensions/x86_64-linux/2.2.0-static/mysql2-0.3.21/gem_make.out

Request Entity Too Large

I use passeger version.
When I upload larger file (~2MB) I'll get "Request Entity Too Large" message.
I would set up client_max_body_size in nginx.conf normally, but how can I set up this on docker container?

Passenger version doesn't work

I am getting the following output from the container:

redmine_1  | The Phusion Passenger agent is already installed.
redmine_1  |
redmine_1  |  --> Installing Nginx 1.10.2 engine
redmine_1  |      ------------------------------------------
redmine_1  | Cannot proceed with installation
redmine_1  |
redmine_1  | This program must be able to create this directory:
redmine_1  |
redmine_1  |   /home/redmine/.passenger/support-binaries/5.1.2
redmine_1  |
redmine_1  | However, it was unable to do that because of incorrect permissions on parent
redmine_1  | directories. The parent directories must allow the redmineb> user
redmine_1  | (which this program is running as) to create the directory that we want. Please
redmine_1  | fix the permissions on all parent directories, then re-run this program.
redmine_1  |
redmine_1  | If you don't know how to fix permissions, please search the Internet and learn
redmine_1  | about how Unix permissions works. These are good tutorials:
redmine_1  |
redmine_1  |  * http://www.tutorialspoint.com/unix/unix-file-permission.htm
redmine_1  |  * http://www.perlfect.com/articles/chmod.shtml
redmine_1  |  * http://www.linux.com/learn/tutorials/309527-understanding-linux-file-permissions
redmine_1  |
redmine_1  | ---------------------------------------
redmine_1  |
redmine_1  | No precompiled Nginx engine could be downloaded. Compiling it from source instead.
redmine_1  |
redmine_1  | Checking for required software...
redmine_1  |
redmine_1  |  * Checking for C compiler...
redmine_1  |       Found: no
redmine_1  |  * Checking for C++ compiler...
redmine_1  |       Found: no
redmine_1  |  * Checking for GNU make...
redmine_1  |       Found: no
redmine_1  |  * Checking for Rake (associated with /usr/local/bin/ruby)...
redmine_1  |       Found: yes
redmine_1  |       Location: /usr/local/bin/ruby /usr/local/bin/rake
redmine_1  |  * Checking for OpenSSL development headers...
redmine_1  |       Found: no
redmine_1  |  * Checking for Zlib development headers...
redmine_1  |       Found: no
redmine_1  |  * Checking for PCRE development headers...
redmine_1  |       Found: no
redmine_1  |
redmine_1  | Some required software is not installed.
redmine_1  | But don't worry, this installer will tell you how to install them.
redmine_1  | Press Enter to continue, or Ctrl-C to abort.
redmine_1  | --------------------------------------------
redmine_1  |
redmine_1  | Installation instructions for required software
redmine_1  |
redmine_1  |  * To install C compiler:
redmine_1  |    Please install it with apt-get install build-essential
redmine_1  |
redmine_1  |  * To install C++ compiler:
redmine_1  |    Please install it with apt-get install build-essential
redmine_1  |
redmine_1  |  * To install GNU make:
redmine_1  |    Please install it with apt-get install build-essential
redmine_1  |
redmine_1  |  * To install OpenSSL development headers:
redmine_1  |    Please install it with apt-get install libssl-dev
redmine_1  |
redmine_1  |  * To install Zlib development headers:
redmine_1  |    Please install it with apt-get install zlib1g-dev
redmine_1  |
redmine_1  |  * To install PCRE development headers:
redmine_1  |    Please install it with apt-get install libpcre3-dev
redmine_1  |
redmine_1  | If the aforementioned instructions didn't solve your problem, then please take
redmine_1  | a look at our documentation for troubleshooting tips:
redmine_1  |
redmine_1  |   https://www.phusionpassenger.com/library/install/standalone/
redmine_1  |   https://www.phusionpassenger.com/library/admin/standalone/troubleshooting/
redmine_1  | Fetching gem metadata from https://rubygems.org/..........
redmine_1  | Fetching version metadata from https://rubygems.org/..```

no default workflow, no default roles

Hi,
starting the container (sqllite or postgres, docker run --name some-redmine --link some-postgres:postgres -p 3000:3000 redmine) and accessing it seems to work fine.
I am confused: there are no roles and no worklflows, but there should be some???

I can start and log in to the redmine-Container, create users/groups/projects.
I can add roles and workflows (i dont know what i am doing), but i can´t add tickets (because of my shitty workflow).

I stopped and deleted the container and did the "doker run" again a few times.

Whats the magic trick to use a redmine container with default workflow?

ps:
Environment:
Redmine version 3.3.3.stable
Ruby version 2.2.7-p470 (2017-03-28) [x86_64-linux]
Rails version 4.2.7.1
Environment production
Database adapter PostgreSQL
SCM:
Subversion 1.8.10
Mercurial 3.1.2
Bazaar 2.7.0
Git 2.1.4
Filesystem
Redmine plugins:
no plugin installed

Wrong connection when use external container (MySQL)

Hi,
I want redmine to connect to mysql (172.17.0.2)
But turned out to 172.17.0.3
Mysql2::Error: Access denied for user 'redmine'@'172.17.0.3' (using password: YES)

When I check
docker exec -it redmine cat /usr/src/redmine/config/database.yml

The configuration seems right

production:
  adapter: "mysql2"
  host: "172.17.0.2"
  port: "3306"
  username: "redmine"
  password: "secret"
  database: "redmine"

This is what I use in docker-compose.yml

version: '2.0'
services:
  redmine:
    container_name: redmine
    environment:
      REDMINE_DB_MYSQL: 172.17.0.2
      REDMINE_DB_USERNAME: redmine
      REDMINE_DB_PASSWORD: secret
      REDMINE_DB_DATABASE: redmine
    external_links:
    - mariadb
    image: redmine:3.3
    network_mode: bridge
    ports:
    - 8083:3000
    restart: always
    volumes:
    - /srv/divusi_redmine/files:/usr/src/redmine/files:rw

And I've created a database
Is there a solution?

database.yml-file not always created, puzzled

Hello,

building a redmine-image 'on-top-of-yours' , and it looks like this:

My Dockerfile : dina/redmine:v02
-copying in some themes and plugins
-create a directory :
RUN mkdir -p
/usr/src/redmine/mail-script
-some other things

My docker-compose.yml

version: '2'
services:

  redmine:
    image: dina/redmine:v02
    container_name: redmine_inki
    environment:
      - VIRTUAL_HOST=support.dina-web.net
      - REDMINE_DB_MYSQL=mariadb_redmine
      - REDMINE_DB_PASSWORD=secr3t
    volumes:
      - ./redmine-mail_config/configuration.yml:/usr/src/redmine/config/configuration.yml
      - ./redmine-harvest/.env:/usr/src/redmine/mail-script/.env
      - ./redmine-harvest/receive_imap.sh:/usr/src/redmine/mail-script/receive_imap.sh
      - ./redmine-files:/usr/src/redmine/files
    depends_on:
      - mariadb
    restart: always

  mariadb:
    image: mariadb:10.1
    container_name: mariadb_redmine
    environment:
      MYSQL_DATABASE: redmine
      MYSQL_ROOT_PASSWORD: secr3t
    volumes:
      - ./redminedb-init.d:/docker-entrypoint-initdb.d
    restart: always

From time and again, did not see any pattern - the database.yml-file is not created.
I removed the maridb:10.1 image and started over and the database.yml-file was created.

  • what is causing this behavior ? and how can a guarantee that the database.yml-file is always created ?

best regards, i

Wrong time

Hello !
Host server has the correct time, container also, via adding this volume:

  • /etc/localtime:/etc/localtime:ro

but... redmine is registering one hour difference, between each change is registered and real time here in our country.

I followed some instructions changing config/application.rb file but don't work. References:

Is it possible that SO timezone don't match with ruby timezone, I mean is not available here:
bundle exec rake time:zones:all

and for that reason It doesn't displayed correctly?

Can anyone help me to find what is happening?

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.