Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symfony 7 prep #372

Merged
merged 9 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,9 @@ RUN yarn install --immutable

## Actual deployable frontend image
FROM nginx:alpine AS frontend-deployment
#FROM phpdockerio/nginx-pagespeed:latest AS frontend-deployment

WORKDIR /application

#COPY infrastructure/nginx/pagespeed.conf /etc/nginx/pagespeed.conf
COPY infrastructure/nginx/nginx.conf /etc/nginx/conf.d/default.conf

# NGINX config: update php-fpm hostname to localhost (same pod in k8s), activate pagespeed config, deactivate SSL
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ MKCERT_LOCATION=bin/mkcert
HOSTS_VERSION=3.6.4
HOSTS_LOCATION=bin/hosts
SITE_HOST=phpdocker.local
PHP_RUN=docker-compose run -e XDEBUG_MODE=coverage --rm php-fpm
PHP_RUN=docker compose run -e XDEBUG_MODE=coverage --rm php-fpm

INFECTION_THREADS?=8
BUILD_TAG?:=$(shell date +'%Y-%m-%d-%H-%M-%S')-$(shell git rev-parse --short HEAD)
Expand All @@ -27,23 +27,23 @@ echo-build-tag-2:
echo $(BUILD_TAG)

start:
docker-compose up -d --scale php-fpm=2
docker compose up -d --scale php-fpm=2

stop:
docker-compose stop
docker compose stop

shell:
$(PHP_RUN) bash

init: clean install-mkcert create-certs install-hosts clean-hosts init-hosts build-local install-dependencies install-assets-dev fix-permissions fix-cache-permissions-dev start

clean: clear-cache
docker-compose down
docker compose down
sudo rm -rf vendor
make clear-cache

build-local:
docker-compose build
docker compose build

fix-permissions:
sudo chown -Rf $(shell id -u):$(shell id -g) .
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"ext-iconv": "*",
"ext-redis": "*",
"ext-zip": "*",
"doctrine/annotations": "^2.0",
"michelf/php-markdown": "^2.0",
"symfony/console": "^6.0",
"symfony/dotenv": "^6.0",
Expand Down
Loading
Loading