alpeaiK零S
KubeSphere版本3.1.0
在创建redmine工作负载时,需要修改redmine的configuration.yml文件。
解决方案1. 挂载配置文件到/usr/src/redmine/config/configuration.yml
问题:容器启动出现
chown: changing ownership of ‘config’: Read-only file system
chown: changing ownership of ‘config/configuration.yml’: Read-only file system
尝试办法2. 为/usr/src/redmine/config目录创建一个挂载存储。
问题:容器创建时出现:
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
.
The Gemfile’s dependencies are satisfied
rake aborted!
LoadError: cannot load such file – /usr/src/redmine/config/application
/usr/src/redmine/Rakefile:5:in <top (required)>'
<top (required)>'
/usr/local/bundle/gems/rake-13.0.3/exe/rake:27:in
尝试3:使用cp 命令,希望在启动时候,将configuration.yml复制到/usr/src/redmine/config/
问题:在启动指令处输入后,容器不能启动。
请问有什么办法可以解决不?