Skip to content

Commit

Permalink
Add basic local development scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudi Theunissen committed Dec 18, 2023
1 parent 6165afa commit bd669d0
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.
*.dep
*.ac
*.gcda
*.gcno
Expand Down
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM php:8.3-alpine

RUN apk add --no-cache $PHPIZE_DEPS valgrind

COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
3 changes: 3 additions & 0 deletions dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

docker-compose run --rm --build --interactive --tty dev /bin/sh
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
services:
dev:
build:
context: "."
volumes:
- ".:/ext-ds"
- "./ext-ds.ini:/usr/local/etc/php/conf.d/ext-ds.ini"
working_dir: "/ext-ds"
1 change: 1 addition & 0 deletions ext-ds.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extension=ds.so

0 comments on commit bd669d0

Please sign in to comment.