Skip to content

Instantly share code, notes, and snippets.

@scottrigby
Created August 11, 2018 19:12
Show Gist options
  • Save scottrigby/f6efcadbe6c1e63060416c05102ad38c to your computer and use it in GitHub Desktop.
Save scottrigby/f6efcadbe6c1e63060416c05102ad38c to your computer and use it in GitHub Desktop.
Example Composer deps for Bitnami Drupal image
FROM bitnami/drupal:8
# Allow user codebase to include a custom composer merge file.
# See https://github.com/wikimedia/composer-merge-plugin.
COPY merge-composer.json /opt/bitnami
RUN apt-get update && apt-get install -y jq
RUN cd /opt/bitnami/drupal \
&& tmp=$(mktemp) \
&& cat composer.json | jq '.extra."merge-plugin".include |= .+ ["../merge-composer.json"]' > "$tmp" \
&& mv "$tmp" composer.json \
&& composer update --with-dependencies
{
"require": {
"drupal/adva": "1.0-rc5",
"drupal/content_lock": "1.0-alpha8",
"drupal/field_group": "3.0-beta1",
"drupal/rac": "2.0-rc5",
"knplabs/github-api": "~1.4"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment