-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump php to 8.3 and add docker infra (#13)
- Loading branch information
Showing
12 changed files
with
324 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM php:8.3 | ||
RUN apt-get update -yqq | ||
RUN apt-get install -y libzip-dev zip wget git procps | ||
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/ | ||
RUN install-php-extensions decimal | ||
RUN curl -sS https://getcomposer.org/installer | php | ||
RUN mv composer.phar /usr/local/bin/composer | ||
RUN echo "memory_limit=-1" > $PHP_INI_DIR/conf.d/memory-limit.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
.PHONY: $(MAKECMDGOALS) | ||
|
||
DOCKER_COMPOSE = docker compose \ | ||
--project-directory ./ \ | ||
-p library_php | ||
|
||
up: | ||
$(DOCKER_COMPOSE) up -d | ||
|
||
down: | ||
$(DOCKER_COMPOSE) down -v --remove-orphans | ||
|
||
start: | ||
$(DOCKER_COMPOSE) start | ||
|
||
stop: | ||
$(DOCKER_COMPOSE) stop | ||
|
||
restart: | ||
$(DOCKER_COMPOSE) restart | ||
|
||
config: | ||
$(DOCKER_COMPOSE) config | ||
|
||
ps: | ||
$(DOCKER_COMPOSE) ps | ||
|
||
bash: | ||
$(DOCKER_COMPOSE) exec -w /app php /bin/bash | ||
|
||
build: | ||
DOCKER_BUILDKIT=1 $(DOCKER_COMPOSE) build --ssh default | ||
|
||
clean: | ||
@$(DOCKER_COMPOSE) down -v --rmi local | ||
|
||
setup: | ||
$(DOCKER_COMPOSE) exec -w /app php /bin/bash -c "composer install" | ||
|
||
ci: setup | ||
$(DOCKER_COMPOSE) exec -w /app php /bin/bash -c "composer ci" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.