Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Commit

Permalink
Merge pull request #29 from govCMS/develop
Browse files Browse the repository at this point in the history
Prepare v1.1.2 release
  • Loading branch information
SRowlands authored Oct 24, 2019
2 parents 43f785e + e6c78d3 commit a7f462c
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .docker/Dockerfile.cli
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM govcms8lagoon/govcms8
ARG GOVCMS_IMAGE_VERSION=latest
FROM govcms8lagoon/govcms8:${GOVCMS_IMAGE_VERSION}

COPY themes/ /app/web/themes/custom
COPY config /app/config
Expand Down
5 changes: 3 additions & 2 deletions .docker/Dockerfile.nginx-drupal
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ARG CLI_IMAGE
FROM ${CLI_IMAGE} as cli
ARG GOVCMS_IMAGE_VERSION=latest

FROM govcms8lagoon/nginx-drupal
FROM ${CLI_IMAGE} as cli
FROM govcms8lagoon/nginx-drupal:${GOVCMS_IMAGE_VERSION}

COPY --from=cli /app /app
5 changes: 3 additions & 2 deletions .docker/Dockerfile.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ARG CLI_IMAGE
FROM ${CLI_IMAGE} as cli
ARG GOVCMS_IMAGE_VERSION=latest

FROM govcms8lagoon/php
FROM ${CLI_IMAGE} as cli
FROM govcms8lagoon/php:${GOVCMS_IMAGE_VERSION}

COPY --from=cli /app /app
3 changes: 2 additions & 1 deletion .docker/Dockerfile.test
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM govcms8lagoon/test
ARG GOVCMS_IMAGE_VERSION=latest
FROM govcms8lagoon/test:${GOVCMS_IMAGE_VERSION}

COPY themes/ /app/web/themes/custom

Expand Down
6 changes: 6 additions & 0 deletions .env.default
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,9 @@ DEV_MODE=true
# Note: Seckit click-jacking configuration will need altering to suit if changed.
# See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
X_FRAME_OPTIONS=SameOrigin

# Docker image tag that is used in the Dockerfiles, in order to get specific
# versions of GovCMS images. On Lagoon the value comes from a buildtime
# variable set via GraphQL api.
# @see progress https://github.com/amazeeio/lagoon/issues/1168
#GOVCMS_IMAGE_VERSION=latest
2 changes: 1 addition & 1 deletion .version.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
version: 8
type: saas
scaffold: 1.1.1
scaffold: 1.1.2
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ x-lagoon-project:
x-lagoon-local-dev-url:
&lagoon-local-dev-url http://govcms8-saas.docker.amazee.io

x-govcms-image-version:
&govcms-image-version ${GOVCMS_IMAGE_VERSION:-latest}

x-volumes:
&default-volumes
volumes:
Expand All @@ -21,6 +24,7 @@ x-environment:
LAGOON_ENVIRONMENT_TYPE: ${LAGOON_ENVIRONMENT_TYPE:-}
LAGOON_PROJECT: *lagoon-project
LAGOON_ROUTE: &default-url ${LOCALDEV_URL:-http://govcms8-saas.docker.amazee.io}
GOVCMS_IMAGE_VERSION: ${GOVCMS_IMAGE_VERSION:-latest}
DEV_MODE: ${DEV_MODE:-false}
X_FRAME_OPTIONS: ${X_FRAME_OPTIONS:-SameOrigin}

Expand All @@ -30,6 +34,8 @@ services:
build:
context: .
dockerfile: .docker/Dockerfile.cli
args:
GOVCMS_IMAGE_VERSION: *govcms-image-version
image: *lagoon-project
labels:
lagoon.type: cli-persistent
Expand All @@ -43,6 +49,8 @@ services:
build:
context: .
dockerfile: .docker/Dockerfile.test
args:
GOVCMS_IMAGE_VERSION: *govcms-image-version
labels:
lagoon.type: none
<< : *default-volumes
Expand All @@ -57,6 +65,7 @@ services:
dockerfile: .docker/Dockerfile.nginx-drupal
args:
CLI_IMAGE: *lagoon-project
GOVCMS_IMAGE_VERSION: *govcms-image-version
labels:
lagoon.type: nginx-php-persistent
lagoon.persistent: /app/web/sites/default/files/
Expand All @@ -76,6 +85,7 @@ services:
dockerfile: .docker/Dockerfile.php
args:
CLI_IMAGE: *lagoon-project
GOVCMS_IMAGE_VERSION: *govcms-image-version
labels:
lagoon.type: nginx-php-persistent
lagoon.name: nginx
Expand Down

0 comments on commit a7f462c

Please sign in to comment.