Skip to content

Commit 1a426ce

Browse files
committed
Backport fixes to ustream
1 parent 88f5b8b commit 1a426ce

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,18 @@ endif
7272
@echo "Build and run containers..."
7373
mkdir -p $(COMPOSER_HOME_CACHE)
7474
docker-compose up -d --remove-orphans
75-
$(call php-0, apk add --no-cache graphicsmagick $(ADD_PHP_EXT))
75+
$(call php-0, apk add --no-cache graphicsmagick tzdata $(ADD_PHP_EXT))
7676
$(call php-0, sh -c '[ ! -z "$$COMPOSER_HOME" -a -d $$COMPOSER_HOME ] && chown -R $(CUID):$(CGID) $$COMPOSER_HOME')
77+
# Set up timezone
78+
$(call php-0, cp /usr/share/zoneinfo/Europe/Paris /etc/localtime)
7779
$(call php-0, kill -USR2 1)
7880
$(call php, composer global require -o --update-no-dev --no-suggest "hirak/prestissimo:^0.3")
7981

8082
## Install backend dependencies
8183
back:
8284
docker-compose up -d --remove-orphans --no-deps php # PHP container is required for composer
8385
$(call php-0, apk add --no-cache $(ADD_PHP_EXT))
86+
$(call php-0, sh -c '[ ! -z "$$COMPOSER_HOME" -a -d $$COMPOSER_HOME ] && chown -R $(CUID):$(CGID) $$COMPOSER_HOME')
8487
$(call php-0, kill -USR2 1)
8588
ifdef INSTALL_DEV_DEPENDENCIES
8689
@echo "INSTALL_DEV_DEPENDENCIES=$(INSTALL_DEV_DEPENDENCIES)"

docker/docker-compose.override.yml.default

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
COMPOSER_HOME: /home/www-data/.composer
1010
volumes:
1111
- "./90-mail.ini:/etc/php7/conf.d/90-mail.ini:z"
12-
- "${COMPOSER_HOME_CACHE}:/home/www-data/.composer:z"
12+
- "../${COMPOSER_HOME_CACHE}:/home/www-data/.composer:z"
1313
# depends_on:
1414
# - mysql
1515
# - postgresql

docker/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ services:
4747
# redis:
4848
# image: ${IMAGE_REDIS}
4949
# container_name: "${COMPOSE_PROJECT_NAME}_redis"
50-
# command: redis-server --requirepass ${REDIS_PASSWD}
50+
# command: redis-server --maxmemory-policy allkeys-lru --requirepass ${REDIS_PASSWD}
5151
# restart: always
5252
# networks:
5353
# - front

scripts/makefile/tests.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ phpcsexec = docker run --rm \
66
skilldlabs/docker-phpcs-drupal ${1} -s --colors \
77
--standard=Drupal,DrupalPractice \
88
--extensions=php,module,inc,install,profile,theme,yml,txt,md,js \
9-
--ignore=*.css,libraries/*,dist/*,README.md,README.txt,node_modules/*,work/themes/**.js,work/themes/**.md \
9+
--ignore=*.css,libraries/*,dist/*,styleguide/*,README.md,README.txt,node_modules/*,work/themes/**.js,work/themes/**.md \
1010
.
1111

1212
## Validate codebase with phpcs sniffers to make sure it conforms https://www.drupal.org/docs/develop/standards

0 commit comments

Comments
 (0)