Skip to content

Commit

Permalink
Updated docker ci compose file.
Browse files Browse the repository at this point in the history
1. Used php 8.0.19 which is latest bug fix version of PHP available in travis.
2. Changed ci images to be temporarilty based on temporary D9 based images created for testing.
  • Loading branch information
navneet0693 committed Jun 8, 2022
1 parent 387fa10 commit addfb98
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 24 deletions.
12 changes: 9 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dist: trusty
dist: focal
sudo: required

cache:
Expand All @@ -14,12 +14,18 @@ addons:
language: php

php:
- 8.0
- 8.0.19

env:
global:
# Travis Token.
secure: "u6jLZiftQdb8Ozxngu5sgwmnXeUyvNF3/Y+5eX3+Xyb7Sm6K++cBLbYl/zNbuzp1rZE5dn3pVTQc4tstVXZw2B5KjCd64r9HE9gdwCEnS/AA/w3wGlaEBinTzKOrrN1EvqNNhnJUY2JmqEYVom+UYwLZWIIKM/5OoaeidNqHDvImZZLAeYfPMGnySsFC01yCzrOn6jv8Bwu00dQPVEOQylVEV5qgdGYz6CvGGslcvGxhvR0qdY/IXhrA0yxIk1yA6vu1mQpCSjGpPLy024JhcqRr3AzjH2N0QRKlL7vcNFxl/OC0qcK2bOl8lcQydeC5LRp92eeCLfMfvqHDqLJKvebCsvaZSmqlzCURlcHaJOM5bce7XPVyNLdwnfppgSacocGol38qxfEc09qV4AZnklwigYCfnk346oSaocKApy48KRW4cNXL45U7+z10IzVAENGwbyyuwdvKHhDtMCgMd8eeYfRF5EvENOKVSG02Kca8X2fLBhmJsXkFcBEW7pSRZKxixkIkuAwEYSQW/lvvM4LJmd2np7vZDEMh1dmf7TBRBygDVmM7vtdYRSzivR/T9nH+mXPP9FcjVvlPPeWAEaqtLPmmONmYRjDRcoHjJh3YnSMpvVs8wejDf7iS6A44cI6xZQRoEoCFA/WUu5EnzmoOCY7HvZ62xnZ0I9nNyL4="

services:
- docker

before_install:
- set -e
# Composer Configurations.
- export COMPOSER_MEMORY_LIMIT=-1 # Set php memory limit to -1 so composer update will not fail
- export COMPOSER_EXIT_ON_PATCH_FAILURE=1 # To enforce throwing an error and stopping package installation/update immediately
Expand All @@ -29,7 +35,7 @@ before_install:
- composer install --prefer-dist --no-interaction
# Install docker and our docker containers.
- sh scripts/social/ci/install-docker.sh
- docker-compose -f docker-compose-ci.yml up -d
- docker compose -f docker-compose-ci.yml up -d

script:
- docker exec -i social_ci_web bash /var/www/scripts/social/install/install_script.sh
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"blackfire/php-sdk": "^v1.27.1",
"drupal/redis": "^1.5",
"drush/drush": "11.*@stable",
"goalgorilla/open_social": "dev-main",
"goalgorilla/open_social": "dev-feature/3260861-php-8-support-updated-branch",
"goalgorilla/open_social_scripts": "^3.0"
},
"require-dev": {
Expand Down
12 changes: 6 additions & 6 deletions docker-compose-ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: "2"

# See: https://docs.docker.com/compose/compose-file/
# See: https://github.com/compose-spec/compose-spec/blob/master/spec.md
services:
web_scripts:
image: goalgorilla/open_social_docker:ci
image: goalgorilla/open_social_docker:cid9
volumes:
- ./:/var/www:delegated
depends_on:
Expand All @@ -12,7 +12,7 @@ services:
container_name: social_ci_web_scripts

web:
image: goalgorilla/open_social_docker:ci
image: goalgorilla/open_social_docker:cid9
volumes:
- ./:/var/www:delegated
depends_on:
Expand All @@ -34,7 +34,7 @@ services:
volumes:
- db_data:/var/lib/mysql
ports:
- "3307:3306"
- "3306"
container_name: social_ci_db
command: mysqld --max_allowed_packet=16M

Expand Down Expand Up @@ -62,7 +62,7 @@ services:
container_name: social_ci_selenium

behat:
image: goalgorilla/open_social_docker:ci
image: goalgorilla/open_social_docker:cid9
volumes:
- ./:/var/www:delegated
depends_on:
Expand Down
22 changes: 10 additions & 12 deletions docker-compose.blackfire.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
version: "2"

services:
web:
image: goalgorilla/open_social_docker:d9
image: goalgorilla/open_social_docker:devd9
volumes:
- ./:/var/www:delegated
links:
depends_on:
- db
- mailcatcher
- redis
Expand Down Expand Up @@ -46,8 +44,8 @@ services:
image: selenium/standalone-firefox-debug:2.48.2
volumes:
- ./html/profiles/contrib/social/tests/behat/features/files/:/files:delegated
links:
- web:web
depends_on:
- web
ports:
- "4444"
- "5900"
Expand All @@ -58,13 +56,13 @@ services:
container_name: social_selenium

behat:
image: goalgorilla/open_social_docker:d9
image: goalgorilla/open_social_docker:devd9
volumes:
- ./:/var/www:delegated
links:
- web:web
- db:db
- selenium:selenium
depends_on:
- web
- db
- selenium
environment:
- DRUPAL_SETTINGS=development
network_mode: "bridge"
Expand All @@ -85,7 +83,7 @@ services:
image: goalgorilla/open_social_docker:cron
volumes:
- ./:/var/www
links:
depends_on:
- db
- mailcatcher
environment:
Expand Down
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# See: https://docs.docker.com/compose/compose-file/
# See: https://github.com/compose-spec/compose-spec/blob/master/spec.md
services:
web:
image: goalgorilla/open_social_docker:d9
image: goalgorilla/open_social_docker:devd9
volumes:
- ./:/var/www:delegated
depends_on:
Expand Down Expand Up @@ -51,7 +53,7 @@ services:
container_name: social_selenium

behat:
image: goalgorilla/open_social_docker:d9
image: goalgorilla/open_social_docker:devd9
volumes:
- ./:/var/www:delegated
depends_on:
Expand Down

0 comments on commit addfb98

Please sign in to comment.