noshutdown-ru / vault

Is a plugin for project management system Redmine. Allows you to store various passwords/keys in one place for the project.
https://noshutdown.ru/en/redmine-plugins-vault
46 stars 29 forks source link

Redmine docker: not possible to start the container with vault plugin, write permission ussue #69

Closed vandman closed 3 years ago

vandman commented 3 years ago

Hi, I try to use the plugin in a vault container. Here is what I do to built it with vault: Dockerfile =>

RUN cd plugins; \
git clone https://github.com/noshutdown-ru/vault

The build wokrs fine.

Then I launch the container. When the container start, it does the:

bundle install --without development test
rake redmine:plugins:migrate RAILS_ENV=production

Here I get the following error and I can't start the container:

Bundler can't satisfy your Gemfile's dependencies.
Install missing gems with `bundle install`.
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. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32`.
The dependency ffi (>= 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. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32`.
There was an error while trying to write to
`/home/redmine/.bundle/cache/compact_index/rubygems.org.443.29b0360b937aa4d161703e6160654e47/versions`.
It is likely that you need to grant write permissions for that path.
Bundler can't satisfy your Gemfile's dependencies.
Install missing gems with `bundle install`.
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. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32`.
The dependency ffi (>= 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. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32`.
There was an error while trying to write to
`/home/redmine/.bundle/cache/compact_index/rubygems.org.443.29b0360b937aa4d161703e6160654e47/versions`.
It is likely that you need to grant write permissions for that path.

regards Vandman

noshutdown-ru-user commented 3 years ago

hey let us check

noshutdown-ru-user commented 3 years ago
FROM redmine:4.1.1
LABEL maintainer='https://noshutdown.ru'
HEALTHCHECK NONE

RUN apt-get update \
    && apt-get -y install make zlib1g-dev libmagick++-dev \
    && cd ./plugins \
    && git clone https://github.com/noshutdown-ru/vault

tested

docker build -t myred .
docker run -d -p 80:3000 --name myredmine myred

start will take around 1 min because it will install gems