Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Commit

Permalink
Support Laravel 9
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia committed Mar 2, 2022
1 parent b75cded commit 0df383d
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 43 deletions.
2 changes: 0 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.styleci.yml export-ignore
.travis.yml export-ignore
docker-compose.yml export-ignore
Dockerfile export-ignore
Makefile export-ignore
Expand Down
4 changes: 0 additions & 4 deletions .styleci.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## v1.5.0

### Added

- Support Laravel 9

## v1.4.0

### Added
Expand Down
21 changes: 15 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
FROM php:7.4-cli
FROM php:8.0-cli

WORKDIR /var/www

COPY --from=composer /usr/bin/composer /usr/bin/composer

RUN apt-get update && apt-get install -y \
git \
libzip-dev \
zip \
&& docker-php-ext-configure zip \
&& docker-php-ext-install \
zip \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* \
&& pecl install xdebug \
&& docker-php-ext-enable xdebug

RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
ENV COMPOSER_ALLOW_SUPERUSER=1
ARG USER
ARG USER_ID
ARG GROUP_ID

RUN pecl install xdebug \
&& docker-php-ext-enable xdebug
RUN if [ ${USER_ID:-0} -ne 0 ] && [ ${GROUP_ID:-0} -ne 0 ]; then \
groupadd --force --gid ${GROUP_ID} ${USER} &&\
useradd --no-log-init --uid ${USER_ID} --gid ${GROUP_ID} ${USER} \
;fi

USER ${USER}
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ it: vendor stan test ## Run all quality tools

.PHONY: help
help: ## Displays this list of targets with descriptions
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ": .*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}'
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(firstword $(MAKEFILE_LIST)) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}'

.PHONY: setup
setup: dc-build vendor ## Setup the local environment

.PHONY: dc-build
dc-build: ## Build the local dev image
docker-compose build --pull --build-arg USER_ID=$(shell id -u) --build-arg GROUP_ID=$(shell id -g)
docker-compose build --build-arg USER_ID=$(shell id -u) --build-arg GROUP_ID=$(shell id -g)

.PHONY: up
up: ## Bring up the containers
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

Strictly typed replacements for the default Laravel generator stubs

[![Build Status](https://travis-ci.com/mll-lab/laravel-strict-stubs.svg?branch=master)](https://travis-ci.com/mll-lab/laravel-strict-stubs)
[![codecov](https://codecov.io/gh/mll-lab/laravel-strict-stubs/branch/master/graph/badge.svg)](https://codecov.io/gh/mll-lab/laravel-strict-stubs)
[![StyleCI](https://github.styleci.io/repos/332712264/shield?branch=master)](https://github.styleci.io/repos/332712264)

[![GitHub license](https://img.shields.io/github/license/mll-lab/laravel-strict-stubs.svg)](https://github.com/mll-lab/laravel-strict-stubs/blob/master/LICENSE)
[![Packagist](https://img.shields.io/packagist/v/mll-lab/laravel-strict-stubs.svg)](https://packagist.org/packages/mll-lab/laravel-strict-stubs)
[![Packagist](https://img.shields.io/packagist/dt/mll-lab/laravel-strict-stubs.svg)](https://packagist.org/packages/mll-lab/laravel-strict-stubs)
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
],
"require": {
"php": "^7.2 || ^8",
"illuminate/contracts": "^6 || ^7 || ^8"
"illuminate/contracts": "^6 || ^7 || ^8 || ^9"
},
"require-dev": {
"orchestra/testbench": "^4 || ^5 || ^6",
"nunomaduro/larastan": "^0.6"
"orchestra/testbench": "^4 || ^5 || ^6 || ^7",
"nunomaduro/larastan": "^0.6 || ^1"
},
"autoload": {
"psr-4": {
Expand Down
7 changes: 4 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
version: '3.7'

services:
php:
build: .
build:
context: .
args:
USER: $USER
volumes:
- ./:/var/www
environment:
Expand Down

0 comments on commit 0df383d

Please sign in to comment.