Skip to content

Commit c9d5095

Browse files
authored
Merge pull request #98 from govCMS/develop
Bring master up to date with develop
2 parents 47338aa + a12e399 commit c9d5095

File tree

5 files changed

+10
-13
lines changed

5 files changed

+10
-13
lines changed

.docker/Dockerfile.paas

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ ARG GOVCMS_GITHUB_TOKEN
1212
ENV WEBROOT=web
1313

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

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

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

2324
# Run composer. Additional `rm`s can be added to reduce the image size, with diminishing returns.
2425
RUN composer install --no-dev --no-interaction --no-suggest \
26+
&& mkdir -p /app/web/sites/all \
27+
&& mv /scaffold_modules /app/web/sites/all/modules \
2528
&& rm -rf ~/.composer/cache \
2629
&& rm -rf /app/web/core/tests \
2730
&& rm -rf /app/web/modules/contrib/webform/tests

.docker/Dockerfile.saasplus

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ COPY config /app/config
1919
COPY favicon.ico /app/web
2020

2121
# To enable SaaS+ uncomment these lines
22-
RUN composer config --global github-oauth.github.com $GOVCMS_GITHUB_TOKEN
22+
RUN [ ! -z "$GOVCMS_GITHUB_TOKEN" ] \
23+
&& composer config --global github-oauth.github.com $GOVCMS_GITHUB_TOKEN \
24+
|| echo "skipping github token"
2325
COPY custom /app/custom
2426
RUN jq -s '.[1].repositories = (.[0].repositories + .[1].repositories) | .[1]' /app/custom/composer/composer.json /app/composer.json > /tmp/composer.json
2527
RUN mv /tmp/composer.json /app/composer.json

.version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# e.g. site audits, automated backups.
66
version: {{ GOVCMS_VERSION }}
77
type: {{ GOVCMS_TYPE }}
8-
scaffold: 3.4.0
8+
scaffold: 3.4.1

composer.10.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"drupal/core-project-message": true,
3636
"oomphinc/composer-installers-extender": true,
3737
"phpstan/extension-installer": true,
38-
"php-http/discovery": true
38+
"php-http/discovery": true,
39+
"simplesamlphp/composer-module-installer": true
3940
}
4041
},
4142
"autoload": {

docker-compose.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ services:
6363
# https://pygmy.readthedocs.io/en/master/ssh_agent/
6464
volumes_from: ### Local overrides to mount host SSH keys. Automatically removed in CI.
6565
- container:amazeeio-ssh-agent ### Local overrides to mount host SSH keys. Automatically removed in CI.
66-
networks:
67-
- amazeeio-network
68-
- default
6966

7067
test:
7168
build:
@@ -82,9 +79,6 @@ services:
8279
- cli
8380
environment:
8481
<< : *default-environment
85-
networks:
86-
- amazeeio-network
87-
- default
8882

8983
nginx:
9084
build:
@@ -122,9 +116,6 @@ services:
122116
- cli
123117
environment:
124118
<< : *default-environment
125-
networks:
126-
- amazeeio-network
127-
- default
128119

129120
mariadb:
130121
image: ${MARIADB_DATA_IMAGE:-govcms/mariadb-drupal:{{ GOVCMS_VERSION }}.x-latest}

0 commit comments

Comments
 (0)