Compare commits

...

2 Commits

Author SHA1 Message Date
3wc e2109280e5 Add data persistence to example docker-compose config
continuous-integration/drone/push Build is passing Details
2022-12-21 14:48:15 -08:00
3wc db3a0d1b1b Add comments to Dockerfile 2022-12-21 14:44:30 -08:00
2 changed files with 16 additions and 0 deletions

View File

@ -10,6 +10,17 @@ RUN set -eux; \
WORKDIR /opt/drupal
# NOTE(3wc): drutopia/drutopia_template currently references out-of-date URLs,
# so we download composer.{json,lock} from drutopia_platform/build_source
# instead.
#
# additionally, gitlab doesn't support cloning anonymously over SSH (maybe they
# can pick up more work with border cops to be able to implement that 5-year-old "feature
# request"[0] 🙄) so we need to switch to HTTPS URIs; in theory we could do this
# selectively for gitlab, but doing it across the board means not needing to run
# ssh-keyscan, or install an SSH client in the image.
#
# [0]: https://gitlab.com/gitlab-org/gitlab/-/issues/24108
RUN set -eux; \
export COMPOSER_HOME="$(mktemp -d)"; \
wget https://gitlab.com/drutopia-platform/build_source/-/raw/master/composer.json; \

View File

@ -6,3 +6,8 @@ services:
build: .
ports:
- "80:80"
volumes:
- "drutopia_data:/opt/drupal/web/sites/"
volumes:
drutopia_data: