Skip to content

Commit

Permalink
Merge pull request #98 from govCMS/develop
Browse files Browse the repository at this point in the history
Bring master up to date with develop
  • Loading branch information
steveworley authored Aug 16, 2024
2 parents 47338aa + a12e399 commit c9d5095
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 13 deletions.
5 changes: 4 additions & 1 deletion .docker/Dockerfile.paas
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ ARG GOVCMS_GITHUB_TOKEN
ENV WEBROOT=web

# Clean up base image so as not to conflict with any changes.
RUN rm -rf /app
RUN mv /app/web/sites/all/modules /scaffold_modules \
&& rm -rf /app

RUN composer config --global github-oauth.github.com $GOVCMS_GITHUB_TOKEN

Expand All @@ -22,6 +23,8 @@ COPY custom /app/custom

# Run composer. Additional `rm`s can be added to reduce the image size, with diminishing returns.
RUN composer install --no-dev --no-interaction --no-suggest \
&& mkdir -p /app/web/sites/all \
&& mv /scaffold_modules /app/web/sites/all/modules \
&& rm -rf ~/.composer/cache \
&& rm -rf /app/web/core/tests \
&& rm -rf /app/web/modules/contrib/webform/tests
Expand Down
4 changes: 3 additions & 1 deletion .docker/Dockerfile.saasplus
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ COPY config /app/config
COPY favicon.ico /app/web

# To enable SaaS+ uncomment these lines
RUN composer config --global github-oauth.github.com $GOVCMS_GITHUB_TOKEN
RUN [ ! -z "$GOVCMS_GITHUB_TOKEN" ] \
&& composer config --global github-oauth.github.com $GOVCMS_GITHUB_TOKEN \
|| echo "skipping github token"
COPY custom /app/custom
RUN jq -s '.[1].repositories = (.[0].repositories + .[1].repositories) | .[1]' /app/custom/composer/composer.json /app/composer.json > /tmp/composer.json
RUN mv /tmp/composer.json /app/composer.json
Expand Down
2 changes: 1 addition & 1 deletion .version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# e.g. site audits, automated backups.
version: {{ GOVCMS_VERSION }}
type: {{ GOVCMS_TYPE }}
scaffold: 3.4.0
scaffold: 3.4.1
3 changes: 2 additions & 1 deletion composer.10.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"drupal/core-project-message": true,
"oomphinc/composer-installers-extender": true,
"phpstan/extension-installer": true,
"php-http/discovery": true
"php-http/discovery": true,
"simplesamlphp/composer-module-installer": true
}
},
"autoload": {
Expand Down
9 changes: 0 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ services:
# https://pygmy.readthedocs.io/en/master/ssh_agent/
volumes_from: ### Local overrides to mount host SSH keys. Automatically removed in CI.
- container:amazeeio-ssh-agent ### Local overrides to mount host SSH keys. Automatically removed in CI.
networks:
- amazeeio-network
- default

test:
build:
Expand All @@ -82,9 +79,6 @@ services:
- cli
environment:
<< : *default-environment
networks:
- amazeeio-network
- default

nginx:
build:
Expand Down Expand Up @@ -122,9 +116,6 @@ services:
- cli
environment:
<< : *default-environment
networks:
- amazeeio-network
- default

mariadb:
image: ${MARIADB_DATA_IMAGE:-govcms/mariadb-drupal:{{ GOVCMS_VERSION }}.x-latest}
Expand Down

0 comments on commit c9d5095

Please sign in to comment.