Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
vandman opened this issue Dec 13, 2020 · 2 comments
Assignees

Comments

@vandman
Copy link

vandman commented Dec 13, 2020

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 noshutdown-ru-user self-assigned this Dec 14, 2020
@noshutdown-ru-user
Copy link
Member

hey let us check

@noshutdown-ru-user
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants