Skip to content

Commit dc4f4c9

Browse files
author
quentin.schmick
committed
Updating to allow laravel 9.x
1 parent 9f33443 commit dc4f4c9

File tree

3 files changed

+50
-13
lines changed

3 files changed

+50
-13
lines changed

composer.json

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,30 @@
11
{
2-
"name": "orisintel/laravel-process-stamps",
2+
"name": "always-open/laravel-process-stamps",
33
"description": "Logs which process created or modified a record",
44
"keywords": [
5-
"orisintel",
5+
"always-open",
66
"laravel-process-stamps",
77
"laravel",
88
"logging"
99
],
10-
"homepage": "https://github.com/orisintel/laravel-process-stamps",
10+
"homepage": "https://github.com/always-open/laravel-process-stamps",
1111
"license": "MIT",
1212
"authors": [
1313
{
1414
"name": "Tom Schlick",
1515
"email": "[email protected]",
1616
"role": "Developer"
17-
},
18-
{
19-
"name": "ORIS Intelligence",
20-
"email": "[email protected]",
21-
"homepage": "https://orisintel.com",
22-
"role": "Organization"
2317
}
2418
],
2519
"require": {
26-
"php": "^7.3",
27-
"laravel/framework": "^8.0"
20+
"php": "^8.0.0|^8.1.0",
21+
"laravel/framework": "^9.0"
2822
},
2923
"require-dev": {
30-
"doctrine/dbal": "^2.9",
24+
"doctrine/dbal": "^3.3",
3125
"larapack/dd": "^1.0",
3226
"mockery/mockery": "~1.0",
33-
"orchestra/testbench": "^6.0",
27+
"orchestra/testbench": "^7.0",
3428
"phpunit/phpunit": "^9.0"
3529
},
3630
"autoload": {

docker-compose.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: "3.7"
2+
services:
3+
app:
4+
build:
5+
context: ./
6+
dockerfile: ./docker/Dockerfile
7+
image: processstamps
8+
container_name: processstamps-app
9+
restart: unless-stopped
10+
working_dir: /var/www/
11+
volumes:
12+
- ./:/var/www

docker/Dockerfile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
FROM php:8.0-fpm
2+
3+
# Install system dependencies
4+
RUN apt-get update && apt-get install -y \
5+
git \
6+
curl \
7+
libpng-dev \
8+
libonig-dev \
9+
libxml2-dev \
10+
libzip-dev \
11+
zip \
12+
unzip
13+
14+
# Clear cache
15+
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
16+
17+
# Install PHP extensions
18+
RUN docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd zip
19+
20+
# Get latest Composer
21+
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
22+
23+
# Create system user to run Composer and Artisan Commands
24+
RUN useradd -G www-data,root -d /home/ubuntu ubuntu
25+
RUN mkdir -p /home/ubuntu/.composer && \
26+
chown -R ubuntu:ubuntu /home/ubuntu
27+
28+
# Set working directory
29+
WORKDIR /var/www
30+
31+
USER ubuntu

0 commit comments

Comments
 (0)