OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
add instructions on how to add plugins to the slim image
Markus Kahl8fd1f4b193f7
diff --git a/docs/installation-and-operations/installation/docker/README.md b/docs/installation-and-operations/installation/docker/README.mdindex e2d516c1bf8..1e79f80b65e 100644--- a/docs/installation-and-operations/installation/docker/README.md+++ b/docs/installation-and-operations/installation/docker/README.md@@ -445,6 +445,37 @@ RUN ./docker/prod/setup/postinstall.shThe file is based on the normal OpenProject docker image.All the Dockerfile does is copy your custom plugins gemfile into the image, install the gems and precompile any new assets.+**slim image**++If you are using the `-slim` tag you will need to do the following to add your plugin.++```+FROM openproject/community:13 AS plugin++# If installing a local plugin (using `path:` in the `Gemfile.plugins` above),+# you will have to copy the plugin code into the container here and use the+# path inside of the container. Say for `/app/vendor/plugins/openproject-slack`:+# COPY /path/to/my/local/openproject-slack /app/vendor/plugins/openproject-slack++COPY Gemfile.plugins /app/++# If the plugin uses any external NPM dependencies you have to install them here.+# RUN npm add npm <package-name>*++RUN bundle config unset deployment && bundle install && bundle config set deployment 'true'+RUN ./docker/prod/setup/postinstall.sh++FROM openproject/community:13-slim++COPY --from=plugin /usr/bin/git /usr/bin/git+COPY --chown=$APP_USER:$APP_USER --from=plugin /app/vendor/bundle /app/vendor/bundle+COPY --chown=$APP_USER:$APP_USER --from=plugin /usr/local/bundle /usr/local/bundle+COPY --chown=$APP_USER:$APP_USER --from=plugin /app/public/assets /app/public/assets+COPY --chown=$APP_USER:$APP_USER --from=plugin /app/config/frontend_assets.manifest.json /app/config/frontend_assets.manifest.json+COPY --chown=$APP_USER:$APP_USER --from=plugin /app/Gemfile.* /app/++```+**4. Build the image**To actually build the docker image run: